Skip to content

Instantly share code, notes, and snippets.

View chrisdroukas's full-sized avatar
🔮
Hello, world.

Chris Droukas chrisdroukas

🔮
Hello, world.
View GitHub Profile
@chrisdroukas
chrisdroukas / Info.plist
Last active December 17, 2015 18:13
Safari Extension to restore old Twitter tab order
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Author</key>
<string></string> // Your Name
<key>Builder Version</key>
<string>11601.3.9</string>
<key>CFBundleDisplayName</key>
<string>Twitter Navigation</string>
@chrisdroukas
chrisdroukas / Scheduled Purge
Created August 8, 2013 15:31
1. Create free.sh 2. crontab -e 3. */30 * * * * /Users/username/free.sh Via http://stackoverflow.com/questions/15216950/how-to-cron-purge-on-mac-os-lion
#!/bin/bash
free=`vm_stat | grep free | awk '{print $3}'`
freer=${free%%.*}
if [ "$freer" -lt "18000" ]
then
nice purge
fi
@chrisdroukas
chrisdroukas / .bash_profile
Created July 26, 2013 14:24
Want to see what a designer's shit bash profile looks like? Look no further.
# Git completion
# https://github.com/git/git/tree/master/contrib/completion
source ~/.git-completion.sh
source ~/.git-prompt.sh
# Aliases and functions
alias ls='ls -1'
@chrisdroukas
chrisdroukas / Export Groups to PSD
Created May 31, 2013 14:16
Exports selected groups as new PSDs. Via this Adobe Forums thread: http://forums.adobe.com/thread/791896
#target photoshop
main();
function main() {
if(!documents.length) return;
var doc = activeDocument;
var oldPath = activeDocument.path;
var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
dupLayers();
@chrisdroukas
chrisdroukas / Tab Switching
Created December 14, 2012 15:46
Chrome-style tab switching in Sublime Text 2
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]