commit 76295770f2374490321b4a4433e29cc54b7de313 Author: Alice Gaudon Date: Sat Jan 25 20:04:14 2020 +0100 Initial commit diff --git a/flameshot_upload.sh b/flameshot_upload.sh new file mode 100755 index 0000000..232dbc3 --- /dev/null +++ b/flameshot_upload.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +file_name=$(echo ~/Pictures/Screenshots/) +base_name=$(date +%F_%H-%M-%S) +base_name+=".png" + +file_name+=$base_name + +flameshot gui -r > $file_name + +sftp -oPort=4242 gaudonpr@ftp.gaudon.pro << EOT +cd public_html/push.arisu.fr/ +put $file_name +EOT + +url="https://push.arisu.fr/" +url+=$base_name + +echo $url | xclip -selection clipboard + +notify-send "File upload complete" "$url" --icon=flameshot.svg diff --git a/flameshot_upload_latest.sh b/flameshot_upload_latest.sh new file mode 100755 index 0000000..acd96a3 --- /dev/null +++ b/flameshot_upload_latest.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +latest_screenshot=$(ls -t ~/Pictures/Screenshots/ | head -1) + +file_name=$(echo ~/Pictures/Screenshots/) +base_name=$latest_screenshot + +file_name+=$base_name + +sftp -oPort=4242 gaudonpr@ftp.gaudon.pro << EOT +cd public_html/push.arisu.fr/ +put $file_name +EOT + +url="https://push.arisu.fr/" +url+=$base_name + +echo $url | xclip -selection clipboard + +notify-send "File upload complete" "$url" --icon=flameshot.svg diff --git a/list_packages_sorted_by_install_date.sh b/list_packages_sorted_by_install_date.sh new file mode 100644 index 0000000..dcf7a97 --- /dev/null +++ b/list_packages_sorted_by_install_date.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for i in $(pacman -Qq) +do + grep "\[ALPM\] installed $i" /var/log/pacman.log +done | \ + sort -u | \ + sed -e 's/\[ALPM\] installed //' -e 's/(.*$//' diff --git a/security-updates-check.sh b/security-updates-check.sh new file mode 100755 index 0000000..f1b89c5 --- /dev/null +++ b/security-updates-check.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +UPDATES=$(arch-audit --upgradable | sed "{s/\n/
/g}") + +if test "$1" != "true" +then + UPDATES=$(echo -e "$UPDATES" | grep -v "testing repos\!") +fi + +echo -e "$UPDATES" + +if [ ! -z "$UPDATES" ]; then + sudo -u arisu DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -u critical -t 86400000 -i update-high "Security updates are available" "$UPDATES" --app-name="Security Updates Check" +fi