This file contains 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 | |
# Sets up the users's dotfiles as links to the git-versioned ones in .dotfiles. | |
# It wouldn't be tough to just scan the dotfiles dir to see what matches up | |
# with a dotfile in ~ and link based on that, but for now I'm explicitly | |
# listing which files to track. | |
import os | |
import shutil | |
# Key is the dotfile in the home directory, the value is location in the |
This file contains 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/python | |
# vim: syn=python fileencoding=utf-8 ai et ts=4 sts=4 sw=4 | |
import sys, subprocess | |
args = ['git', 'grep'] | |
argv = sys.argv[1:] | |
if argv[0] == 'grep': | |
argv = argv[1:] | |
for arg in argv: | |
args.append(unicode(arg, 'utf-8').encode('euc-jp')) |
This file contains 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
mkdir -p ~/.vim/autoload ~/.vim/bundle | |
curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
cd ~/.vim/bundle | |
git clone git://github.com/tpope/vim-fugitive.git | |
git clone git://github.com/tpope/vim-rails.git | |
git clone git://github.com/tpope/vim-bundler.git | |
git clone git://github.com/tpope/vim-markdown.git | |
git clone git://github.com/tpope/vim-endwise.git | |
git clone git://github.com/tpope/vim-git.git |
This file contains 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
runtimepath=~/.vim,~/.vim/bundle/vim-cucumber,~/.vim/bundle/vim-fugitive,~/.vi | |
m/bundle/vim-git,~/.vim/bundle/vim-haml,~/.vim/bundle/vim-rails,/var/lib/vim/add | |
ons,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,/ | |
var/lib/vim/addons/after,~/.vim/after |
This file contains 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
git+https://github.com/vim-scripts/python.vim.git | |
git+https://github.com/scrooloose/nerdtree.git | |
git+https://github.com/scrooloose/syntastic.git | |
git+https://github.com/vim-scripts/Jinja.git | |
git+https://github.com/vim-scripts/django.vim.git | |
git+https://github.com/vim-scripts/xml.vim.git | |
git+https://github.com/bronson/vim-trailing-whitespace.git |
This file contains 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
alias ll='ls -l' | |
alias mvcydia='ll *.deb; mv *.deb repo/cydia; cd repo/cydia; repo; ll; sftpcydia' | |
alias repo='mv Packages.bz2 Packages.bak; /var/root/apt/repo/cydia-scanpackages . /dev/null >Packages; bzip2 Packages' | |
alias sftpcydia='sftp [email protected]:www/cydia' |
This file contains 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/python | |
import string, time, calendar, hashlib, urllib2, smtplib | |
from email.mime.text import MIMEText | |
# Cydia globals | |
product_ids = ['org.thebigboss.somepackage', 'org.thebigboss.someotherpackage'] | |
splits = [ 0.70, 0.35 ] | |
vendor_id = "" | |
vendor_secret = "" |
This file contains 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 | |
export THEOS=/opt/theos | |
# clone theos.git | |
cd /opt | |
git clone git://github.com/DHowett/theos.git | |
# clone iphoneheaders.git | |
cd $THEOS | |
mv include include.bak |
This file contains 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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^repo/downloads(\/?)$ /repo/counter.php?filename=Packages [L] | |
RewriteRule ^repo/Packages$ /repo/counter.php?filename=Packages [L] | |
RewriteRule ^repo/downloads/(.*)\.deb$ /repo/counter.php?filename=$1 [QSA] |
This file contains 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 | |
isup=0 | |
check=0 | |
store=au # change this to your country code | |
player=play | |
sound=/System/Library/Sounds/Tink.aiff | |
if [[ "$(which afplay)" != "" ]]; then | |
player=afplay | |
fi |