Skip to content

Instantly share code, notes, and snippets.

@Aura7988
Aura7988 / vpn-options.md
Created August 22, 2025 12:25 — forked from mrbluecoat/vpn-options.md
Open Source VPN options
  • Amnezia VPN (OpenVPN & WireGuard protocols) - Windows, MacOS, iOS, Android, Linux (no ARM support)
  • boringproxy (in-house developed "NameDrop" protocol) - Windows, MacOS, Linux, FreeBSD, OpenBSD
  • boringtun (WireGuard protocol) - MacOS, Linux (mobile clients not open source)
  • Brook (in-house developed "Brook" protocol as well as WebSocket Secure, SOCKS5, and QUIC protocols) - Windows, MacOS, Linux, OpenWrt (mobile clients not open source)
  • Chisel (SSH protocol) - Windows, MacOS, Linux
  • cjdns (in-house developed "CryptoAuth" protocol) - Windows, MacOS, Linux, FreeBSD, NetBSD
  • Cloak (OpenVPN & Shadowsocks protocols) - Windows, MacOS
@Aura7988
Aura7988 / ANSI-escape-sequences.md
Created October 30, 2024 09:15 — forked from ConnerWill/ANSI-escape-sequences.md
ANSI Escape Sequences cheatsheet

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Aura7988
Aura7988 / self-pipe-trick.c
Created February 7, 2024 06:31 — forked from jelford/self-pipe-trick.c
a short snippet demonstrating djb's self-pipe trick in c
// compiles with: gcc -Wall -Werror -pedantic ./selfpipetrick.c -o selfpipetrick
// You can quit by suspending with Ctrl-Z and then sending a `kill -9`
#include <sys/signalfd.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
@Aura7988
Aura7988 / ptr_inspect.c
Created February 7, 2024 06:07 — forked from willb/ptr_inspect.c
This is some example code showing how to use the ptrace system call under Linux to trace the system calls of a child process.
/*
ptr_inspect.c
Demonstration code; shows how to trace the system calls in a child
process with ptrace. Only works on 64-bit x86 Linux for now, I'm
afraid. (Even worse, it's only tested on Linux 2.6....)
The callname() function looks clunky and machine-generated because it
*is* clunky and machine-generated.
@Aura7988
Aura7988 / grandis.c
Created February 7, 2024 06:04 — forked from zb3/grandis.c
A wrapper program for linux to find out why segfault happend
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <wait.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#include <stdlib.h>
#include <linux/ptrace.h>
@Aura7988
Aura7988 / surfingkeys.js
Last active September 19, 2024 05:37
Surfingkeys settings
const {
aceVimMap,
mapkey,
imap,
iunmap,
imapkey,
getClickableElements,
vmapkey,
map,
unmap,
@Aura7988
Aura7988 / wordle
Created February 2, 2022 05:52 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash
words=($(grep '^\w\w\w\w\w$' /usr/share/dict/words | tr '[a-z]' '[A-Z]'))
actual=${words[$[$RANDOM % ${#words[@]}]]}
end=false
guess_count=0
max_guess=6
if [[ $1 == "unlimit" ]]; then
max_guess=999999
fi
while [[ $end != true ]]; do
guess_count=$(( $guess_count + 1 ))
@Aura7988
Aura7988 / vimModeStateDiagram.svg
Created November 10, 2021 05:11 — forked from darcyparker/vimModeStateDiagram.svg
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/local/bin/bash
action() {
src=~/.bash_history
bak=~/Bash/bh.bak
tmp=~/Bash/tmp.txt
p='^cd( | *$)|^vi( | *$|mdiff )|^z |^fg( | *$)|^man |^md5sum |^git diff |^l(a|l|s)( | *$)'
cp $src $bak && sed -E "/$p/d" $bak | tac | awk '!a[$0]++' | tac > $tmp && mv $tmp $src
}
[commit]
template = ~/.commit-template
[merge]
tool = vimdiff
[mergetool "vimdiff"]
path = nvim
[difftool]
prompt = false
[alias]
d = difftool