Skip to content

Instantly share code, notes, and snippets.

View mogigoma's full-sized avatar

Mak Kolybabi mogigoma

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mogigoma on github.
  • I am mogigoma (https://keybase.io/mogigoma) on keybase.
  • I have a public key ASCehHLQMOThjwMLjlEdABFWY6wwKohByYyAk1eiUVPzYwo

To claim this, I am signing this object:

@mogigoma
mogigoma / gist:3751758
Created September 19, 2012 19:39
CanadaComputers.com's undefeatable CAPTCHA
function SubmitVerify()
{
var form1 = document.login;
var se_code;
se_code = document.getElementById("security_code").value;
se_code_0 = "I2xQTk";
if (se_code.toLowerCase() != se_code_0.toLowerCase())
{
Hob. I/1
Hob. I/1
Hob. I/1
Hob. I/2
Hob. I/2
Hob. I/2
Hob. I/3
Hob. I/3
Hob. I/3
Hob. I/3
@mogigoma
mogigoma / elnode-publish.el
Created August 11, 2012 06:25
A hack to publish any buffer exactly as it appears in Emacs on demand over HTTP.
(defvar mak/elnode-publish-port
4444
"The port for published buffers to be served on.")
(defvar mak/elnode-publish-buffers
(make-hash-table :test 'equal)
"List of the buffers to publish over HTTP.")
(defun mak/elnode-publish-handler (httpcon)
"Handler for buffers published by Elnode."
@mogigoma
mogigoma / demo.py
Created August 3, 2012 16:37
For Fernando
strings = [
"zero",
"one",
"two",
"three",
"four"
]
n = 12
@mogigoma
mogigoma / parse-ssh-pubkey.el
Created July 25, 2012 04:11
Parse the binary portion of an SSH that's already decoded from Base64.
(require 'bindat)
(require 'format-spec)
(defvar dsa-pubkey-format-spec
"Parameter P: %p\nParameter Q: %q\nParameter G: %g\nParameter Y: %y\n"
"Output format for DSA public keys.")
(defvar dsa-pubkey-bindat-spec
'((:p-len u32)
(:p vec (:p-len))
badgers-1
badgers-0
monkeys-a
koalas-1
badgers-2
badgers-1
koalas-0
monkeys-b
auto-reload yes
browser firefox
cache-file "~/.newsbeuter/cache.db"
confirm-exit no
error-log "~/.newsbeuter/error.log"
max-items 1000
reload-time 60
save-path "~/tmp/"
show-read-feeds no
suppress-first-reload yes
@mogigoma
mogigoma / gist:1968479
Created March 3, 2012 21:52
SSH Banner for the SkullSpace Classroom Jail
% ssh -p 99 classroom.skullspace.ca
______
.d$$$$$$$$$$b.
s$$$Ss' `sS$$$s
$Ss' `s$S _____ _ _ _ _____
S$s __________ s$S / ____| | | | |/ ____|
S$' d$$$$$$$$$$$$b `$S | (___ | | ___ _| | | (___ _ __ __ _ ___ ___
.S$' .$$$$$$$$$$$$$$$$. $S. \___ \| |/ / | | | | |\___ \| '_ \ / _` |/ __/ _ \
$$' S$$' `$$$$' `$$S `$$ ____) | <| |_| | | |____) | |_) | (_| | (_| __/
|$$ $$$ $$$$ $$$ $$| |_____/|_|\_\\__,_|_|_|_____/| .__/ \__,_|\___\___|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDWADIEUiiPddJ+oWcQnr/DvQ9O93p9sAN8Cd+CFNIqGDPxVXNqj5i2ogJZ3EAYQQ8Vf8PkLsq93CtcqVtzlkpq8MGr6aGl+g/hzezWQZo1v3UvErr7siyU9ukteVo8g3909sJAQ0MAuRaO++ZkASTutXBDAis/RWq7yEFmUaZnEQ==