From e6584dffccc65fd08237c297feed4de41a24d7f1 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Tue, 31 Jul 2018 11:08:07 -0300 Subject: [PATCH 1/4] Including egnyteToPath --- Egnyte/egnyteToPath.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 Egnyte/egnyteToPath.sh diff --git a/Egnyte/egnyteToPath.sh b/Egnyte/egnyteToPath.sh new file mode 100755 index 0000000..b13ad5a --- /dev/null +++ b/Egnyte/egnyteToPath.sh @@ -0,0 +1,3 @@ +cpboard=$(xsel -b) +cpboard=$(echo "$cpboard" | sed -e 's/\//\\/g' -e 's/https:\/\/oxo.egnyte.com\/app\/index.do#storage\/files\/1\//Z:\//') +echo "$cpboard" | xsel From 4737ae5bc7e0b6a87683915e18cd1fe381ebd607 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Tue, 31 Jul 2018 11:23:12 -0300 Subject: [PATCH 2/4] Adding egnyteToPath script --- Egnyte/egnyteToPath.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Egnyte/egnyteToPath.sh b/Egnyte/egnyteToPath.sh index b13ad5a..acd29e6 100755 --- a/Egnyte/egnyteToPath.sh +++ b/Egnyte/egnyteToPath.sh @@ -1,3 +1,3 @@ cpboard=$(xsel -b) -cpboard=$(echo "$cpboard" | sed -e 's/\//\\/g' -e 's/https:\/\/oxo.egnyte.com\/app\/index.do#storage\/files\/1\//Z:\//') -echo "$cpboard" | xsel +path=$(echo "$cpboard" | sed -e 's/\//\\/g' -e 's/%20/ /g' -e 's/https:\\\\oxo\.egnyte\.com\\app\\index\.do\#storage\\files\\1\\/Z:\\/g') +echo "$path" | xsel From 1c3ddb220189ff1347ca9e6839a96993c126032b Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sat, 27 Oct 2018 21:10:38 -0300 Subject: [PATCH 3/4] Including services before wakeup and after sleep --- Services/after-wakeup.service | 10 ++++++++++ Services/before-sleep.service | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Services/after-wakeup.service create mode 100644 Services/before-sleep.service diff --git a/Services/after-wakeup.service b/Services/after-wakeup.service new file mode 100644 index 0000000..9fdb467 --- /dev/null +++ b/Services/after-wakeup.service @@ -0,0 +1,10 @@ +[Unit] +Description=Bruno Fontes script after wakeup +After=suspend.target + +[Service] +Type=simple +ExecStart=/usr/bin/systemctl restart openvpn-client@privatvpn.service + +[Install] +WantedBy=suspend.target diff --git a/Services/before-sleep.service b/Services/before-sleep.service new file mode 100644 index 0000000..272fee2 --- /dev/null +++ b/Services/before-sleep.service @@ -0,0 +1,11 @@ +[Unit] +Description=Bruno Fontes script before sleep +Before=sleep.target + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +ExecStart=echo "" + +[Install] +WantedBy=sleep.target From 11aa184e801044c1792fc64049af27d5446b247c Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 16 Nov 2018 22:27:16 -0200 Subject: [PATCH 4/4] Including reflector as well as pacman-mirros There is no pacman-mirrors to arch linux, so I am including the reflector command to be used on my arch linux. --- Pacman/updateRepositories.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Pacman/updateRepositories.sh b/Pacman/updateRepositories.sh index 499fcd9..128cf15 100755 --- a/Pacman/updateRepositories.sh +++ b/Pacman/updateRepositories.sh @@ -18,6 +18,7 @@ s "echo '**********'" bold "Pacman-mirrors -c" s "pacman-mirrors -c Brazil" +s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist" #bold "Updating with PACMAN..." s "echo"