I hereby claim:
- I am jplesperance on github.
- I am jplesperance (https://keybase.io/jplesperance) on keybase.
- I have a public key whose fingerprint is A2BD 7BBD 1216 79CA AC0E FCC9 BEBD 1309 9D3D 81D2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import sys | |
| import boto | |
| import pprint | |
| del_flag = '' | |
| if len(sys.argv) > 1: | |
| del_flag = sys.argv[1] |
| def to_str(bytes_or_str): | |
| if isinstance(bytes_or_str, bytes): | |
| value = bytes_or_str.decode('utf-8') | |
| else: | |
| value = bytes_or_str | |
| return value # Instance of str | |
| def to_bytes(bytes_or_str): | |
| if isinstance(bytes_or_str, str): | |
| value = bytes_or_str.encode('utf-8') |
I hereby claim:
To claim this, I am signing this object:
| GFORCE => git add -A && git commit --amend -C HEAD && git push -f | |
| c => git_index | |
| cbg => git rev-parse --verify HEAD | simple_clipboard | |
| g => git | |
| ga => git_add_shortcuts | |
| gaa => git add -A | |
| gap => git add -p | |
| gash => git stash | |
| gasha => git stash apply | |
| gashl => git stash list |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Calculates the total number of downloads that a particular PyPI package has | |
| received across all versions tracked by PyPI | |
| """ | |
| from datetime import datetime | |
| import locale |
| #!/bin/bash | |
| protected_branch='master' | |
| current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
| if [ $protected_branch = $current_branch ] | |
| then | |
| read -p "You're about to push master, is that what you intended? [y|n] " -n 1 -r < /dev/tty | |
| echo | |
| if echo $REPLY | grep -E '^[Yy]$' > /dev/null |