Navigation Menu

Skip to content

Commit

Permalink
Make better
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinkihaveacat committed Dec 5, 2012
1 parent c58b536 commit 23687ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions programs/python
Expand Up @@ -5,3 +5,6 @@ PATH0=$(makepath $PATH0 $HOME/local/lib/python/bin)
BASE="$HOME/local/lib/python/lib/2.6/site-packages" BASE="$HOME/local/lib/python/lib/2.6/site-packages"


export PYTHONPATH=$(makepath /usr/local/lib/python*/site-packages/*.egg $PYTHONPATH) export PYTHONPATH=$(makepath /usr/local/lib/python*/site-packages/*.egg $PYTHONPATH)

# Without cat, get python stack trace if you abort pipe
alias jsonlint="python -mjson.tool | cat"
5 changes: 1 addition & 4 deletions unix/darwin/cannonball/config
@@ -1,13 +1,10 @@
# -*- sh -*- # -*- sh -*-


export ACCEPT="application/json" export ACCEPT="application/json"
export X_CANDY_PLATFORM="desktop" # or "mobile" export X_CANDY_PLATFORM="EnhancedMobile" # or "desktop"
export X_CANDY_AUDIENCE="international" # or "domestic" export X_CANDY_AUDIENCE="international" # or "domestic"


# Aliases don't do any sort of expansion: http://mywiki.wooledge.org/BashFAQ/080 # Aliases don't do any sort of expansion: http://mywiki.wooledge.org/BashFAQ/080
function apicurl { function apicurl {
curl -s -E $HOME/.ssh/bbc/certificate.pem -H "Accept: $ACCEPT" -H "X-Candy-Platform: $X_CANDY_PLATFORM" -H "X-Candy-Audience: $X_CANDY_AUDIENCE" "$@" curl -s -E $HOME/.ssh/bbc/certificate.pem -H "Accept: $ACCEPT" -H "X-Candy-Platform: $X_CANDY_PLATFORM" -H "X-Candy-Audience: $X_CANDY_AUDIENCE" "$@"
} }

# Without cat, get python stack trace if you abort pipe
alias jsonlint="python -mjson.tool | cat"
1 change: 1 addition & 0 deletions unix/linux/T410s/config

0 comments on commit 23687ef

Please sign in to comment.