I hereby claim:
- I am adamwalz on github.
- I am adamwalz (https://keybase.io/adamwalz) on keybase.
- I have a public key whose fingerprint is 2EF6 0078 D0DC EC77 72BA E979 7D63 5FB2 24BA 2765
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
date=$1 | |
wunderground_key="INSERT KEY HERE" | |
summary="$(http http://api.wunderground.com/api/${wunderground_key}/history_${date}/q/UT/Sandy.json | jsawk 'return this.history.dailysummary[0]')" | |
minhumidity=$(echo $summary | jsawk 'return this.minhumidity') | |
maxhumidity=$(echo $summary | jsawk 'return this.maxhumidity') | |
temp=$(echo $summary | jsawk 'return this.meantempi') |
Rename is a *nix tool to rename files according to modification rules specified on the command line.
The examples below show how to rename common naming schemes from toreented moveies and tv shows in the way that Plex can parse to gather metadata. The examples all currently use the -n
flag to do a dry run and only print out what the files would be renamed to. Remove the flag to actually overwrite the filename.
'Modern.Family.S05E01.720p.5.1Ch.Web-DL.ReEnc-DeeJayAhmed.mkv' --> 'Modern Family - s05e01.mkv'
# This is a github gist | |
a = 10 | |
b = 3 * a + 2 | |
printf("%d %d\n", a, b); |
#!/usr/bin/osascript | |
------------------------------------------------------------------------------ | |
-- FILE: pocket_to_evernote_clipper.scpt | |
-- DESCRIPTION: Imports all clips from Pocket into Evernote through the | |
-- Evernote Web Clipper for Safari | |
-- AUTHOR: Adam Walz <[email protected]> | |
-- VERSION: 1.1.0 | |
-- | |
-- This script takes a file containing a list of urls, one per line, and | |
-- imports the urls into Evernote by similuating use of the Evernote Web |
server { | |
server_name www.adamwalz.net; | |
return 301 $scheme://adamwalz.net$request_uri; | |
} | |
server { | |
server_name adamwalz.net *.adamwalz.net; | |
root /home/adamwalz/Sites/adamwalz.net; | |
access_log /var/log/nginx/adamwalz.net/access.log; |
#!/usr/bin/osascript | |
------------------------------------------------------------------------------ | |
-- FILE: redate_evernote_receipts.scpt | |
-- DESCRIPTION: Changes the created: attributes of notes in a Receipts Notebook | |
-- AUTHOR: Adam Walz <[email protected]> | |
-- VERSION: 1.0.0 | |
-- | |
-- This script changes the created: attribute of notes in a single notebook | |
-- to 11:59:59 on the last day of the month. | |
-- To do this, notes are required to be in a notebook titled "Receipts 2014" |
from plistlib import readPlist | |
from cgi import escape | |
from lxml.etree import SubElement as sub | |
import lxml.etree | |
# Load in apple mail rules file | |
rules_file = '~/Library/Mail/V2/MailData/SyncedRules.plist' | |
rules = readPlist(rules_file) | |
# Create gmail filters xml header |