Skip to content

Instantly share code, notes, and snippets.

Aaron Wisner wizard97

Block or report user

Report or block wizard97

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View internet2.sh
#!/bin/bash
PATH=/home/aaron/bin:/home/aaron/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
WPA_CONF="/etc/wpa_supplicant/wpa_supplicant.conf"
wlan="wlp1s0"
en="enp2s0"
# hash passwd with
# echo -n "passwd" | iconv -t utf16le | openssl md4
@wizard97
wizard97 / internet.sh
Created Aug 15, 2017
A script for sharing an internet connection in Linux, everyday it will use a wpa_supplicant conf
View internet.sh
#!/bin/bash
PATH=/home/aaron/bin:/home/aaron/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
wlan="wlp1s0"
en="enp2s0"
# Array of confs
wpa_confs[0]="/home/aaron/wifi/wpa_aaron.conf"
#wpa_confs[0]='wpa_empty.conf'
nconfs=${#wpa_confs[@]}
You can’t perform that action at this time.