Skip to content

Instantly share code, notes, and snippets.

@amlweems
amlweems / crash.svg
Last active December 30, 2015 02:08
Crash firefox-25.0-1 using a simple SVG.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
* Qualys test program to check for presence of GHOST vulnerability
* For more info: http://www.openwall.com/lists/oss-security/2015/01/27/9
*/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@amlweems
amlweems / keybase.md
Created April 15, 2015 20:48
keybase verify

Keybase proof

I hereby claim:

  • I am amlweems on github.
  • I am amlweems (https://keybase.io/amlweems) on keybase.
  • I have a public key whose fingerprint is 258A 7EA5 15F6 17F2 E921 56CC 2201 8E21 B56C D331

To claim this, I am signing this object:

@amlweems
amlweems / speeder.py
Created March 14, 2016 02:49
asciinema at lightning speeds
#!/usr/bin/env python3
""" speeder.py
Speed up your asciinema casts by an arbitrary factor.
Assumes your recording is stored at ./new and outputs a new recording at ./newer.
"""
import json
import sys
if len(sys.argv) != 2:
require 'formula'
class Ncurses < Formula
homepage 'http://www.gnu.org/s/ncurses/'
url 'http://ftpmirror.gnu.org/ncurses/ncurses-5.9.tar.gz'
mirror 'http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz'
sha256 '9046298fb440324c9d4135ecea7879ffed8546dd1b58e59430ea07a4633f563b'
def options
[['--universal', 'Build for both 32 & 64 bit Intel.']]
@amlweems
amlweems / sshconv.go
Created March 15, 2017 20:06
convert old ssh-rsa encoded private key to PEM
// Implements a converter for old ssh-rsa encoded private key files.
// These files are formatted as <length><data> and should contain six fields.
// An example header is as follows:
// 00000000: 0000 0007 7373 682d 7273 6100 0000 0301 ....ssh-rsa.....
// 00000010: 0001 0000 0103 0080 .... .... .... .... ................
// The full file should contain the following fields:
// ssh-rsa
// public exponent
// modulus
// unknown (likely precomputed value)
@amlweems
amlweems / bg3.ct
Created August 6, 2023 20:58
Baldur's Gate 3: Multiplayer Party Size (v4.1.1.3624901)
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="45">
<CheatEntries>
<CheatEntry>
<ID>348</ID>
<Description>"Mod Party Size"</Description>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
// Number of Slots in multiplayer Lobby