mirror of https://github.com/captn3m0/Scripts.git
git sync only
This commit is contained in:
parent
fd51f95758
commit
c9aa68eb55
13
housekeeping
13
housekeeping
|
@ -26,17 +26,8 @@ sudo docker system prune -af
|
|||
## KEEP ALL NETWORK RELATED STUFF BELOW THIS
|
||||
echo "Going to try stuff that needs network access now"
|
||||
|
||||
# Push passwords to keybase
|
||||
pass git pushall
|
||||
|
||||
# Sync mobile passwords
|
||||
cd /home/nemo/projects/personal/mobile-passwords
|
||||
git from && ./runme.sh && git pushall
|
||||
|
||||
# Sync mobile passwords
|
||||
pushd /home/nemo/projects/personal/mobile-passwords
|
||||
git from && ./runme.sh && git push origin master
|
||||
popd
|
||||
# Sync git repositories
|
||||
syncrepos
|
||||
|
||||
# Generate a blacklist hosts file
|
||||
if ping -c 1 192.168.1.1 &> /dev/null
|
||||
|
|
|
@ -5,6 +5,7 @@ BATTERY=/sys/class/power_supply/BAT0
|
|||
REM=`grep "POWER_SUPPLY_CHARGE_NOW" $BATTERY/uevent | awk -F= '{ print $2 }'`
|
||||
FULL=`grep "POWER_SUPPLY_CHARGE_FULL_DESIGN" $BATTERY/uevent | awk -F= '{ print $2 }'`
|
||||
PERCENT=`echo $(( $REM * 100 / $FULL ))`
|
||||
# Put the below 2 in your crontab
|
||||
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
||||
XAUTHORITY=/home/nemo/.Xauthority
|
||||
|
||||
|
|
Loading…
Reference in New Issue