mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
delete ptpb.pw since that it's down
This commit is contained in:
parent
09bc0e9edb
commit
e0067697af
2 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue