Skip to content

Instantly share code, notes, and snippets.

@cfrank
cfrank / 592-loader-file-sha1.java
Last active January 18, 2022 07:23
SHA1 hash of all files requested by the 592 revision of the RS loader
import java.math.BigInteger;
/*
unpacker fd98bd647e9ad299f82e548d12ee29ee01768759
runescapePack200 ec95e23db0322a6e8741ba3a5ff3a25744f1a20e
runescapeJS5 7ad533cd18eb9bd9f5a3ac43573ceee1227bbd7
jaggl_0 83206de67f09cba8ad9fe4fe746df7dca84ba504
jaggl_1 fc13e94a9ea0b1e5f6444b790d8855fe6873bdc2
jaggl_2 93836bb56b47536c17c935959bce0c3de2f86091
jaggl_3 22aea028d0efd4d45126ca0e4255ed3853f5002f
#include <iostream>
class CopyMe {
public:
CopyMe(std::string name)
: m_name(name)
{}
CopyMe(const CopyMe& other)
@cfrank
cfrank / atom-ids.txt
Created May 18, 2020 00:20
XCB EWMH Atom Ids
state->ewmh->_NET_SUPPORTED = 245
state->ewmh->_NET_CLIENT_LIST = 246
state->ewmh->_NET_CLIENT_LIST_STACKING = 247
state->ewmh->_NET_NUMBER_OF_DESKTOPS = 248
state->ewmh->_NET_DESKTOP_GEOMETRY = 249
state->ewmh->_NET_DESKTOP_VIEWPORT = 250
state->ewmh->_NET_CURRENT_DESKTOP = 251
state->ewmh->_NET_DESKTOP_NAMES = 252
state->ewmh->_NET_ACTIVE_WINDOW = 253
state->ewmh->_NET_WORKAREA = 254
@cfrank
cfrank / .bashrc
Created December 6, 2018 12:53
Initialize ssh-agent
# Functions
function init_ssh_keys {
echo "Initializing ssh-agent..."
eval $(ssh-agent -s)
for filename in ~/.ssh/id_rsa*; do
# Only want private keys
[[ $filename == *.pub ]] && continue
@cfrank
cfrank / webpack.config.js
Last active July 23, 2018 13:47
Webpack initial version
const config = {
context: path.resolve(__dirname, 'src'),
entry: {
app: './index.jsx',
},
resolve: {
modules: [
path.resolve(__dirname, 'src'),