Skip to content

Instantly share code, notes, and snippets.

View daedalus's full-sized avatar

Darío Clavijo daedalus

View GitHub Profile
@drhelius
drhelius / Game Boy Boot ROM Disassembly
Last active July 13, 2026 17:16
Game Boy Boot ROM Disassembly
LD SP,$fffe ; $0000 Setup Stack
XOR A ; $0003 Zero the memory from $8000-$9FFF (VRAM)
LD HL,$9fff ; $0004
Addr_0007:
LD (HL-),A ; $0007
BIT 7,H ; $0008
JR NZ, Addr_0007 ; $000a
LD HL,$ff26 ; $000c Setup Audio
@jgilmour
jgilmour / bitcoin-secureRandom-affected-list-1
Created August 12, 2013 22:33
Bitcoin secureRandom affected address list - #1
from: http://people.xiph.org/~greg/rvals.txt
f71ac79e5b9db7365e27766448bc5c2361013ebb0f8e14c2699fac9d10d0fe1c 0 16E14CADF4F7EB58F8C63375E15B85950C0E14AF7890B490764A08514685D92D
bb932a0de92e9ad2ae2c37695ebf0e1d1285df7e970ff06bd7c2260c7aeb889e 0 16E14CADF4F7EB58F8C63375E15B85950C0E14AF7890B490764A08514685D92D
fedf2731c3f649633d705c14d125fbf9418f29959b05b666d458c8ed2304579f 0 5A17AA621A79D0910314AE6AC8C807769879B3F939FC09665AF81DCE340DA07E
e8fcf51916318ee4f21bcce31a86925987f6d4696624bfc71b8f2963496b6a65 0 5A17AA621A79D0910314AE6AC8C807769879B3F939FC09665AF81DCE340DA07E
6122bfca98e9b00424dd2173bdfa8ffd8d2f1fa3037feafa91b9a83387073cf2 0 9BA2D6F988DA1F387E1C0C787A314BC72F20FBD2DAD7D1A188CD46B41E32E96A
5890bc0ef869d9c093423e99e2eb39ad41b6292d3808253128af62f0425bbba2 0 9BA2D6F988DA1F387E1C0C787A314BC72F20FBD2DAD7D1A188CD46B41E32E96A
dac290588573d91f5aa71b3f552822e194bd3a24cbbc2caaadb98b42430cbccc 0 6B63D3D6983F58A5E4783D1167F0C0424E546F2F987D796DEDA32EEAD26CAC53
@swarminglogic
swarminglogic / getoeis.sh
Created August 15, 2013 14:44
Bash script to crawl the OEIS database, and get the number of entries for each integer. See http://swarminglogic.com/articles/2013_08_oeis for more information.
#!/bin/bash
[[ ! "$1" == "-" && ! "$1" == "+" ]] && echo "Invalid sign paramter [-|+]" && exit;
[[ "$1" == "-" ]] && suff="neg";
[[ "$1" == "+" ]] && suff="pos";
cntfile='cntfile_'$suff
[[ ! -e $cntfile ]] && echo '0' > $cntfile;
file='values_'$suff
@JamieMason
JamieMason / unfollow.js.md
Last active June 29, 2026 05:20
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
@adoc
adoc / rng.js
Created January 25, 2014 05:20
rng.js: Random number generator
//http://www-cs-students.stanford.edu/~tjw/jsbn/prng.js
// prng4.js - uses Arcfour as a PRNG
function Arcfour() {
this.i = 0;
this.j = 0;
this.S = new Array();
}
// Initialize arcfour context from key, an array of ints, each from [0..255]
@gitaarik
gitaarik / git_submodules.md
Last active July 18, 2026 22:56
Git Submodules basic explanation

Git Submodules - Basic Explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@Yawning
Yawning / gist:9501996
Created March 12, 2014 06:39
Python CTR_DRBG (CTR-AES-128)
""" NIST SP 800-90A style CTR_DRBG, using CTR-AES-128. """
import obfsproxy.common.aes as aes
import binascii
import os
import random
class CtrDrbg(random.Random):
"""
@sh1n0b1
sh1n0b1 / ssltest.py
Created April 8, 2014 07:53
Python Heartbleed (CVE-2014-0160) Proof of Concept
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@eelsivart
eelsivart / heartbleed.py
Last active February 10, 2026 15:28 — forked from sh1n0b1/ssltest.py
Heartbleed (CVE-2014-0160) Test & Exploit Python Script
#!/usr/bin/python
# Modified by Travis Lee
# Last Updated: 4/21/14
# Version 1.16
#
# -changed output to display text only instead of hexdump and made it easier to read
# -added option to specify number of times to connect to server (to get more data)
# -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc...
# -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port)
@rtt
rtt / tinder-api-documentation.md
Last active June 18, 2026 11:54
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)