Skip to content

Instantly share code, notes, and snippets.

View SymonRod's full-sized avatar
🤯

SymonRod

🤯
  • Italy
View GitHub Profile
@SymonRod
SymonRod / backup_crypted.sh
Last active October 29, 2021 08:00
General Purpose Script
#!/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')
@SymonRod
SymonRod / datetime_now.py
Last active October 25, 2021 08:45
Python Stuff
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)
@SymonRod
SymonRod / cloudfare-ddns.service
Last active October 21, 2021 13:48
CloudfareDDNS Systemd
[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