Skip to content

Instantly share code, notes, and snippets.

dequis /
Created Jan 4, 2020
Script I use to send n26 transactions to YNAB. Not documented as it's not really intended to be used by anyone but me but good luck.
import requests
from n26.api import Api as N26Api
from datetime import datetime, timedelta
from pprint import pprint
YNAB_TOKEN = '...'
BUDGET_ID = '...'
ACCOUNT_ID = '...'
View bitlbee_ssl.c
// gcc -g -shared -fPIC $(pkg-config --cflags bitlbee) bitlbee_ssl.c -o
#include <bitlbee.h>
#include <ssl_client.h>
static void
beessl_init(account_t *acct)
View steven pinger.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
dequis / gregex.c
Created Feb 11, 2017
Fuzzing test cases for GRegex/posix regexps
View gregex.c
$ gcc $(pkg-config --cflags glib-2.0) -lpthread gregex.c libglib-2.0.a libpcre.a -o gregex
$ echo -n 'pattern\ntext' | ./gregex
#include <glib.h>
#include <string.h>
int main() {
GRegex *preg;
dequis /
Last active May 26, 2018
skypeweb troubleshooting flowchart
digraph {
graph [nodesep=0.1, pad="1,0"];
node [fontsize=9, fontname="DejaVu Sans", margin=0.01];
edge [fontsize=9, fontname="DejaVu Sans"];
start [label="I'm getting an error\ntrying to log in to skypeweb"];
using_latest [label="Are you using\nskypeweb 1.5 or newer?"];
using_latest_no [label="Upgrade to the\nlatest version"];
dequis /
Created Jun 6, 2015 index generator/scraper. requires httpie, pup, jq
maxpage=$(http -v HEAD $baseurl/page/9999/ | grep Location | grep -o '[0-9]*')
for page in $(seq 1 $maxpage); do
http --follow $baseurl/page/$page/ | pup -p ' a json{}' | jq '.[] | {"title": .text, "url": .href}' >> output.json
cat output.json | jq -r '" * [\(.title)]('$baseurl'\(.url))"' >
dequis /
Last active Dec 19, 2017
MSN ApplicationId binary patcher for pidgin/bitlbee/etc - OBSOLETE now that pidgin/bitlbee have the correct fix - READ THE COMMENTS!
#!/usr/bin/env python
MSN ApplicationId patcher for pidgin/bitlbee/whatever
(because you're too lazy to rebuild the whole thing.)
Usage examples:
python /usr/sbin/bitlbee
python /usr/lib/purple-2/
dequis /
Created Nov 3, 2014
PlayerInteractEvent test plugin written in MiniPython
# ---
# name: PlayerInteractEventTest
# ---
import quick
def msg(text):
def nice(text):
dequis /
Created Oct 18, 2014
PlayerMoveEvent test plugin written in MiniPython
# ---
# name: Test
# version: 1.0
# author: dx
# ---
import quick
def format_location(l):
return "x=%.3f y=%.3f z=%.3f yaw=%.3f pitch=%.3f" % \
dequis /
Last active Aug 29, 2015
enterprise twitpic management system
# enterprise twitpic management system
# requires tugboat for digital ocean management:
# gem install tugboat
# tugboat authorize
# usage:
# sh manage $droplet command1 command2 command3
# commands: