Skip to content

Instantly share code, notes, and snippets.

@whistler
whistler / ofx2csv.py
Created April 19, 2015 23:32
Convert QFX/OFX to CSV
from csv import DictWriter
from glob import glob
from ofxparse import OfxParser
DATE_FORMAT = "%m/%d/%Y"
def write_csv(statement, out_file):
print "Writing: " + out_file
fields = ['date', 'payee', 'debit', 'credit', 'balance']
with open(out_file, 'w') as f:
@qxo
qxo / docker-enter
Last active August 7, 2016 17:58
a shell script for enter a container (using nsenter)
#!/bin/sh
# a shell script for enter a container (using nsenter)
bin=$(which nsenter)
if [ -z "$bin" ] ; then
echo "please get nsenter using ( docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter ) \n from https://github.com/jpetazzo/nsenter "
exit 1
fi
c="";
if [ -z "$1" ] ; then
ClientGetter playClientGetter = new ClientGetter() {
private int playPort;
private String playHost;
{
String portString = System.getenv("PLAY_PORT");
if (portString == null)
portString = "9000";
playPort = Integer.parseInt(portString);
playHost = System.getenv("PLAY_HOST");
@hofmannsven
hofmannsven / README.md
Last active October 2, 2025 20:17
Git CLI Cheatsheet
@plentz
plentz / nginx.conf
Last active October 22, 2025 16:10
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048