Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ubuntor on github.
  • I am ubuntor (https://keybase.io/ubuntor) on keybase.
  • I have a public key whose fingerprint is 9900 787F 58A3 7D71 C532 AC99 5547 7A91 201C 78F0

To claim this, I am signing this object:

from sage.all import *
import pwn
import re
import hashlib
import random
from multiprocessing import Manager, Pool, TimeoutError
from ctypes import c_bool
import struct
results = []
import zlib
import struct
import sys
import codecs
from PIL import Image
s = open('flag.puzzle','rb').read()
size = 57
def xor(data, byte):
from sage.all import *
import string
p = 123722643358410276082662590855480232574295213977
q = 164184701914508585475304431352949988726937945291
n = p * q
t = (p-1)*(q-1)
e = 31415926535897932384
rt = Integers(t)
from PIL import Image
from math import sin, cos, pi
r1 = 72
r2 = 97
flag = ''
for j in range(2,1681,4):
im = Image.open('convert_output_{:05d}.png'.format(j))
@ubuntor
ubuntor / prime.thue
Last active May 22, 2016 16:30
Thue Nth Prime
# mark end
$1=1$;
$2=2$;
$3=3$;
$4=4$;
$5=5$;
$6=6$;
$7=7$;
$8=8$;
$9=9$;
@ubuntor
ubuntor / test.cpp
Last active April 20, 2019 06:00
Test case for ValveSoftware/Proton #2452
#ifndef UNICODE
#define UNICODE
#endif
const wchar_t CLASS_NAME[] = L"class";
#include <cstdio>
#include <windows.h>
#include <io.h>
#include <fcntl.h>
@ubuntor
ubuntor / readme.txt
Created December 22, 2019 00:25
AntWorld [port] (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@ubuntor
ubuntor / parabox.java
Last active June 20, 2020 06:53
parabox mockup in processing
int frame = 0;
int depth_limit = 6;
int ti = -1;
String world = "";
String world_ending = "...";
int world_length = 3;
PVector main = new PVector(400, 400, 90);
PVector ba;
PVector bb;
PVector bc;
import sys
import struct
import binascii
from collections import Counter
def u16(b):
return struct.unpack('<H', b)[0]
def p16(x):
return struct.pack('<H', x)
def p32(x):