Skip to content

Instantly share code, notes, and snippets.

@puckbag
puckbag / .colors.bash
Last active December 15, 2015 09:38
Prompt colors for Bash.
# https://wiki.archlinux.org/index.php/Color_Bash_Prompt#List_of_colors_for_prompt_and_Bash
# Reset
COLOR_OFF='\[\e[0m\]' # Text Reset
# Regular Colors
COLOR_BLACK='\[\e[0;30m\]' # Black
COLOR_RED='\[\e[0;31m\]' # Red
COLOR_GREEN='\[\e[0;32m\]' # Green
COLOR_YELLOW='\[\e[0;33m\]' # Yellow
@puckbag
puckbag / Preferences.sublime-settings.json
Created March 21, 2013 16:09
Sublime Text User Settings
{
"bold_folder_labels": true,
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", ".sass-cache"],
"font_size": 12,
"open_files_in_new_window": false,
"preview_on_click": false,
"rulers": [80],
"tab_size": 4,
"translate_tabs_to_spaces": true
}
@puckbag
puckbag / gist:3359908
Created August 15, 2012 12:55
Firebug Lite Bookmarklet
(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');
@puckbag
puckbag / sync-down.sh
Created August 1, 2012 21:11
Drupal Sync Down (From Production to Development)
#!/bin/sh
SSH=user@host
DATABASE=xxxxxx
USERNAME=xxxxxx
PASSWORD=xxxxxx
WEBROOT=/var/www/html/
LOCAL_DATABASE=xxxxxx