Ariadne OpenGPG Claim: openpgp4fpr:50fec3a364b59bee734d0e9b56a3789ced4d2dd7
This file contains 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/sh | |
# Loads and unloads secrets from pass into shell environment variables. | |
# Usage: | |
# # Load secrets: | |
# $ source secrets.sh | |
# | |
# # Unload secrets | |
# $ source secrets.sh unload | |
# |
This file contains 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
on run | |
set vol_level to (input volume of (get volume settings)) | |
if (vol_level < 1) then | |
set volume input volume ReadVolumeLevel() | |
else | |
set volume input volume 0 | |
WriteVolumeLevel(vol_level) | |
return vol_level | |
end if |
This file contains 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
from datetime import date | |
import sqlite3 | |
EPOCH_OFFSET = 978278400 | |
conn = sqlite3.connect('banktivity.sql') | |
conn.row_factory = sqlite3.Row | |
first_date = None | |
accounts = set([]) |
This file contains 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
# This is particularly useful when your doc strings are written in rST as part of | |
# a bigger project, but are also needed to be displayed elsewhere, for when when | |
# generating code. | |
""" | |
This is intended to have similar interface to doctools.core (specifically | |
publish_string level of methods), but still could use more cleanup. Plaintext | |
output is assumed. Changing this would require tinkering with the Sphinx writers. | |
""" | |
import docutils.io |
This file contains 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
import codecs | |
from datetime import datetime | |
import json | |
import os | |
import posixpath | |
import re | |
import shutil | |
import sys | |
# This script will import your instagram photos to your static site. It should work for most, assuming you customize the POST_TEMPLATE to match what your site uses. |
This file contains 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
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am mayo on github. | |
* I am mayo (https://keybase.io/mayo) on keybase. | |
* I have a public key whose fingerprint is 50FE C3A3 64B5 9BEE 734D 0E9B 56A3 789C ED4D 2DD7 | |
To claim this, I am signing this object: |
This script converts JSON file from Simplenote Export web service into individual Markdown files.
It's nothing fancy, first argument is the JSON file, second argument is directory to write the notes to. The note files are named by using the first 60 characters (or a little more, up to a full word) of the first line of the note, stripped of any characters outside of letters, simple dash, underscore, brackets, space, single quote, and plug and equal signs.
Tags are stored on the bottom of the note on a line starting with "TAGS:", and the SimpleNote note ID/key as a "KEY:" line.
This file contains 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
--- Import.lua.orig 2014-10-25 10:13:07.000000000 -0700 | |
+++ Import.lua 2014-10-25 10:41:34.000000000 -0700 | |
@@ -154,15 +154,15 @@ | |
local kwdInf, outputPath, err = Utils.getKeywordInfo( aperturePkg, workDir ) | |
- if props.importOnlyUsedKeywords then | |
+ if props.importOnlyUsedKeywords and kwdInf then | |
for i, root in ipairs( kwdInf.keywords ) do | |
dropUnusedKeywords( root, kwdInf.keywords, i, kwdInf.usedKeywords ) |
NewerOlder