Skip to content

Instantly share code, notes, and snippets.

df['account.fullname'][11:20]
'''
guid
13592a1b945f1ee334c5982049b35327 Aktiva:Barvermögen:Girokonto
9d362dd65015be27e5d9d9647c4d4f29 Aktiva:Barvermögen:Girokonto
5f0744ca60a81c338ae6ef24c1cb9156 Aufwendungen:Haushalt:Lebensmittel
45686c3148f09629606d57711417c788 Aufwendungen:Kleidung
6a4cf43b57252b85611b0e2356531d10 Aktiva:Barvermögen:Girokonto
@jottr
jottr / telnet.txt
Created April 28, 2016 05:40
Telnet test
$ telnet smtp.sparkpostmail.com 587
Trying 52.10.55.4...
Connected to smtp.sparkpostmail.com.
Escape character is '^]'.
220 2.0.0 smtp.sparkpostmail.com ESMTP ecelerity 4.2.18.54483 r(Core:4.2.18.0) Thu, 28 Apr 2016 05:37:55 +0000
EHLO smtp.sparkpostmail.com
250-momentum1.platform1.us-west-2.aws.cl.messagesystems.com says EHLO to 148.251.138.38:51871
250-STARTTLS
250-8BITMIME
250-PIPELINING
@jottr
jottr / -
Created December 18, 2015 18:10
2015-12-18 18:51:40 -- irc: connecting to server chat.freenode.net/7000 (SSL)...
2015-12-18 18:51:40 -- gnutls: connected using 1024-bit Diffie-Hellman shared secret exchange
2015-12-18 18:51:40 -- gnutls: receiving 3 certificates
2015-12-18 18:51:40 -- - certificate[1] info:
2015-12-18 18:51:40 -- - subject `OU=Domain Control Validated,OU=Gandi Standard Wildcard SSL,CN=*.freenode.net', issuer `C=FR,ST=Paris,L=Paris,O=Gandi,CN=Gandi Standard SSL CA 2', RSA key 2048 bits, signed using RSA-SHA256, activated `2015-12-14 00:00:00 UTC', expires `2017-02-16 23:59:59 UTC', SHA-1 fingerprint `b0c1578208ed07682b9439a0b010f32b290c1956'
2015-12-18 18:51:40 -- - certificate[2] info:
2015-12-18 18:51:40 -- - subject `C=FR,ST=Paris,L=Paris,O=Gandi,CN=Gandi Standard SSL CA 2', issuer `C=US,ST=New Jersey,L=Jersey City,O=The USERTRUST Network,CN=USERTrust RSA Certification Authority', RSA key 2048 bits, signed using RSA-SHA384, activated `2014-09-12 00:00:00 UTC', expires `2024-09-11 23:59:59 UTC', SHA-1 fingerprint `
@jottr
jottr / gist:679617aba5a7b09d1039
Created December 13, 2015 19:13 — forked from dbiesecke/movies.m3u
pvr.iptvsimple iptvde.m3u
#EXTM3U
#EXTINF:-1 tvg-id="ARD.de" tvg-logo="ard.png",ARD
http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/master.m3u8
#EXTINF:-1 tvg-id="ZDF.de" tvg-logo="zdf.png",ZDF
http://zdf_hds_de-f.akamaihd.net/i/de14_v1@147090/master.m3u8
#EXTINF:-1 tvg-id="tagesschau24.de" tvg-logo="tagesschau24.png",TAGESSCHAU 24
http://tagesschau-lh.akamaihd.net/i/tagesschau_1@119231/master.m3u8
#EXTINF:-1 tvg-id="ZDFneo.de" tvg-logo="zdfneo.png",ZDF NEO
http://zdf_hds_de-f.akamaihd.net/i/de13_v1@147090/master.m3u8
#EXTINF:-1 tvg-id="ZDFinfo.de" tvg-logo="zdfinfo.png",ZDF INFO
@jottr
jottr / pdfcrop
Created December 4, 2015 16:55
A better pdfcrop, which preserves links
#!/bin/bash
# from http://tex.stackexchange.com/questions/42236/pdfcrop-generates-larger-file
function usage () {
echo "Usage: `basename $0` [Options] <input.pdf> [<output.pdf>]"
echo
echo " * Removes white margins from each page in the file. (Default operation)"
echo " * Trims page edges by given amounts. (Alternative operation)"
echo
echo "If only <input.pdf> is given, it is overwritten with the cropped output."
@jottr
jottr / vj.sh
Last active July 14, 2017 23:01 — forked from kljensen/vj.sh
A simple, encrypted journal using vim.
#!/usr/bin/env bash
##########################################################
#
# This is a shell script for keeping a journal that is
# * plaintext,
# * time-stamped,
# * encrypted, and
# * edited with vim.
#
@jottr
jottr / _trace.log
Last active August 31, 2015 09:37
Ledger Test File and ipython notebook trace
---------------------------------------------------------------------------
DatabaseError Traceback (most recent call last)
<ipython-input-19-7bbf1816cba4> in <module>()
1 # open gnucash database as writeable
----> 2 book = pc.open_book("/tmp/foo.gnucash", readonly = False, open_if_lock = True)
/usr/local/lib/python2.7/site-packages/piecash/core/session.pyc in open_book(sqlite_file, uri_conn, readonly, open_if_lock, do_backup, db_type, db_user, db_password, db_name, db_host, db_port, **kwargs)
241 shutil.copyfile(url, url_backup)
242
@jottr
jottr / setdns
Last active August 29, 2015 14:26
This script quickly switches between different dns servers...
#!/bin/bash
usage="$(basename "$0") sets the DNS for the wifi network to one of the following:
[-n]ative: sets to local DNS
[-g]oogle: sets to google DNS
[-t]unlr: sets to tunlr DNS
[-h]elp prints this help message.
"
@jottr
jottr / gmail_layout.js
Created June 6, 2015 14:24
Userscript that moves around certain aspects of gmail layout.
// ==UserScript==
// @name gmail layout
// @namespace http://mail.gogogle.com
// @version 0.1
// @description This script reorders some parts of the gmail layout
// @author jottr
// @match https://mail.google.com/mail/*
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
@jottr
jottr / bluetooth.txt
Created January 3, 2015 22:41
mavericks bluetooth audio quality settings.
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 80