Skip to content

Instantly share code, notes, and snippets.

View thijsj's full-sized avatar

Thijs Janssen thijsj

View GitHub Profile
Verifying my Blockstack ID is secured with the address 134KZVNdpzKg4DYGjafjf2f6kQfTEKdUbE https://explorer.blockstack.org/address/134KZVNdpzKg4DYGjafjf2f6kQfTEKdUbE

Keybase proof

I hereby claim:

  • I am thijsj on github.
  • I am thijsj (https://keybase.io/thijsj) on keybase.
  • I have a public key ASAKRgZpuBy0mEGelZh8L3AVOJA2numq1qdwc-LMv3veOQo

To claim this, I am signing this object:

@thijsj
thijsj / backup-github.sh
Last active April 29, 2016 09:12 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
@thijsj
thijsj / iban.py
Last active February 22, 2017 10:14
Get full IBAN number for a bank account
#!/usr/bin/env python
def iban(ibanAccount, countryCode):
print ''.join(char if char.isdigit() else str(ord(char) - ord('A') + 10) for char in ibanAccount + countryCode) + '00'
n = int(''.join(char if char.isdigit() else str(ord(char) - ord('A') + 10) for char in ibanAccount + countryCode) + '00')
print n
print n%97
c = 98 - n % 97
print c
print '%s%02d %s' % (countryCode, c, ' '.join(ibanAccount[i:i+4] for i in [0,4,8,12]))