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 / 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 / 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 / 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