Skip to content

Instantly share code, notes, and snippets.

@benjojo
benjojo / gist:4697446
Created February 2, 2013 13:47
Yeah, I am pretty bored.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PHPrB64
{
class Program
{
string[] contries = new string[268] { "Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas The", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Brunei", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Central African Republic", "Chad", "Chile", "China, People's Republic of", "Colombia", "Comoros", "Congo, (Congo – Kinshasa)", "Congo, (Congo – Brazzaville)", "Costa Rica", "Cote d'Ivoire (Ivory Coast)", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "Gabon", "Gambia, The", "Georgia", "Germany", "Ghana", "Greece", "Grenada", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras
@benjojo
benjojo / wat.js
Created September 16, 2013 08:37
[][(![] + [])[+[
[+[]]
]] + ([][
[]
] + [])[+[
[!+[] + !+[] + !+[] + !+[] + !+[]]
]] + (![] + [])[+[
[!+[] + !+[]]
]] + ( !! [] + [])[+[
[+[]]
@benjojo
benjojo / gggg.go
Last active December 24, 2015 07:59
ggggggg
package main
import (
b32 "encoding/base32"
"fmt"
"os"
s "strings"
)
func main() {
function ThinkUp() {
var people = ["Lex", "Ben","Mo","Kam","James","Ella","Ataman"];
var comsumebales = ["water","liquid","plant food"];
var twitterusernames = ['@benjojo12','@lexilly','@benselby','@playgen'];
var str = ""
str+=WeightedChoose([
Choose(["too "+Choose(["much", "little"])+" sun","need water","need food","need shelter","food please","intruder detected","hey hey","let's be bros"]),
Choose([Choose(['nice one','good job','dammit','goddammit']) + " " + Choose(people)]),
Choose([Choose(twitterusernames) + " I need more water", Choose(twitterusernames) + " its "+Choose(['a little','really','mega','super','a tad'])+" " + Choose(['hot','cold']) + " in here"]),
Choose(["What a nice day!","It's sunny today.","It's a sunny day out.","It's such a nice day.","It's such a great day to be alive!","This is a happy kind of day.","I feel great.","Ooh, I'm feeling fine.","I'm feeling awesome.","Hey, this is great!","I'm so glad I came here.","I regret nothing!","Regrets are pointl
@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;
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() {
#!/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
; Input MD5 : 3E96C24A08AFA888AA613B1D9F54C2F8
.386
.model large
; ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
; Segment type: Pure code
seg000 segment byte public 'CODE' use16
assume cs:seg000
@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