Subscribe: diversionmary - Ballpoint drawings
http://www.diversionmary.com/index.xml
Added By: Feedage Forager Feedage Grade A rated
Language: English
Tags:
add  ashift  conf  exim conf  exim  fog  fullscreen  galleria  greylistd whitelist  greylistd  local  server  user  whitelist 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: diversionmary - Ballpoint drawings

diversionmary - Ballpoint drawings



diversionmary.com ballpoint drawings, doodles, paintings, and other images made by eric thomas bostrom



Last Build Date: Thu, 17 Sep 2015 07:46:27 GMT

Copyright: Copyright 2015 by the authors
 



The Events Calendar Wordpress full ical/ics export

Thu, 17 Sep 2015 07:46:27 GMT

To export all events from 'The Events Calendar' wordpress calendar plugin, add this to functions.php:

add_action( 'pre_get_posts', 'full_ical_export' );
function full_ical_export( WP_Query $query ) {
if ( ! isset( $_GET['ical'] ) || ! isset( $_GET['full-export'] ) ) return;
if ( ! isset( $query->tribe_is_event_query ) || ! $query->tribe_is_event_query ) return;
$query->set( 'eventDisplay', 'custom' );
$query->set( 'start_date', '1000-01-01' );
$query->set( 'end_date', '3000-01-01' );
$query->set( 'posts_per_page', '-1' );
}

Then visit this URL in a browser to spit out a fully populated .ics file:

http://yoursitehere.com/events/?ical=1&full-export




vTiger non-standard port forward ssl/https 'illegal request'

Tue, 28 Apr 2015 13:40:28 GMT

Using vTiger, if you change the port Apache uses for SSL from 443 to a non-standard port such as 999, it will error out with 'Illegal Request' based on an incorrect referrer.

To modify the validation vTiger uses, edit line 209 of includes/http/Request.php to add a check for SERVER_PORT.

Before:
protected function validateReferer() {
$user= vglobal('current_user');
// Referer check if present
if (isset($_SERVER['HTTP_REFERER'])) && $user) {//Check for user post authentication.
global $site_URL;
if ((stripos($_SERVER['HTTP_REFERER'], $site_URL) !== 0) && ($this->get('module') != 'Install')) {
throw new Exception('Illegal request');
}
}
return true;
}

After:
protected function validateReferer() {
$user= vglobal('current_user');
// Referer check if present - add port check
if (isset($_SERVER['HTTP_REFERER']) && isset($_SERVER['SERVER_PORT']) && $user) {//Check for user post authentication.
global $site_URL;
if ((stripos($_SERVER['HTTP_REFERER'], $site_URL) !== 0) && (stripos($_SERVER['SERVER_PORT'], '999') !==0) && ($this->get('module') != 'Install')) {
throw new Exception('Illegal request');
}
}
return true;
}




Upgrading ZFS pool from 512/512e drives to AF 4K drives

Fri, 01 Aug 2014 09:28:38 GMT

If you're going to upgrade your existing ZFS pool drives from 512/512e sector size (ashift=9) to newer AF/4k drives (ashift=12) you'd be better off creating a new pool with ashift=12 and using zfs send recv to populate the new pool with your data.

If you are researching prior to creating any pool, force ashift=12 during pool creation, even if you're using 512/e drives by using zpool create -o ashift=12 yourtank /dev/drive1 /dev/drive2 ...etc This will 'future-proof' your ZFS pool.

You may receive a similar error in FreeNAS:
"nas manage.py: [middleware.exceptions:38] [MiddlewareError: Disk replacement failed: "cannot replace (driveID) with gptid/(gptID): devices have different sector alignment, "

To check your current ashift value, use:
zdb -C | grep ashift

ashift: 9 = 2^9 = 512bytes (bad)
ashift: 12 = 2^12 = 4096bytes (good)

If you absolutely can't do that, these two sysctls allow you to use 4k drives as if they're 512/e. There is a significant performance hit if you do this.

Sysctls:
Set these sysctls via ssh or using the Sysctl UI underneath 'System' in the FreeNAS web interface.
vfs.zfs.vdev.larger_ashift_disable=1
vfs.zfs.vdev.larger_ashift_minimal=0

Then you should be able to offline/replace/resilver a 4k drive into your 512/e pool. Personally my throughput greatly increased despite ashift=9, but I moved my ZFS pool from 6x2TB 5400RPM to 6x2TB 7200RPM. Again, the right way to do this is to use ashift=12 with 4k drives.




Fog 1.1.2 ipxe boot iso

