Skip to content

Instantly share code, notes, and snippets.

View gaukas's full-sized avatar
🫖
I’m NOT a teapot

Gaukas Wang gaukas

🫖
I’m NOT a teapot
View GitHub Profile
@gaukas
gaukas / installChaCha20.sh
Created September 11, 2017 12:38 — forked from d0zingcat/installChaCha20.sh
Install ChaCha20 Encryption for Shadowsocks On CentOS
yum install m2crypto gcc -y
wget -N --no-check-certificate https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar zvxf LATEST.tar.gz
cd libsodium-*
./configure
make && make install
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig
@gaukas
gaukas / default.pa
Created January 8, 2021 19:28 — forked from mpalpha/default.pa
Atomic Pi HDMI working audio Pulse Audio Configuration file /etc/pulse/default.pa from https://www.reddit.com/r/Atomic_Pi/wiki/index#wiki_fix_for_hdmi_audio
#!/usr/bin/pulseaudio -nF
#
# check if you are missing pavucontrol. run "which pavucontrol"
# If so, install it and Download a working Atomic Pi HDMI audio configuration file.
# run "sudo apt install -y pavucontrol && sudo curl -o /etc/pulse/default.pa -L https://gist.githubusercontent.com/mpalpha/5e0d87f514bca0f87769864655300c99/raw"
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
@gaukas
gaukas / pip-is-pip3.sh
Last active March 21, 2021 02:56
You know python-is-python3? I loved it and I decided to link pip to pip3 as well.
#!/bin/bash
# Enforce root/sudoer execution
_WHO=$(sudo whoami)
if [ ${_WHO} != "root" ]; then
echo "Please run the script as root/under sudoer."
exit
fi
@gaukas
gaukas / ipconfig.sh
Created May 8, 2021 01:35 — forked from yurrriq/ipconfig.sh
Get Public IP Address in Terminal
#!/bin/bash
# Slow
curl -s ifconfig.me | xargs echo -n
# Faster
curl -s icanhazip.com | xargs echo -n
# API: http://api.ident.me
@gaukas
gaukas / keybase.md
Created May 13, 2022 22:34
keybase.md

Keybase proof

I hereby claim:

  • I am gaukas on github.
  • I am gaukas_ (https://keybase.io/gaukas_) on keybase.
  • I have a public key ASAaEGg3DaWXTnPovYjxLEUMKH54-O1oznFCAv8i9eEh8wo

To claim this, I am signing this object:

@gaukas
gaukas / ual_booking.py
Last active May 30, 2022 18:41
Check United Airlines' Booking
#!/usr/bin/env python3
# Author: Gaukas <i@gauk.as>
# Date: 2022-05-29
# License: MIT
# This script mainly uses 2 API endpoints:
# - GET flight/upgradeListExtended (credits goes to uscardform: https://www.uscardforum.com/t/topic/82554)
# - POST flight/FetchFlights
@gaukas
gaukas / rst_fin_ack_unix.go
Last active December 7, 2023 23:08
Close TCP Connection RST or FIN+ACK at will
//go:build unix
package main
import (
"errors"
"fmt"
"io"
"net"
"os"