git sync only

This commit is contained in:
Nemo 2019-05-07 13:15:07 +05:30
parent fd51f95758
commit c9aa68eb55
2 changed files with 3 additions and 11 deletions

View File

@ -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

View File

@ -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