Tue, 15 Jul 2014 15:18:15 GMT

Disregard the bullshit 'goto menu' line in the official Fog wiki for advanced pxe boot. Use 'boot' instead.

:foobar
initrd http://${fog-ip}/ISO/foobar.ISO
chain memdisk iso raw ||
goto MENU

change to

:foobar
initrd http://${fog-ip}/ISO/foobar.ISO
kernel http://${fog-ip}/fog/service/ipxe/memdisk iso raw ||
boot

I wasted hours on that.




Synergy Raspberry Pi -> Gui

Tue, 03 Jun 2014 15:44:14 GMT

If you're connecting a CLI Synergy client to a GUI Synergy server, the password to feed synergyc isn't the password you defined on the server. It is an MD5 hash of that password. See here.




Wordpress stupid child theme stupidity

Mon, 12 May 2014 21:17:35 GMT

If create and activate a new wordpress child theme, you may notice your ul/li menu div and class go haywire. You'll need to go to appearance>menus and then tick 'primary navigation' for whichever menu is your primary navigation. So stupid.




Zabbix_agent windows/linux system.hostname

Wed, 07 May 2014 15:56:10 GMT

When creating a zabbix_agentd.conf for windows/linux hosts rollout, instead of manually specifying the Hostname=Foo line, comment that line and uncomment HostnameItem=system.hostname

Then you can proceed to defining discovery of zabbix agents, and actions to add the hosts to their respective groups and templates.

So much easier.




Enter a valid FOG username and password

Wed, 07 May 2014 14:59:09 GMT

Warning, make a backup of /tftpboot/pxelinux.cfg/default before doing any of this. It will replace without prompting, wiping out any custom ISOs.

With Fog 0.32 if you attempt to use Quick Image, you will be prompted for a password. Log in to the management interface, Other Information, PXE BootMenu to create the PXE Menu and set the fog.quickimage password. Make sure to use a password 4 chars or longer.

PXE Menu: http://X.X.X.X/fog/management/index.php?node=about&sub=pxemenu

After you get past that point, you'll encounter: "Enter a valid FOG username and password"

Your normal user/pass may fail silently if the password is less than 3 characters, for instance 'fog'. Log into management interface, User Management, click the user (fog) and set a password 4 chars or longer.

Users: http://X.X.X.X/fog/management/index.php?node=users




Exim4, greylistd except recipient

Wed, 23 Apr 2014 14:46:11 GMT

When using greylistd with exim4, you may add a line to skip or bypass greylisting for recipients as maintained in local plaintext file using one email address per line. Basically this says greylist the triplet unless recipient is in the list.

Create recipient whitelist, one address per line:
/etc/greylistd/whitelist-recipient

Backup existing conf file if multi-file config:
cp /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt ~/
or
cp /etc/exim4/exim4.conf.template ~/

Edit the acl portion of multi file conf:
vim /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt

Modify:
defer

message        = $sender_host_address is not yet authorized to deliver \
mail from <$sender_address> to <$local_part@$domain>. \
Please try later.
log_message = greylisted.
!senders = :
!hosts = : +relay_from_hosts : \
${if exists {/etc/greylistd/whitelist-hosts}\
{/etc/greylistd/whitelist-hosts}{}} : \
${if exists {/var/lib/greylistd/whitelist-hosts}\
{/var/lib/greylistd/whitelist-hosts}{}}
!authenticated = *
!acl = acl_local_deny_exceptions
domains = +local_domains : +relay_to_domains
verify = recipient
condition = ${readsocket{/var/run/greylistd/socket}\
{--grey \
${mask:$sender_host_address/24} \
$sender_address \
$local_part@$domain}\
{5s}{}{false}}

To:

defer
message = $sender_host_address is not yet authorized to deliver \
mail from <$sender_address> to <$local_part@$domain>. \
Please try later.
log_message = greylisted.
!recipients = /etc/greylistd/whitelist-recipient
!senders = :
!hosts = : +relay_from_hosts : \
${if exists {/etc/greylistd/whitelist-hosts}\
{/etc/greylistd/whitelist-hosts}{}} : \
${if exists {/var/lib/greylistd/whitelist-hosts}\
{/var/lib/greylistd/whitelist-hosts}{}}
!authenticated = *
!acl = acl_local_deny_exceptions
domains = +local_domains : +relay_to_domains
verify = recipient
condition = ${readsocket{/var/run/greylistd/socket}\
{--grey \
${mask:$sender_host_address/24} \
$sender_address \
$local_part@$domain}\
{5s}{}{false}}

