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
;; Manually set PATH for use by eshell, rspec-mode, etc. | |
(let ((path)) | |
(setq path (concat "~/bin:" | |
"/usr/local/sbin:" | |
"/usr/local/bin:" | |
"/usr/sbin:" | |
"/usr/bin:" | |
"/sbin:" | |
"/bin")) | |
(setenv "PATH" 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
> gcc -c helloworld.c -o helloworld.o | |
> ld -export_dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm |
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
(add-hook 'octave-mode-hook | |
(lambda () | |
(abbrev-mode 1) | |
(auto-fill-mode 1) | |
(if (eq window-system 'x) | |
(font-lock-mode 1)))) | |
(add-hook 'inferior-octave-mode-hook | |
(lambda () |
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
Splitting git repository. | |
============ | |
* Do the clone and the filter: | |
`git clone --no-hardlinks foo bar; cd bar` | |
`git filter-branch --subdirectory-filter subdir/you/want HEAD` | |
* Remove every reference to the old history. "origin" was keeping |
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
javascript:Qr=prompt('Search%20Site%20for','');if(Qr)location.href='http://www.google.com/search?&q=site:'+encodeURIComponent(window.location.hostname)+'+'+escape(Qr) |
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
// accessing the OSX local network name | |
Pipe.do("hostname", {|name| | |
"broadcasting %, %\n".postf(name); | |
} ); |
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 ruby | |
# Script for assigning the date of a track in a GPX file as track name. | |
# | |
# Usage e.g $ ruby ChangeGpxTrackName.rb source.gpx target.gpx" | |
# | |
# Peter Vasil | |
# Date: 2011-01-31 | |
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
formatted_time = Time.now.gmtime.strftime('%y%m%d_%H%M%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
#!/usr/bin/python | |
# Script for assigning the date of a track in a GPX file as track name. | |
# | |
# Usage e.g $ python ChangeGpxTrackName.py source.gpx target.gpx" | |
# | |
# Peter Vasil | |
# Date: 2011-02-05 | |
from optparse import OptionParser |
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
/* | |
HerperWindow.sc | |
Class for a tool window. | |
Author: Peter Vasil | |
Date: 2011-02-08 | |
*/ | |
HelperWindow : Object { | |
var window, w, h; |