Skip to content

Instantly share code, notes, and snippets.

Avatar

Max Fenton maxfenton

View GitHub Profile
@maxfenton
maxfenton / cloudSettings
Last active Jun 28, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-06-28T00:50:14.414Z","extensionVersion":"v3.4.3"}
@maxfenton
maxfenton / routing.config.php
Created Apr 16, 2016
coordinate.systems custom kirby routing
View routing.config.php
<?php
/*
---------------------------------------
Custom Routes
---------------------------------------
*/
@maxfenton
maxfenton / set-project-perms.sh
Created Mar 28, 2016 — 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
View set-project-perms.sh
#!/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 Nov 20, 2020
Books I finished reading
View books.md

Books I finished reading

in 2020

  • Silk and Cyanide (Audiobook) - Leo Marks
  • Who Killed Jimmy Olsen? - Matt Fraction, Steve Leiber
  • The Loneliness of the Long-Distance Cartoonist - Adrian Tomine
  • The Fire Next Time - James Baldwin
  • One Trick Rip-Off + Deep Cuts - Paul Pope
  • Mona Lisa Overdrive - William Gibson
  • Count Zero - William Gibson
@maxfenton
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
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
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
maxfenton / instructions.md
Last active Aug 29, 2015 — forked from tealtan/instructions.md
Custom CSS for twitter-in-a-browser.
View instructions.md

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 Aug 29, 2015
VVV Wordpress development setup
View REF - Wordpress development VVV setup.md
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 Jul 17, 2020
Mac system defaults tricks
View macos_defaults.md

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
View trello-css-guide.md

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

You can’t perform that action at this time.