This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# facebootstrap: Rails3 template | |
app_h_name = app_name.gsub(/_/, '-') | |
app_c_name = app_name.classify | |
ruby_version = '1.9.3-p194' # Specify your ruby version. | |
# Specify your git repo path | |
repository_path = "[email protected]:chsh/#{app_h_name}.git" | |
target_branch = 'master' # or develop or ... | |
deploy_server = 'Specify your deploy server FQDN.' | |
target_mode = 'staging' # or 'live' or ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local user_host='%{$fg[green]%}%n@%m%{$reset_color%}' | |
local current_dir='%{$fg[yellow]%} %~%{$reset_color%}' | |
local git_branch='$(git_prompt_info)%{$reset_color%}' | |
PROMPT=" | |
${user_host}${current_dir} ${git_branch} | |
⑆ " | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Xcode | |
MacPorts | |
SourceTree | |
iTerm2 | |
Sublime | |
pgAdmin3 | |
MySQLWorkbench | |
SQLite Database Browser 2 | |
VirtualBox | |
Adium |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell current location of network preferences | |
set VPNService to service "SVPN" | |
if exists VPNService then | |
connect VPNService | |
end if | |
end tell | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Usage: ./defconvid-downloader.sh $id | |
#Where $id is the conference number | |
wget -c -nc -e robots=off --wait 5 -i -- `curl "http://defcon.org/html/links/dc-archives/dc-$1-archive.html" | grep -o "https.*\.m4v" | sed 's/ \+/%20/g'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Smoke on the water by Deep Purple, for the Lego Mindstorms | |
# | |
# Note frequencies worked out as follows: | |
# A = 440 | |
# Notes above A = A * (1.059463)^ no. of steps above A | |
# Notes below A = A * (1.059463)^ -no. of steps below A | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Remember to run in an x86 Powershell" | |
Import-Module WebAdministration | |
$start_dir = Get-Location | |
CD IIS:\ | |
New-Item AppPools\test.pool | |
Set-ItemProperty IIS:\AppPools\test.pool -name "enable32BitAppOnWin64" -Value "true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
" My Bundles here: | |
" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=46255== | |
==46255== HEAP SUMMARY: | |
==46255== in use at exit: 63,867 bytes in 354 blocks | |
==46255== total heap usage: 1,459 allocs, 1,105 frees, 162,223 bytes allocated | |
==46255== | |
==46255== 16 bytes in 1 blocks are definitely lost in loss record 7 of 84 | |
==46255== at 0xC8E6: malloc_zone_malloc (vg_replace_malloc.c:276) | |
==46255== by 0x4F1413: recursive_mutex_init (in /usr/lib/libobjc.A.dylib) | |
==46255== by 0x4F0025: _objc_init (in /usr/lib/libobjc.A.dylib) | |
==46255== by 0x134B27: libSystem_initializer (in /usr/lib/libSystem.B.dylib) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def xml | |
@xml_string << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | |
end | |
def tag(tag, attrs={}, &block) | |
@xml_string << "<#{tag}" | |
text = attrs.delete(:text) | |
@xml_string << " " if not attrs.empty? | |
attrs.each_pair do |key, value| | |
@xml_string << "#{key.to_s}=\"#{value.to_s}\"" |