Skip to content

Instantly share code, notes, and snippets.

@lafiosca
lafiosca / Portfile
Last active May 14, 2025 00:51
Installing OpenCBM and nibtools for MacOS Catalina (10.15)
PortSystem 1.0
name nibtools
version 0.5.0
categories emulators
license GPL mBSD
description nibtools disk transfer tools
long_description NIBTOOLS is a disk transfer program designed for copying original disks \
and converting into the G64 and D64 disk image formats. These disk images \
@satmandu
satmandu / make_current_arm64_rpi_kernel_debs.sh
Last active September 25, 2024 03:44
Make arm64 deb packages for the offical Raspberry Pi Foundation arm64 kernels, tested with ubuntu 23.04
#!/bin/bash -x
# make_arm64_rpi_kernel_debs.sh
# Builds arm64 debian packages from the CURRENT rpi firmware repository kernel which is installed by:
# sudo rpi-update
# This runs on an arm64 host with arm64 compilation tools...
# or with some sort of cross-compilation setup.
# Debs are put in $workdir/build
#
# This will NOT work in Raspbian unless you have an arm64 compilation
# environment setup. Appears to work on
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 22, 2025 19:25
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 !

@teacupx
teacupx / widevine-flash_arm64.sh
Created December 30, 2018 19:30 — forked from ruario/1-README.md
Fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive
#!/bin/sh -eu
# Make sure we have wget or curl
available () {
command -v "$1" >/dev/null 2>&1
}
if available wget; then
DL="wget -O-"
DL_SL="wget -qO-"
elif available curl; then
@mikroskeem
mikroskeem / rc.conf.local
Last active October 30, 2020 16:10
wireguard-go userspace rc.d script for OpenBSD
# /etc/rc.conf.local
# set flag to NO -> service won't be started
# set flag to x -> makes wg-quick use /etc/wireguard/x.conf
wg_quick_flags=wg-config
# Assumes you symlinked /etc/rc.d/wg_quick to /etc/rc.d/wg_quick_foo
wg_quick_foo_flags=wg-foo

Trying to deploy WPA3 on my home network

Introduction

Recently, news broke about a new possible offline attack on WPA2 using PMKID. To summarize the attack, WPA2 protected APs can end up broadcasting PMKID values which can then be used to offline-brute-force the password.

These PMKID values are computed this way:

PMKID = HMAC-SHA1-128(PMK, "PMK Name" | MAC_AP | MAC_STA)
@bryc
bryc / YamahaFM.md
Last active June 12, 2025 10:51
Collecting info on Yamaha FM soundchips
@Gadgetoid
Gadgetoid / README.md
Last active July 19, 2025 18:46
Raspberry Pi Zero / Windows 10 automatic RNDIS driver install for composite gadgets

Preface

I owe my very rapid learning journey in the world of ConfigFs to several key sources which aren't necessarily relevant to this result, but I feel deserve a mention anyway.

@QROkes
QROkes / nginx.conf
Last active July 12, 2024 04:41
Nginx (Reverse Proxy) Configuration file for Traccar GPS
server {
listen 80;
listen [::]:80;
server_name domain.com;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@Changaco
Changaco / btrfs-undelete
Last active May 27, 2025 03:19
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <[email protected]>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo