Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🌈

Klaus Alexander Seistrup kseistrup

💭
🌈
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am kseistrup on github.
  • I am kseistrup (https://keybase.io/kseistrup) on keybase.
  • I have a public key whose fingerprint is D262 0A73 9DBE 0D41 216A DF27 0548 3F10 A541 92F8

To claim this, I am signing this object:

@kseistrup
kseistrup / twc-following
Created Apr 19, 2014
Protoype of a twister utility: twc-following
View twc-following
#!/usr/bin/python3.3
# -*- mode: python; coding: utf-8 -*-
"""
Usage: twc-following [OPTIONS]
options are:
-h, --help ........ show this help text and exit
-v, --version ..... print version information and exit
"""
##############################################################################
# This program is free software; you can redistribute it and/or modify it #
@kseistrup
kseistrup / twc
Created Apr 19, 2014
Prototype of the master twister client: twc
View twc
#!/bin/sh
# -*- mode: sh; coding: utf-8 -*-
##############################################################################
# This program is free software; you can redistribute it and/or modify it #
# under the terms of the GNU General Public License as published by the Free #
# Software Foundation; either version 3 of the License, or (at your option) #
# any later version. #
# #
# This program is distributed in the hope that it will be useful, but with- #
View twc-setavatar
#!/usr/bin/python3.3
# -*- mode: python; coding: utf-8 -*-
"""
Usage: twc-setavatar [OPTIONS]
options are:
-h, --help ........ show this help text and exit
-v, --version ..... print version information and exit
"""
##############################################################################
# This program is free software; you can redistribute it and/or modify it #
@kseistrup
kseistrup / twc-setprofile
Last active Aug 29, 2015
Python script to easily set your profile parameters on Twister
View twc-setprofile
#!/usr/bin/python3.3
# -*- mode: python; coding: utf-8 -*-
"""
usage: twc-setprofile [-h] [-v] [--copyright] [-d] [-c CONFIG] [-z]
[-n FULLNAME] [-b BIO] [-l LOCATION] [-u URL]
[-m BITMESSAGE] [-t TOX] [--nn] [--nb] [--nl] [--nu]
[--nm] [--nt]
USER
positional arguments:
View aob.py
#!/usr/bin/python
# Audio extraction script for All of Bach:
# http://allofbach.com/en/
import re
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen('http://allofbach.com/en/bwv/')
soup = BeautifulSoup(page)
@kseistrup
kseistrup / onename.md
Last active Aug 29, 2015
OneName verification
View onename.md
View ciphers.sh
#!/usr/bin/env bash
# OpenSSL requires the port number.
SERVER=$1:443
# Delay after each test
DELAY=0
# Ciphers to test
ciphers=$(openssl ciphers 'ALL:eNULL' | sed -e 's/:/ /g')
# Some nice colours :)
@kseistrup
kseistrup / twtxt-forever.sh
Last active Feb 25, 2016
Bash loop to post twtxt ‘tweets’ forever
View twtxt-forever.sh
#!/bin/bash
MY_PROMPT='twtxt> '
my_ruler () {
local ruler=''
local length=8
local ten='----+----|'
local maxlen="${COLUMNS:-140}"
[[ ${maxlen} -gt 140 ]] && maxlen=140
View musickiller-id.json
{
"country": "RU",
"locality": "MOCKBA",
"name": {
"formatted": "Music Killer"
}
}