/mouse enable
This file contains hidden or 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
| # hello.py | |
| import click | |
| @click.command() | |
| @click.option( | |
| '--name', default='world', | |
| prompt='greet whom?', | |
| help='who should i greet?' | |
| ) | |
| def main(name): |
This file contains hidden or 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
| cat .gitmodules |while read i | |
| do | |
| if [[ $i == \[submodule* ]]; then | |
| mpath=$(echo $i | cut -d\" -f2) | |
| read i; read i; | |
| murl=$(echo $i|cut -d\ -f3) | |
| mcommit=`eval "git submodule status ${mpath} |cut -d\ -f2"` | |
| mname=$(basename $mpath) | |
| echo -e "$name\t$mpath\t$murl\t$mcommit" | |
| git submodule deinit $mpath |
This file contains hidden or 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
| #!/bin/bash -x | |
| # This script will convert all your git submodules into git subtrees. | |
| # This script ensures that your new subtrees point to the same commits as the | |
| # old submodules did, unlike most other scripts that do this. | |
| # THIS SCRIPT MUST BE PLACED OUTSIDE OF YOUR REPOSITORY!!!!!!!!!! | |
| # Otherwise, the script will interfere with the git commits (unless you add it to .gitignore). | |
| # Save the script in your home directory as `~/subtrees.sh` | |
| # `cd` into your repository | |
| # Run `~/subtrees.sh` | |
| # Enjoy! |
This file contains hidden or 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
| # install: | |
| # pip3 install python-gnupg | |
| # note - gpg needs to be installed first: | |
| # brew install gpg | |
| # apt install gpg | |
| # you may need to also: | |
| # export GPG_TTY=$(tty) |
This file contains hidden or 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
Show hidden characters
| { | |
| "presets": [ | |
| ["env", { | |
| "targets": { | |
| "browsers": ["last 2 versions", "safari >= 7"] | |
| } | |
| }], | |
| "babili" | |
| ] | |
| } |
This file contains hidden or 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
| # -*- coding: utf-8- -*- | |
| # from: http://piao-tech.blogspot.no/2010/03/get-offlineimap-working-with-non-ascii.html#resources | |
| import binascii | |
| import codecs | |
| # encoding | |
| def modified_base64 (s): |
NewerOlder
