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 | |
import SimpleHTTPServer, BaseHTTPServer, SocketServer, socket, time, sys | |
class ThreadedHTTPServer(SocketServer.ThreadingMixIn, | |
BaseHTTPServer.HTTPServer) : | |
""" | |
New features w/r to BaseHTTPServer.HTTPServer: | |
- serves multiple requests simultaneously | |
- catches socket.timeout and socket.error exceptions (raised from |
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 days = ['Monday','Tuesday','Wednesday','Thursday','Friday']; | |
var i; | |
for (i in days) { | |
var day = days[i]; | |
$('.test-'+day).last().trigger('click'); | |
$('.js-new-time-entry').last().trigger('click'); | |
$('#entry-duration').last().val('7.6'); | |
$('.js-save').trigger('click'); | |
} |
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
#Append following to .bashrc | |
#To sync run git-sync | |
alias git-sync='git checkout master&&git pull origin master&&git checkout svnsync&&git svn rebase&&git merge --no-ff master -m "Auto-merge on svn sync"&&git svn dcommit&&git checkout master' |
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 kernel v3.3.1-precise && cd kernel v3.3.1-precise | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3.1-precise/linux-headers-3.3.1-030301-generic_3.3.1-030301.201204021435_amd64.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3.1-precise/linux-headers-3.3.1-030301_3.3.1-030301.201204021435_all.deb | |
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3.1-precise/linux-image-3.3.1-030301-generic_3.3.1-030301.201204021435_amd64.deb | |
sudo dpkg -i linux-*.deb | |
sudo update-grub |