Skip to content

Instantly share code, notes, and snippets.

@benjojo
benjojo / geel.py
Created May 11, 2015 19:25
~in jokes~
import pygtk
pygtk.require('2.0')
import gtk
class FirstWin:
def __init__(self):
self.win = gtk.Window(gtk.WINDOW_TOPLEVEL)
color = gtk.gdk.color_parse('#6495ED')
self.win.modify_bg(gtk.STATE_NORMAL, color)
# To change the color again, just modify it again
@benjojo
benjojo / spacemail.go
Created June 28, 2014 23:24
A client for spacemail
package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
)
<?php
$files = glob('*.wma');
usort($files, function($a, $b) {
return filemtime($a) < filemtime($b);
});
echo('<?xml version="1.0" encoding="UTF-8"?>');
?>
<rss version="2.0">
<channel>
@benjojo
benjojo / chomp.go
Created June 7, 2014 22:31
consumes robot.txt files and makes a json summery of them all
package main
import (
"encoding/json"
"fmt"
"github.com/cheggaaa/pb"
"io/ioutil"
"log"
"runtime"
"strings"
### Keybase proof
I hereby claim:
* I am benjojo on github.
* I am benjojo (https://keybase.io/benjojo) on keybase.
* I have a public key whose fingerprint is 2EDA 1044 EA0E 724F 21F0 FC14 AA8F D834 567F 8B8B
To claim this, I am signing this object:
@benjojo
benjojo / dict.txt
Created January 31, 2014 19:37
CRC is not a good way to hash passwords
This file has been truncated, but you can view the full file.
aa
aah
aahed
aahing
aahs
aal
aalii
aaliis
aals
aardvark
; Input MD5 : 3E96C24A08AFA888AA613B1D9F54C2F8
.386
.model large
; ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
; Segment type: Pure code
seg000 segment byte public 'CODE' use16
assume cs:seg000
#!/usr/bin/python
# Python 3.0+ and 2.5+
# fractal encryption
import os
import hashlib
import math
import random
import sys
import pickle
import argparse
return __func(b, this, arguments, _usage, 0, a, function() {
_reset_signals();
c = HEAP32[4114];
return _mch_msg(__cb(b, a, 4, 4, function() {
return _mch_msg(__cb(b, a, 5, 4, function() {
return _mch_msg(__cb(b, a, 6, 4, function() {
return _mch_msg(__cb(b, a, 7, 4, function() {
return _mch_msg(__cb(b, a, 8, 4, function() {
return _mch_msg(__cb(b, a, 9, 4, function() {
return _mch_msg(__cb(b, a, 10, 4, function() {
@benjojo
benjojo / UDPonWindowsPhone.cs
Created November 30, 2013 14:20
Why the hell is this so hard? What do you want from me MS? My soul?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using WtfUDP.Resources;