Skip to content

Instantly share code, notes, and snippets.

View john-science's full-sized avatar

John Stilley john-science

View GitHub Profile
@john-science
john-science / Lass_uns_Deutsch_lernen.md
Last active November 9, 2017 19:43
Lass uns Deutsch Lernen!
@john-science
john-science / plot_weights.ipynb
Last active September 20, 2017 17:25
Plot Weights using `fill_between`.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@john-science
john-science / exp.ipynb
Created September 6, 2017 21:25
Greedy Cave EXP-Grinding Rate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@john-science
john-science / compile_xkcd.py
Last active July 9, 2018 17:47
Just make random edits until it compiles.
#!/usr/bin/env python
"""
XKCD Compile
Usage: compile_xkcd.py [FILE.c]
Compile your C code XKCD style.
Exactly one file must be specified.
Inspired by XKCD: https://xkcd.com/1513/
@john-science
john-science / .bashrc
Last active July 21, 2025 22:05
A handy .bashrc file.
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# aliases I love
alias l='ls -thal'
alias lh='ls -thal'
@john-science
john-science / snake.sh
Created August 7, 2017 22:53
The classic Snake game, written in Bash.
#!/bin/bash
#
# Centipede game
#
# v2.0
#
# Author: [email protected]
#
# Functions
@john-science
john-science / wish_i_were_at_defcon_2017_hackathon.md
Last active July 14, 2017 21:51
The "I Wish I Were at DefCon 2017" Hack-a-thon - Ideas

I have moved my work on this hack-a-thon to its own repo.

@john-science
john-science / slow_loris.md
Last active July 18, 2017 03:26
Notes for Building the Slow Loris Attack in Java
@john-science
john-science / md5.java
Created July 5, 2017 20:01
Java MD5 Super Collider is Super Slow
import java.security.*;
import java.math.BigInteger;
public class md5 {
private static MessageDigest md;
private static final String charList = "0123456789abcdef";
private static SecureRandom rand = new SecureRandom();
private static final int numLoops = (int)1e6;
@john-science
john-science / security_blogs.md
Last active July 7, 2017 03:14
Security Blogs