Skip to content

Instantly share code, notes, and snippets.

@maxfenton
maxfenton / routing.config.php
Created April 16, 2016 15:45
coordinate.systems custom kirby routing
<?php
/*
---------------------------------------
Custom Routes
---------------------------------------
*/
@maxfenton
maxfenton / set-project-perms.sh
Created March 28, 2016 22:53 — forked from khalwat/set-project-perms.sh
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: ./set-project-perms.sh PROJECT_NAME
#!/bin/bash
# Execute via: ./set-project-perms.sh 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
maxfenton / books.md
Last active May 10, 2026 15:02
Books I finished reading

Books I finished reading

in 2026

  • Dialogues with Marcel Duchamp - Pierre Cabanne
  • Blurry - Dash Shaw
  • The Collected Stories of Philip K. Dick volume 5: The Eye of the Sibyl - Philip K. Dick

in 2025

  • Mister Miracle - Tom King, Mitch Gerads
  • What Can a Body Do? (Audiobook) - Sara Hendren
@maxfenton
maxfenton / add_custom_column_to_edit_tag.php
Last active December 7, 2023 18:59 — forked from simongcc/add_custom_column_to_edit_tag.php
Adding custom column displaying in Wordpress Manage Category/Custom Taxonomy editing page
/*
Purpose: add custom column header and custom column content to respective custom header in Manage Category Editing Page
Version Tested: 3.8
Story:
Because I found no explanation nor documents in Wordpress.org, I tried to trace the code in wp-admin folder
after understanding the operation of apply_filter(), add_action() and add_filter()
Logic:
The table list in edit_tag.php is based on
@maxfenton
maxfenton / 20150719.txt
Created July 20, 2015 01:30
pmset -g custom
Battery Power:
lidwake 1
autopoweroff 1
autopoweroffdelay 14400
standbydelay 900
standby 1
ttyskeepawake 1
hibernatemode 25
darkwakes 0
hibernatefile /var/vm/sleepimage
@maxfenton
maxfenton / instructions.md
Last active August 29, 2015 14:25 — forked from tealtan/instructions.md
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 twitter.com/*.

@maxfenton
maxfenton / REF - Wordpress development VVV setup.md
Last active August 29, 2015 14:22
VVV Wordpress development setup
cd ~/Sites

git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git vagrant-local

vagrant plugin install vagrant-hostsupdater

vagrant plugin install vagrant-triggers

brew install bradp/vv/vv
@maxfenton
maxfenton / macos_defaults.md
Last active February 12, 2026 10:18
Mac system defaults tricks

System stuff for a mac

What the defaults do and how to undo them

Dropshadows on screenshots

defaults write com.apple.screencapture 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

@maxfenton
maxfenton / chillertwitter.css
Last active January 22, 2024 11:42
CHILLER TWITTER // Stylebot for Twitter.com
/* CSS to make Twitter on the desktop web a little chiller */
.DashboardProfileCard-statList,
.js-mini-profile-stats,
.js-tweet-stats-container,
.ProfileNav-item--following,
.ProfileNav-item--followers,
.ProfileTweet-actionCount,
.ProfileHeaderCard-joinDateText {
opacity: 0.333;