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
# Hmm... Colours | |
Black="\[\033[0;30m\]" Red="\[\033[0;31m\]" Green="\[\033[0;32m\]" Cyan="\[\033[0;36m\]" | |
Yellow="\[\033[0;33m\]" Blue="\[\033[0;34m\]" Purple="\[\033[0;35m\]" White="\[\033[0;37m\]" | |
# MacPorts | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
# Web Development | |
export PATH=/Development:$PATH | |
export PATH=/Development/php5/bin:$PATH | |
export PATH=/Development/mysql/bin:$PATH |
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
set theEvents to {} | |
tell application "Calendar" | |
tell calendar "Calendar" | |
set theEvents to every event whose summary contains "IDM-" or summary contains "ICP-" | |
repeat with theEvent in theEvents | |
tell theEvent | |
set location to "Dean Street, Bangor, Gwynedd, UK" | |
end tell |
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
function pushfile | |
{ | |
extension="${1##*.}" | |
newname=`md5 ${1} | awk '{print $4}'`'.'$extension | |
cp ${1} $newname | |
scp $newname root@serveraddress.co.uk:/var/www/blahblahblah/p/ | |
rm -f $newname | |
echo 'http://serveraddress.co.uk/p/'$newname | |
echo 'http://serveraddress.co.uk/p/'$newname | pbcopy | |
} |
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
var Bookmark = function (url, name, tag) { | |
this.url = url; | |
this.name = name; | |
if (tag) this.tags = [tag]; | |
else this.tags = []; | |
}; | |
Bookmark.list = []; | |
Bookmark.push = function (p) { Bookmark.list.push(p) }; |
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 | |
GPG_ID=`gpg --list-secret-keys | grep "sec " | awk '{ print $2 }' | awk -F '/' '{ print $2 }'` | |
DATA=`cat $1 | gpg -d -r $GPG_ID` | |
clear | |
printf '%*s\n\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - |
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
clear all | |
p = [ 4 5 6 7 8 9 10 11 12 13 14 ]; | |
timings = []; | |
for i = 1:length(p) | |
load( sprintf('timings/%i_localizer.mat', p(i) ) ); | |
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 | |
cd "/Volumes/Marceline/MusicSync/" | |
# first unlink files which have been removed | |
for artist in *; do | |
if [ -d "$artist" ]; then | |
if ! grep -Fxq "$artist" "links" ; then | |
echo Unlinking $artist | |
hulink "$artist" |
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
set mouse=a | |
set nocompatible | |
filetype indent plugin on | |
syntax on | |
set hidden | |
set ignorecase | |
set smartcase | |
set backspace=indent,eol,start |
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
clear all | |
close all | |
clc | |
% dump from zimbra and run | |
% grep -r "^Date: " ./Sent* > Sent.list | |
regs = ... | |
['(?<day_named>(Mon|Tue|Wed|Thu|Fri|Sat|Sun))' ',\s' ... | |
'(?<day>[0-9][0-9]*)' '\s' ... |
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
xset dpms 0 0 0 | |
xset -dpms | |
xset s noblank | |
xset s noexpose | |
killall -9 vlc | |
export WINOPTS="--disable-screensaver --width=960 --height=540 --no-embedded-video" | |
vlc --video-title TopLeft \ |
OlderNewer