Skip to content

Instantly share code, notes, and snippets.

View teraflik's full-sized avatar
🎯
Focusing

Raghav Khandelwal teraflik

🎯
Focusing
View GitHub Profile
@teraflik
teraflik / vpn_share.sh
Created March 10, 2023 17:11
Enable VPN sharing over wifi on MacOS
#!/bin/sh
# https://roelant.net/2015/share-your-vpn-mac-el-capitan.html
# https://docs.freebsd.org/en/books/handbook/firewalls/#firewalls-pf
# clear all rules and reload pf conf
sudo pfctl -F all -f /etc/pf.conf
if [ "$1" = "off" ]
then
@teraflik
teraflik / commands.md
Created November 21, 2022 06:28
Some useful commands and queries

Socat to listen to UDP Traffic:

socat - UDP4-LISTEN:8125,reuseaddr,fork

Share an encrypted message:

echo -n "secret" | openssl enc -aes-256-cbc -a -k "password"
echo "encryptedOutput" | openssl enc -d -aes-256-cbc -a
@teraflik
teraflik / autoexec.cfg
Last active January 25, 2021 16:11
Counter-Strike: Global Offensive config file
unbindallmousekeyboard
bind "ESCAPE" "cancelselect"
bind "`" "toggleconsole"
//bind "TAB" "+showscores"
//bind "SPACE" "+jump"
bind "," "buyammo1"
bind "." "buyammo2"
bind "0" "slot10"