Skip to content

Instantly share code, notes, and snippets.

@abn
abn / jigsaw-outline-uninstall.sh
Last active March 7, 2024 10:25
Jigsaw Outline: Uninstall (purge) the persistent thing
#!/usr/bin/env bash
# this is not extensively tested, worked for personal use case.
# script is intentionally aggressive, use at your own peril :)
# reference: https://github.com/Jigsaw-Code/outline-client/issues/648
function uninstall-outline() {
set -x
sudo systemctl disable --now outline_proxy_controller
@gaomeng1900
gaomeng1900 / llvm-wasm.sh
Last active November 17, 2022 16:35
使用LLVM编译wasm
# 编译使用LLVM的实验性WASM编译器
# 编译支持
# [Cloudflare Workers WebAssembly Demo](http://www.joyk.com/dig/detail/1538467210844002)
# [lldでwasmをリンクするまで](https://qiita.com/chikoski/items/41853dfb2afdec52e7d1)
# [Using LLVM from Rust to generate WebAssembly binaries](https://medium.com/@jayphelps/using-llvm-from-rust-to-generate-webassembly-93e8c193fdb4)
# [Notes on working with C and WebAssembly](https://aransentin.github.io/cwasm/)
# llvm编译文档
# https://clang.llvm.org/get_started.html
@alphazo
alphazo / gist:3303282
Created August 9, 2012 11:03
Clone MiFare cards using chinesse UUID writable cards

libnfc supports UUID writable cards and even has some dedicated tools for them.

However it doesn't work with some of the cards found on eBay that are even simpler to use. Sector 0 is unlocked and can be written without any additional commands. libnfc requires a small patch to get it working.

Following has been tested under ArchLinux with modified libnfc 1.5.1, mfoc 0.10.2 and a SCL3711 dongle.

Patch & recompile libnfc

The patch is fairly simple, open libnfc-1.5.1/utils/nfc-mfclassic.c and comment 2 lines (it was lines 384 and 385 for me):

// Try to write the trailer