Skip to content

Instantly share code, notes, and snippets.

@degaart
degaart / huawei-e3372.txt
Created August 19, 2023 15:30
Huawei e3372 on macOS
1. Install `libusb-compat` and `pkg-config` from brew
2. Compile usb_modeswitch (from https://www.draisberghof.de/usb_modeswitch/)
3. Insert modem
4. ./usb_modeswitch -v 12d1 -p 1f01 -J
5. Check modem detected in network settings
For other huawei devices, replace 1f01 with the device ID.
@degaart
degaart / README.md
Created June 10, 2023 05:16 — forked from tech234a/README.md
Using unmodified third-party Reddit apps with a custom server
@degaart
degaart / ms-autoupdate-stfu.sh
Created May 8, 2022 10:43
Disable office for mac autoupdate
sudo chmod -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft AutoUpdate"
sudo chmod -x "/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/MacOS/Microsoft Update Assistant.app/Contents/MacOS/Microsoft Update Assistant"
@degaart
degaart / zfs_send.sh
Created April 3, 2022 17:43
Send zfs dataset to another server as fast as possible
#!/usr/bin/env bash
set -eou pipefail
SRC_DATASET="${1-}"
DST_HOST="${2-}"
DST_DATASET="${3-}"
MBUFFER_PORT=1024
if [ "$DST_DATASET" = "" ]; then
@degaart
degaart / SMBDIS.ASM
Created April 3, 2019 05:27 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no