Skip to content

Instantly share code, notes, and snippets.

View matz-e's full-sized avatar
🎯
Focusing

Matthias Wolf matz-e

🎯
Focusing
View GitHub Profile
@matz-e
matz-e / ofx-to-ledger.py
Created September 8, 2018 05:55 — forked from code-affinity/ofx-to-ledger.py
Python script for importing OFX files into a ledger-cli file
from __future__ import print_function
from ofxparse import OfxParser
import os
import re
import sys
if len(sys.argv) != 1:
print ('This utility does not take command-line arguments')
exit()
@matz-e
matz-e / beeminder.py
Last active June 2, 2017 23:02 — forked from annawoodard/beeminder.py
Send beeminder word count delta, not cumulative
#!/usr/local/bin/python3
import re
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
@matz-e
matz-e / beeminder.py
Last active May 29, 2017 16:29 — forked from annawoodard/beeminder.py
Update beeminder with TeX wordcount
#!/usr/local/bin/python3
import re
import requests
import shlex
import subprocess
# login to beeminder and visit https://www.beeminder.com/api/v1/auth_token.json
auth_token = 'token'
username = 'username'
goal = 'thesis'
{
"cmsweb-dev": {
"delegate-dn": [
"/DC=ch/DC=cern/OU=computers/CN=jibbers-crabst.cern.ch|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=matze/CN=695852/CN=Matthias Wolf|/DC=ch/DC=cern/OU=computers/CN=vocms(3[136]|21|045|052|021|03[01]).cern.ch"
],
"transformation": {
"Analysis": "http://common-analysis-framework.cern.ch/CMSRunAnaly.sh",
"PrivateMC": "http://common-analysis-framework.cern.ch/CMSRunMCProd.sh"
},
"backend-urls" : {