From e0067697af7c9b994e5f16c6a01246758bdc2631 Mon Sep 17 00:00:00 2001 From: Eduard Toloza Date: Sat, 9 Mar 2019 13:04:46 -0500 Subject: [PATCH] delete ptpb.pw since that it's down --- system-bin/rnetworking | 7 ++++++- user-config/bashrc | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/system-bin/rnetworking b/system-bin/rnetworking index a396635..a5c7fcf 100755 --- a/system-bin/rnetworking +++ b/system-bin/rnetworking @@ -6,7 +6,12 @@ # Autor: Eduard Toloza # Define variables -services='Put here the service names that you want to restart if internet connection is not available, the services must be sepparated by spaces. Example: systemd-resolved systemd-networkd openvpn' +services='systemd-networkd wpa_supplicant@wlp3s0 systemd-resolved randomvpn' + +if [ "$1" == "f" ]; then + sudo systemctl restart $services + exit +fi #Check if ping command is available if command -v ping > /dev/null; then diff --git a/user-config/bashrc b/user-config/bashrc index cd06c04..78faff3 100644 --- a/user-config/bashrc +++ b/user-config/bashrc @@ -110,7 +110,7 @@ fi ### OWN ALIAS ### #Pastes -alias pb='curl -F c=@- https://ptpb.pw/?u=1' +alias pb="curl -F 'sprunge=<-' http://sprunge.us" alias ix="curl -F 'f:1=<-' ix.io" #Temperature @@ -180,6 +180,10 @@ alias longfiles="find ./ -printf '%s %p\n'| sort -nr | head -20" # Alias to update ArchLinux alias uparch='sudo pacman -Syu --noconfirm' +# Alias for pkgfile +alias pkgfile='pkgfile -v' +alias upkgfile='sudo pkgfile -u' + # Avoid pip installing packages as root/sudo, execute the following line in your terminal or just delete the # at the begin #install -Dm644 /dev/stdin ~/.config/pip/pip.conf <<< $'[install]\nuser = yes\n'