This is just an example; disable and stop all active daemons.
sudo systemctl stop dhcpcd
sudo systemctl disable dhcpcd
sudo -i
curl https://gist.githubusercontent.com/qguv/d2c7f948fab00903cb67/raw/8c99ba2f033bf8dde571733c3a41484c0611ef03/wpa_supplicant.conf > /etc/wpa_supplicant/wpa_supplicant.conf
curl https://gist.githubusercontent.com/qguv/d2c7f948fab00903cb67/raw/64b281e6d787709e0a22a231317f50a1f0a25fe3/[email protected] > /etc/systemd/system/[email protected]
exit
# find your wireless interface
iw dev
# replace wlp1s0 with your interface name
sudo systemctl start network-wireless@wlp1s0
# make sure it works
ping -c 3 google.com
# replace wlp1s0 with your interface name
sudo systemctl enable network-wireless@wlp1s0