Skip to content

Instantly share code, notes, and snippets.

@downerj
downerj / Level File Layout.txt
Last active July 18, 2026 06:42
Extract the 100 included levels from Jetpack by Adept Software
Metadata
Filename length (stem): 8 characters
Filename encoding: JetSCII
File extension: JET
File length: 506 bytes (0x0000-0x01f9)
File encoding: Binary
Block
Range: 0x0000-0x019f
Length: 416 bytes (16 columns x 26 rows)
@davidedmundson
davidedmundson / PlasmaNested.sh
Last active July 8, 2026 08:59
Run plasma from within gamescope
#!/bin/sh
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper
## whilst being launched by plasma-session
mkdir $XDG_RUNTIME_DIR/nested_plasma -p
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper
#!/bin/sh
@jjjakey
jjjakey / claim_all_the_things-chromefix.js
Last active February 27, 2026 14:33 — forked from lats/claim_all_the_things.js
Claims all of the items within the "Bundle for Racial Justice and Equality" on Itch.io
// ==UserScript==
// @name Activate all Itch.io Bundle downloads
// @version 1
// @include https://itch.io/bundle/download/*
// @include https://*.itch.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
$(document).ready(function() {
@lats
lats / claim_all_the_things.js
Last active June 13, 2026 00:45
Tampermonkey script to claim all of the items within a Bundle on Itch.io
// ==UserScript==
// @name Activate all Itch.io Bundle downloads
// @version 1
// @include https://itch.io/bundle/download/*
// @include https://*.itch.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
$(document).ready(function() {
@peterhellberg
peterhellberg / jetpack-level-parser.go
Last active July 14, 2026 08:34
Level parser for Jetpack levels
package main
import (
"encoding/binary"
"flag"
"image"
"strings"
"github.com/peterhellberg/gfx"
)
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 18, 2026 12:43
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@jleclanche
jleclanche / freeotp_backup.md
Last active March 4, 2026 20:45
A guide to back up and recover 2FA tokens from FreeOTP (Android)

Backing up and recovering 2FA tokens from FreeOTP

NOTE: THIS MAY NOT WORK ANYMORE - SEE COMMENTS

Backing up FreeOTP

Using adb, create a backup of the app using the following command:

adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
@sinewalker
sinewalker / fix-id3s.py
Created April 26, 2017 09:14
use eyed3 to set ID3 tags on MP3 files
# I used this code within an IPython session to clean up all the missing ID3 tags from my MP3 collection.
# They had gone missing years ago when I down-sampled them to fit on an old phone, and then lost the originals.
# Fortunately I named the files themselves with the basic details (artist, date, title and so on) so it was possible to
# recover the tags... It sat on my to-do list for *years* but now I finally did it.
# I used the Python library "EyeD3" (get it?): https://pypi.python.org/pypi/eyeD3
# This requires Python 2.7, which has some interesting quirks for Unicode, a bit of a pain since I had named my MP3s
# with utf8 characters. What I've come up with *mostly* works. When it doesn't I had to resort to manually editing (using
# Clementine).