Skip to content

Instantly share code, notes, and snippets.

🎧
Writing code

Tom Busby tombusby

🎧
Writing code
Block or report user

Report or block tombusby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tombusby
tombusby / personnummer.rb
Created Sep 12, 2019 — forked from henrik/personnummer.rb
Generate valid Swedish personnummer.
View personnummer.rb
# Generator for valid Swedish personnummer: http://en.wikipedia.org/wiki/Personal_identity_number_(Sweden)
# By Henrik Nyh <http://henrik.nyh.se> 2009-01-29 under the MIT license.
require 'date'
module Personnummer
def self.generate(date=nil, serial=nil)
date ||= Date.new(1900+rand(100), 1+rand(12), 1+rand(28))
serial = serial ? serial.to_s : format("%03d", 1+rand(999)) # 001-999
@tombusby
tombusby / .forward
Created Jul 13, 2018
Cypherpunks Mailing List Majordomo Perl Config Scripts
View .forward
"|/usr/bin/procmail -t"
View keybase.md

Keybase proof

I hereby claim:

  • I am tombusby on github.
  • I am tombusby (https://keybase.io/tombusby) on keybase.
  • I have a public key ASA3mlmKDkAYYwdtusGavupuudIx2Fwn7ztlXfenu-CKkQo

To claim this, I am signing this object:

You can’t perform that action at this time.