How to update git timestamp
GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"
How to update git timestamp
GIT_COMMITTER_DATE="$(date)" git commit --amend --no-edit --date "$(date)"
$ sudo sed -i 's/ConditionVirtualization=!container/#ConditionVirtualization=!container/' /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
$ systemctl daemon-reload
$ sudo systemctl restart systemd-timesyncd
Source: https://1kko.com/2460635
Run python in bash scripts:
#!/bin/bash
python3 <<EOF
print("test")
EOF
Modify resolv file:
#!/bin/bash
cat << EOF > /etc/resolv.conf
nameserver 8.8.4.4
EOF
Watch largest system files
$ watch -n 5 -d "sudo find / -xdev -type f -size +100M | xargs ls -lah"
Largests files in directory
$ du -h /var/log | sort -rh | head -n 10
Monitor open sockets
watch -d "ss -xls | grep dbus.sock