This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # echo 'tar backup to gdrive starts in 15 secs' | |
| # notify-send 'tar backup starts in 15 secs' | |
| # sleep 15 | |
| #gnome-screensaver-command --lock | |
| lastdate=$(date +'%d-%m-%Y_%H-%M-%S') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| now = datetime.now() # current date and time | |
| year = now.strftime("%Y") | |
| print("year:", year) | |
| month = now.strftime("%m") | |
| print("month:", month) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Service for updating cloudfare A type record with current ip | |
| [Service] | |
| User=rod | |
| WorkingDirectory=/home/rod | |
| ExecStart=/bin/bash /home/rod/scripts/cloudfareddns.sh | |
| [Install] | |
| WantedBy=timers.target |