This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
source token.sh # should export the ACCESS_TOKEN and USER variables | |
PAGE=1 # Run once per page (manually for now) | |
PER_PAGE=100 # Max 100 | |
function list_repos { | |
echo "Listing repos" > /dev/stderr | |
curl -s -H "Authorization: token $ACCESS_TOKEN" "https://api.github.com/search/code?page=$PAGE&per_page=$PER_PAGE&q=http://www.eecs.harvard.edu/~kirsch/pubs/bbbf/esa06.pdf" | \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
############################################################################### | |
# | |
# Script for generating a truly random password, using atmospheric noise. The | |
# generator uses the web service at random.org | |
# | |
# Usage: | |
# password.py [password length] [alphabet] | |
# For example: password.py 5 abcdefgh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Function that checks if a swedish personnummer is valid. | |
* Author: André Laszlo <andre@laszlo.nu> | |
*/ | |
function check_personnummer(pnr) { | |
// Do formatting and sanity control | |
pnr = pnr.replace(/[^0-9]/g, ''); // only keep digits | |
if (12 == pnr.length) // year format 1985 → 85 | |
pnr = pnr.substr(2); |
OlderNewer