I hereby claim:
- I am n8henrie on github.
- I am n8henrie (https://keybase.io/n8henrie) on keybase.
- I have a public key whose fingerprint is F21A 6194 C9DB 9899 CD09 E24E 434B 2C14 B8C3 3422
To claim this, I am signing this object:
"""fabric_keychain_passphrase.py | |
Example of how to get Fabric to automatically retrieve an SSH Passphrase from OSX Keychain | |
""" | |
from fabric.api import * | |
import re | |
from paramiko.config import SSHConfig | |
@task |
#! /bin/bash -e | |
# Takes a python requirements file as input and annotates each line with info from PyPI as a comment, | |
# outputs as file_annotated. I use it for taking one site_packages and deciding which packages I want to | |
# reinstall into the system python. | |
requirements_file=$1 | |
filename=${requirements_file%.*} | |
ext=${requirements_file##*.} | |
outfile="$filename"_annotated."$ext" |
def gen_groups(iterable, test, to_beginning=True): | |
group = [] | |
for line in iterable: | |
# If the line is a delimiter | |
if test(line): | |
# and you want delimiters to start groups | |
if to_beginning: | |
# And there is already a group that has | |
# been accumulating non-delimiters | |
if group: |
// google_form_to_email.gs | |
// Google App Script to take response content from a Google Form and send it to an email address. | |
// Make a publically accessible Google Form, share as a "secret link," and if desired shorten | |
// with a custom Bitly link (assuming you have a free domain sitting around). | |
// Installation: From the *form* (not the spreadsheet with the responses), copy this into | |
// Tools -> Script Editor. In Script Editor, set up your trigger to be "on form submit." | |
// Customize the values in SETUP, and customize the message if desired. | |
// The script will loop over all the rows in the spreadsheet except the header row, email |
set nocompatible | |
syntax on | |
set modeline | |
set showmode | |
set encoding=utf-8 | |
set laststatus=2 | |
" Leader is space | |
let mapleader="\<Space>" |
#! /usr/bin/env python3 | |
"""everytrail_backup.py | |
Uses the Everytrail API to back up trip info as a .csv file and all the | |
.gpx files. Files will populate into whatever directory the script is in, | |
so I recommend you first make an "everytrail_backup" folder, move the script | |
there, then run.""" | |
import csv | |
import requests | |
import urllib.parse |
I hereby claim:
To claim this, I am signing this object:
my_project/__init__.py
setup.py
python3 setup.py develop
python3 setup.py test
#! /usr/bin/env python3 | |
"""sql_to_csv.py | |
Accepts an sql database and converts all tables to separate csv files. | |
""" | |
import sqlite3 | |
import csv | |
import sys | |
conn = sqlite3.connect(sys.argv[1]) |