I hereby claim:
- I am kmosher on github.
- I am kmosher (https://keybase.io/kmosher) on keybase.
- I have a public key ASDb4HbVeojgRFNa19eh-RNjILvRWNeATxwOnPA1WaAISwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import csv | |
| import sys | |
| from pprint import pprint | |
| with open(sys.argv[1]) as infile: | |
| with open(sys.argv[2], 'wb') as outfile: | |
| reader = csv.DictReader(infile) | |
| writer = csv.DictWriter(outfile, ['Description', 'Date Acquired', 'Sales Proceeds', 'Date Sold', 'Cost', 'Adjustment Code', 'Adjustment Amount', 'Reporting Category']) |
| #!/bin/bash | |
| display_height=1920 | |
| display_width=1200 | |
| display_count=3 | |
| bg=black | |
| resolution="$(($display_count * $display_width))x$display_height" | |
| convert "$1" -resize $resolution \ |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| """ | |
| Turns the output of pg_dumpall into a directory structure. The | |
| format is intended to be suitable for committing to git. | |
| The original pg_dumpall file can be reconstructed easily from the | |
| TABLE_OF_CONTENTS file like so: | |
| cd DUMP_DIR; cat $( <TABLE_OF_CONTENTS ) |
| # Makes an image (namely this one: http://ksdenvironmental.co.uk/wp-content/uploads/2014/12/icon_shed.jpg) flash red and blue | |
| # Creates a slack-friendly gif | |
| #!/bin/bash | |
| convert "$1" -fuzz '14%' -transparent white \ | |
| -gravity Center -crop 140x120-0-1 +repage \ | |
| -grayscale rec709luma \ | |
| \( +clone +level-colors red, \) \( -grayscale rec709luma +clone +level-colors blue, \) \ | |
| -delete 0 \ | |
| -morph 2 -set delay 15 \ |
| #!/bin/zsh | |
| set -e | |
| setopt extendedglob | |
| o_font=(--font /Library/Fonts/Impact.ttf) | |
| o_pointsize=(--pointsize 42) | |
| o_remote=(--remote "people.yelpcorp.com:public_html/dockercats/") | |
| o_identity=(--identity "dockercats") | |
| o_irc=(--irc) | |
| o_tumblr=() |
| body { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0; | |
| box-sizing: border-box; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-content: center; | |
| } |
| // A script for bulk deleting emails in the background and preventing future buildup | |
| // Allows you to continue to use your gmail inbox while it runs. | |
| // | |
| // Instructions for use | |
| // -------------------- | |
| // 1. Put this in a new project on script.google.com | |
| // 2. Edit the LABELS or even the search construction to fit your needs | |
| // 3. Set a trigger to run main() every 5 minutes. Why 5 minutes? That's the longest a script is allowed to run, | |
| // so your script will also get killed every 5 minutes if it's busy trying to delete a lot of mail |
| #!/usr/bin/python | |
| """ | |
| Return a random unicode character likely to render as a valid emoji in gmail | |
| Ranges are taken from | |
| http://www.unicode.org/~scherer/emoji4unicode/20090804/utc.html | |
| """ | |
| import random |