Install pstoedit
Via Brew: brew install pstoedit
Download HPGL-Distiller
Install / Make:
<?php | |
/* Add site_name as a column */ | |
add_filter( 'wpmu_blogs_columns', 'add_useful_columns' ); | |
function add_useful_columns( $site_columns ) { | |
$site_columns['site_name'] = 'Site Name'; | |
return $site_columns; | |
} | |
/* Populate site_name with blogs site_name */ |
# https://stackoverflow.com/questions/16432071/how-to-fix-homebrew-permissions | |
sudo chown -R "$USER":admin 'path-to-thing-brew-complains-about' |
f = 2; // Freq | |
a = 10; // Amount | |
posterizeTime(f); // Posterise it | |
wiggle(f, a); // Wiggle that |
# Futher info here: https://github.com/TablePlus/DBngin/issues/38 | |
mysql --socket /tmp/mysql_3306.sock -uroot |
<?php | |
class acf_filter_post_object { | |
static function setup() { | |
add_filter( 'acf/fields/post_object/query/name=FIELD_NAME', __CLASS__ . '::only_current_terms', 10, 3 ); | |
} | |
/* | |
Only current terms to be shown within the taxonomy |
chown -R `whoami` * # Let Apache be owner | |
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- | |
# For servers | |
chown -R www-data:www-data . | |
find . -type d -exec chmod 570 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 460 {} \; # Change file permissions rw-r--r-- |
GREP thousands comma, replace with space | |
# https://community.adobe.com/t5/indesign/grep-find-change-decimal-and-thousands/m-p/6130240 | |
Find: (?<=\d)[., ](?=\d\d\d) | |
Replace: ' '; |
Install pstoedit
Via Brew: brew install pstoedit
Download HPGL-Distiller
Install / Make:
convert image.jpg -resize 1200x\> -pointsize 18 -draw "gravity southwest text 20, 20 'Title of the image'" out-image.jpg; |
<?php /* Brand Colour */ $colour = get_field( 'colour', 'option' ); ?> | |
.brand--background{ background-color: <?php echo $colour ?>; } | |
.brand--colour{ color: <?php echo $colour ?>; } | |
.brand--border{ border-color: <?php echo $colour ?>; } |