Install git
sudo apt-get install git
Set the default name and email for git to use when you commit
git config --global user.name "Your Name Here"
# Because I always forget this stuff | |
# Run a command in the background with its output redirected | |
<command> > /dev/null 2>&1 & | |
# A while loop | |
while true; do | |
echo 'hi'; | |
sleep 1; | |
done |
curl -Sso ~/.vimrc https://raw.github.com/brianpeiris/vimrc/master/.vimrc | |
mkdir ~/.tmp | |
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 https://github.com/scrooloose/syntastic.git |
/* | |
* ResourceRefresh v0.1.0 | |
* | |
* Based on CSSrefresh v1.0.1 (Copyright (c) 2012 Fred Heusschen www.frebsite.nl) | |
* | |
* Dual licensed under the MIT and GPL licenses. | |
* http://en.wikipedia.org/wiki/MIT_License | |
* http://en.wikipedia.org/wiki/GNU_General_Public_License | |
*/ |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Untitled Document</title> | |
</head> | |
<body> | |
<?php |
import serial | |
class ThrottleMill: | |
def __init__(self): | |
self.port = serial.Serial("/dev/ttyUSB0", timeout=0) | |
self.port.flushInput() | |
self.treaded = 0 | |
def update(self): |
@echo off | |
echo Updating... | |
REM Open explorer to establish access to the share | |
explorer \\live.sysinternals.com\tools | |
REM Copy the tools to the current directory | |
robocopy \\live.sysinternals.com\tools . |
from Pubnub import Pubnub | |
from datetime import datetime | |
from guippy import mouse | |
subkey = '<your subcribe key>' | |
pubkey = '<your publish key>' | |
channel = '<your channel name>' | |
pubnub = Pubnub(pubkey, subkey, None, False) |
(new-object net.webclient).downloadfile('http://python-distribute.org/distribute_setup.py', "$pwd\distribute_setup.py") | |
python .\distribute_setup.py | |
(new-object net.webclient).downloadfile('https://raw.github.com/pypa/pip/master/contrib/get-pip.py', "$pwd\get-pip.py") | |
python .\get-pip.py | |
rm distribute-*.gz | |
rm distribute_setup.py | |
rm get-pip.py |
// Librarify: A bookmarklet that injects JavaScript libaries into any page. | |
// Based on Rey Bango's jQuerify: http://blog.reybango.com/2010/09/02/how-to-easily-inject-jquery-into-any-web-page/ | |
javascript: (function (libname) { | |
var | |
libraries = { | |
jquery: { | |
url: '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', | |
libvar: '$' | |
}, |