Update Exim4 conf file
update-exim4.conf

Restart Exim4
/etc/init.d/exim4 restart




Galleria Classic Fullscreen

Thu, 21 Feb 2013 11:06:50 GMT

To make Galleria Classic theme have a 'fullscreen' toggle in the upper right hand corner of the gallery stage (replace all brackets "[]" with angle brackets "<>":

1. Add this div to your main styles-sites.css (adjust position/top/right as necessary) to style a fullscreen link in the top right of the galleria stage:
#fs {
position: relative;
top: 30px;
right: 20px;
text-align: right;
color: #ccc;
font: italic 11px/1 arial,sans-serif;
z-index: 2;
}
#fs a:hover,a.fs:active {color:#fff; background: none;}

2. Add this to your page before you call the galleria to add a "fullscreen" link in the top right of the galleria stage:

[div id="fs"][a id="fullscreen"]fullscreen[/a][/div]

3. Add this to your galleria.ready function to enable fullscreen toggle:

$('#fullscreen').click(function() {
gallery.toggleFullscreen(); // toggles the fullscreen

4. so your full galleria script will look like:

[script type="text/javascript"]
Galleria.loadTheme('galleria/themes/classic/galleria.classic.min');
Galleria.configure({
});
Galleria.run('#galleria');
Galleria.ready(function() {
var gallery = this; // galleria is ready and the gallery is assigned
$('#fullscreen').click(function() {
gallery.toggleFullscreen(); // toggles the fullscreen
});
});
[/script]




faxmail exim4 hylafax

Fri, 29 Jun 2012 12:25:33 GMT

To enable hylafax/faxmail/exim4 to process mail as 12345678@yourdomain.tld, that is, fax number as $local_part follow the directions below.

Please note this is best for standalone hylafax servers that do not process other email for local delivery. If you are using hylafax on a server that performs other functions, particularly email for your domain/local delivery, you would do best to use the traditional foo@12345678.fax transport route seen here.

1. Put the following in: /etc/exim4/conf.d/transport/40_exim4-hylafax-gateway substitute your country code as necessary by changing +1 to +33

######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################

# A transport is used only when referenced from a director or a router
# that successfully handles an address.

#These configure for sending of fax for email
fax:
driver = pipe
user = faxmaster
command ="/usr/bin/faxmail -n -d +1$local_part"
home_directory = /tmp
use_shell = true

2. Put the following in: /etc/exim4/conf.d/transport/050_exim4-hylafax-gateway make sure you change yourdomain.tld to your domain, such as foobar.com


######################################################################
# ROUTERS CONFIGURATION #
# Specifies how remote addresses are handled #
######################################################################
# ORDER DOES MATTER #
# A remote address is passed to each in turn until it is accepted. #
######################################################################

fax:
driver = manualroute
transport = fax
route_list ="*yourdomain.tld"

3. Edit /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs to change from the local delivery option of mail_spool to the new fax transport you've created.

.ifndef LOCAL_DELIVERY
# The default transport, set in /etc/exim4/update-exim4.conf.conf,
# defaulting to mail_spool. See CONFDIR/conf.d/transport/ for possibilities
LOCAL_DELIVERY=fax
#LOCAL_DELIVERY=mail_spool
.endif

4. If using single-file config, proceed to step 5. If using exim4 split configuration, update your configuration file with update-exim4.conf.template -r

5. Restart exim4 /etc/init.d/exim4 restart

6. Send a test fax to 2345678@yourdomain.tld the transport will add the country code automatically, resulting in 12345678@yourdomain.tld




Shows

Wed, 11 Apr 2012 16:23:36 GMT

4/2012: 'Drawing Rally', ArtStart, Santa Rosa, CA
5/2012: 'Thought Nachos Issue 3', Thought Nachos
5/2012: 'I Like Soup', Virginia Museum of Contemporary Art, Norfolk, VA
6/2012: 'Enter the Void', Ayden Gallery, Vancouver, BC




drr drr drr

Wed, 06 Apr 2011 18:55:41 GMT

movabletype looks positively ancient compared to wordpress. I've really gotta scrap this bugger.




Drawing and baby

Sun, 03 Oct 2010 20:15:32 GMT

(image) (image)

My wife and I had a baby in May. She's a treat.




Eric Thomas Bostrom - Ballpoint Drawings - Facebook Fan Page

Thu, 11 Feb 2010 16:29:49 GMT

I made a facebook fan page. Most doings going on there. Honestly, this whole site needs to be scrapped!