Skip to content

Instantly share code, notes, and snippets.

View srwild's full-sized avatar
🏚️
Working from home

S.R. Wild srwild

🏚️
Working from home
View GitHub Profile

Get gitignore to ignore

Sometimes git doesn't ignore files that it has been tracking when you declare them in .gitignore. After you put something in .gitignore and commit it and it still tracks those files, run these series of commands.

git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@srwild
srwild / space-to-dock.md
Last active May 14, 2020 18:33
Add a space to the Dock

Have a lot of apps in your Dock? Add some spaces to separate them

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
killall Dock

Dock with spaces

@srwild
srwild / after-effects-guides.jsx
Created February 23, 2020 15:55
Script for creating guides in After Effects
var canvas = app.project.activeItem;
var height = canvas.height;
var width = canvas.width;
var canvasSize = [height, width];
// Guide positions (in pixels)
var bleed = 20; // Off canvas
var margin = 40; // Inside margin
function makeGuides() {