Skip to content

Instantly share code, notes, and snippets.

#!/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
#!/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'))
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
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
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
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'
#!/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 = ""
#!/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
@tazjel
tazjel / .htaccess
Created January 31, 2013 21:19 — forked from bespike/.htaccess
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]
@tazjel
tazjel / storeup.sh
Created January 31, 2013 21:22 — forked from kirb/storeup.sh
#!/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