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
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
export PS1='\[\033k\033\\\]\! \h:\w\$ ' | |
# only use __git_ps1 if the function is defined | |
type __git_ps1 2> /dev/null|grep func > /dev/null | |
if [ $? -eq 0 ]; then | |
export PS1='\[\033k\033\\\]\! \h:\w$(__git_ps1)\$ ' | |
fi |
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/sh | |
user='WIZARDISHUNGRY' | |
password='doyoureallythinkidputmypasswordhere' | |
path=~/.skel/pinboard.xml | |
cd `dirname $path` | |
curl -fsS --user $user:$password -o $path 'https://api.pinboard.in/v1/posts/all' | |
git add $path | |
git commit -m 'automated pinboard backup' > /dev/null |
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
@reboot ssh lab.wizardishungry.com -L 6667:irc.freenode.net:6667 cat |
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/perl | |
# | |
# googleapps-dns.pl | |
# | |
# Script to populate the Linode's DNS Manager for Google Apps. | |
# | |
# Copyright (c) 2008 Patrick Hennessy | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
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
apt-get install adduser aptitude aspell-en bash bc bind9-host binutils bsdmainutils bsdutils bzip2 cpio curl cvs cvsps dash deborphan dialog dictionaries-common diffutils dnsutils docbook-xml file-roller findutils finger ftp ftplib3 fuse-utils gawk gcc geoclue geoclue-hostip geoclue-localnet geoclue-manual geoclue-yahoo geoip-database gettext gettext-base git git-annex git-arch git-core git-cvs git-svn gnupg gnupg-curl gzip html2text imagemagick install-info iproute iptables iputils-ping irb1.8 iso-codes less locate lockfile-progs lsof lynx lzma mailx make man-db manpages manpages-dev mtools myspell-en-us mysql-client mysql-client-5.1 mysql-common ncurses-base ncurses-bin net-tools netcat-traditional openssh-blacklist-extra openssh-client openssh-server openssl openssl-blacklist patch perl php5 php5-cli php5-common php5-curl php5-mysql php5-suhosin policykit-1 popoppler-utils procps psmisc python python2.6 rarian-compat readline-common reportbug ri ri1.8 rsync ruby ruby-elisp ruby-full ruby1.8 ruby1.8-dev rub |
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
initial estimate: 234 | |
current: 0 |
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
find * -iname \*.mp4 -o -iname \*.mov -o -iname \*.m4v -o -iname \*.mpg -exec git annex add {} \; |
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
sudo port install haskell-platform git-core ossp-uuid md5sha1sum | |
[waits forever…] | |
[finished] | |
[realizes missingh isn't working in MacPorts] | |
sudo cabal update | |
sudo cabal install missingh | |
sudo cabal install utf8-string |
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/perl | |
use POSIX qw/strftime/; | |
use File::Find (); | |
use File::Copy; | |
use vars qw/*name *dir *prune/; | |
*name = *File::Find::name; | |
*dir = *File::Find::dir; | |
*prune = *File::Find::prune; |
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
ffmpeg -i ~/Desktop/diazeugma_final_jw_edit.mov -s 480x234 -vcodec mpeg4 -sameq -acodec libmp3lame -ab 128k ~/Desktop/diazeugma_final_jw_edit.avi |