Skip to content

Instantly share code, notes, and snippets.

maxfenton / cloudSettings
Last active Jun 28, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
maxfenton / routing.config.php
Created Apr 16, 2016 custom kirby routing
View routing.config.php
Custom Routes
maxfenton /
Created Mar 28, 2016 — forked from khalwat/
Properly set permissions for a Craft CMS install, including ensuring that files are all g-x. Set CHOWN_USER, CHOWN_GROUP, and BASE_DIR to whatever is appropriate, add directories that need to be writeable by the web server to DIRS[], then execute: ./ PROJECT_NAME
# Execute via: ./ PROJECT_NAME
# The paradigm is the entire project dir is owned by $CHOWN_USER with the group set to $CHOWN_GROUP
# $CHOWN_USER is an admin or user account that is used to edit files/templates, etc.
# $CHOWN_GROUP is the group of the webserver (e.g.: 'apache', 'nginx', 'httpd', etc.)
# The project dir permissions are set to 755 (-rwxr-xr-x) for directories and to 644 (-rw-r--r--) for files
# The permissions to $DIRS[] that need to be writeable are set to 775 (-rwxrwxr-x) for directories and
# 664 (-rw-rw-r--) for files. Add any assets directories, etc. as necessary.
# Change $BASE_DIR to the absolute path where your websites are stored (leaving it appended with '/$1')
maxfenton /
Last active Sep 20, 2021
Books I finished reading

Books I finished reading

in 2021

  • The Left Hand of Darkness - Ursula K. LeGuin
  • Broad Band: The Untold Story of the Women Who Made the Internet (Audiobook) - Claire L. Evans
  • Guantanamo Voices - Sarah Mirk
  • Sex Criminals - Matt Fraction, Chip Zdarsky
  • Turing's Cathedral: The Origins of the Digital Universe (Audiobook) - George Dyson
  • The Eternals - Neil Gaiman, John Romita Jr.
  • The Delivery - Peter Mendelsund
maxfenton / add_custom_column_to_edit_tag.php
Last active May 23, 2017 — forked from simongcc/add_custom_column_to_edit_tag.php
Adding custom column displaying in Wordpress Manage Category/Custom Taxonomy editing page
View add_custom_column_to_edit_tag.php
Purpose: add custom column header and custom column content to respective custom header in Manage Category Editing Page
Version Tested: 3.8
Because I found no explanation nor documents in, I tried to trace the code in wp-admin folder
after understanding the operation of apply_filter(), add_action() and add_filter()
The table list in edit_tag.php is based on
View 20150719.txt
Battery Power:
lidwake 1
autopoweroff 1
autopoweroffdelay 14400
standbydelay 900
standby 1
ttyskeepawake 1
hibernatemode 25
darkwakes 0
hibernatefile /var/vm/sleepimage
maxfenton /
Last active Aug 29, 2015 — forked from tealtan/
Custom CSS for twitter-in-a-browser.

Custom Twitter Stylesheet

Craig Mod does a bigger overhaul with Twitter for Minimalists, but this will only do the following:

  • Hides promoted tweets and trends
  • Hides the useless “Expand” link that appears under every tweet
  • Tones down the blue conversation line to a barely-visible gray
  • Hides all numbers

You can add this CSS in Safari with this extension. The URL to target is*.

maxfenton / REF - Wordpress development VVV
Last active Aug 29, 2015
VVV Wordpress development setup
View REF - Wordpress development VVV
cd ~/Sites

git clone git:// vagrant-local

vagrant plugin install vagrant-hostsupdater

vagrant plugin install vagrant-triggers

brew install bradp/vv/vv
maxfenton /
Last active Apr 25, 2021
Mac system defaults tricks

System stuff for a mac

What the defaults do and how to undo them

Dropshadows on screenshots

defaults write disable-shadow -bool true
killall SystemUIServer

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma