cd ~
git clone https://gist.github.com/5165174.git bash
ln -s bash/bash_profile .bash_profile
These funds back opponents to the Representatives who voted for the AHCA.
The US Senate is looking at one thing right now: whether and how much the American people will punish those who wish to gut rather than improve upon our healthcare system. Show them that a vote for the AHCA is politically toxic by donating to these district funds to repeal and replace these representatives who are not representing their constituents.
This one focuses on only the 35 most winnable districts:
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
// ==UserScript== | |
// @name Clean FogBugz URLs | |
// @version 0.4 | |
// @description Replaces http://manage.dimagi.com/default.asp?123456#1984701 with http://manage.dimagi.com/default.asp?123456 | |
// @author Danny Roberts | |
// @match *://manage.dimagi.com/default.asp* | |
// @grant none | |
// ==/UserScript== | |
function cleanURL() { |
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
""" | |
This file is meant to be used in the following manner: | |
$ python make_rebuild_staging.py < staging.yaml > rebuildstaging-tmp.sh; bash rebuildstaging-tmp.sh | |
Where staging.yaml looks as follows: | |
trunk: master | |
name: autostaging | |
branches: |
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
source /usr/local/git/contrib/completion/git-completion.bash | |
alias g="git"; __git_complete g _git | |
alias l="git status" | |
alias d="git diff"; __git_complete d _git_diff | |
alias ds="git diff --cached" | |
alias m="git commit -m " | |
alias am="git commit -am " | |
alias a="git add " | |
alias o-="git checkout --" | |
alias o="git checkout"; __git_complete o _git_checkout |
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 delete-pyc() { | |
find . -name '*.pyc' -delete | |
} | |
function pull-latest-master() { | |
git checkout master; git pull origin master | |
git submodule update --init | |
git submodule foreach --recursive 'git checkout master; git pull origin master &' | |
until [ -z "$(ps aux | grep '[g]it pull')" ]; do sleep 1; done | |
} | |
function update-code() { |
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
alias branch="git branch | grep '^\*' | sed 's/* //'" | |
alias push-current='git push origin $(branch)' |
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 delete-pyc() { | |
find . -name '*.pyc' -delete | |
} | |
function pull-latest-master() { | |
git checkout master; git pull & | |
git submodule foreach --recursive 'git checkout master; git pull &' | |
until [ -z "$(ps aux | grep '[g]it pull')" ]; do sleep 1; done | |
} | |
function update-code() { | |
pull-latest-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
/* copied from http://www.netlobo.com/url_query_string_javascript.html */ | |
function get_url_param( name ) | |
{ | |
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); | |
var regexS = "[\\?&]"+name+"=([^&#]*)"; | |
var regex = new RegExp( regexS ); | |
var results = regex.exec( window.location.href ); | |
if( results == null ) | |
return ""; | |
else |
NewerOlder