Skip to content

Instantly share code, notes, and snippets.


Henry chocolatkey

View GitHub Profile
chocolatkey / README.MD
Last active Jan 23, 2021
Cloudflare S2 Browser Isolation Trace

This is just some quick data from the CF browser isolation beta. If you inspect the isolated webpage, there's a debug-sidebar you can add a show class to to make visible. From there, you can run a trace and get some info about the machines these VMs are on. These are the stubs of the metadata elements of two random traces I made.

P.S. no exploits found yet ;)

chocolatkey /
Last active Jan 10, 2021
Stimulus.JS 2.0.0 target upgrade from 1.x

Easy to do in VS Code global search

Search: data-target="([\w\d]+)\.([\w\d]+)"

Replace: data-$1-target="$2"

chocolatkey / loopbackCookie.go
Created Dec 16, 2020
Express signed cookie parser (for loopback) in go
View loopbackCookie.go
import (
chocolatkey / startup-pageant.cmd
Last active Apr 24, 2020
Windows startup script to run Putty's pageant + the Git for Windows ssh-pageant for forwarding
View startup-pageant.cmd
@echo off
echo Starting PuTTY Pageant...
start "" "C:\Program Files\PuTTY\pageant.exe" %USERPROFILE%\.ssh\id.ppk
echo Starting Git4Win ssh-pageant...
"C:\Program Files\Git\git-cmd.exe" --no-needs-console --hide ""C:\Program Files\Git\cmd\start-ssh-pageant.cmd" >nul & exit"
chocolatkey /
Last active Nov 24, 2019
newbie podman deploy script
# chocolatkey 2019-10-05 - 2019-11-23
set +e
if [ "$1" == "" ]; then
chocolatkey / filter.txt
Created Sep 30, 2019
Bypass Komiflo region detection (add to ublock origin filter)
View filter.txt
chocolatkey /
Last active Aug 3, 2019
Live Transcribe Android Decompilation

strings.xml, regex: <string name="description_([\w\d_]+)">(.*)</string> --> | $1 | $2 |

Name Description
alarm_clock Sounds made by a clock that is designed to make an audible signal at a specific time.
applause The sound of a group of people clapping their hands to express approval.
baby_cry_or_infant_cry A young child crying or bawling.
bagpipes A wind instrument using enclosed reeds fed from a reservoir of air in the form of a bag.
banjo A string instrument with a thin membrane stretched over a frame or cavity as a resonator, called the head.
bird Communication calls from birds including bird calls and songs.
chocolatkey /
Created Apr 2, 2019
PNG Image optimizer to run as a cronjob using oxipng
# -*- coding: utf-8 -*-
# Cron PNG Image optimizer
# chocolatkey (Henry) 2019-03-12
version = "1.1.0"
BASE = "/your/path"
LOCK_FILE = BASE + "/optim.lock"
import os
import sys
chocolatkey / ok.json
Created Jan 30, 2019
just a nice response
View ok.json