From 2b1316d275b9bf9aedf82f73811c573e99544dc3 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Sun, 10 Apr 2022 17:27:59 +0200 Subject: [PATCH] Symlink bat to /usr/bin/batcat --- bat | 2 +- btrfs.clean.snapshot.sh | 15 +++++++++++++++ debian/interfaces.ks2 | 27 +++++++++++++++++++++++++++ sslsrv | 5 +++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100755 btrfs.clean.snapshot.sh create mode 100644 debian/interfaces.ks2 create mode 100755 sslsrv diff --git a/bat b/bat index d2682cc..eb4a6ea 120000 --- a/bat +++ b/bat @@ -1 +1 @@ -/bin/batcat \ No newline at end of file +/usr/bin/batcat \ No newline at end of file diff --git a/btrfs.clean.snapshot.sh b/btrfs.clean.snapshot.sh new file mode 100755 index 0000000..27dcbee --- /dev/null +++ b/btrfs.clean.snapshot.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +file="${1}" + +while read a +do snapshot=$(echo ${a%%/$file}) + printf '%s' "btrfs property set ${snapshot} ro false" + printf '%s' "rm --force -- ${a}" + printf '%s' "btrfs property set ${snapshot} ro true" + #btrfs property set "${snapshot}" ro false + #rm --force -- "${a}" + #btrfs property set "${snapshot}" ro true +done < <(find /.snapshots/ -name "${file}") + +exit 0 diff --git a/debian/interfaces.ks2 b/debian/interfaces.ks2 new file mode 100644 index 0000000..1740eb0 --- /dev/null +++ b/debian/interfaces.ks2 @@ -0,0 +1,27 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback +# This file is managed remotely, all changes will be lost + +allow-hotplug eno1 +iface eno1 inet static + address 37.187.1.62 + netmask 255.255.255.0 + gateway 37.187.1.254 + dns-nameservers 80.67.169.12 80.67.169.40 + #post-up echo 1 > /proc/sys/net/ipv4/ip_forward + #post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp + +# This file is managed remotely, all changes will be lost + +#allow-boot vmbr0 +#iface vmbr0 inet manual + #up ip addr add 10.0.0.254/24 dev vmbr0 label vmbr0:0 + #down ip addr del 10.0.0.254/24 dev vmbr0 label vmbr0:0 + #bridge_fd 0 + #bridge_maxwait 0 + #bridge_ports none + #bridge_stp off diff --git a/sslsrv b/sslsrv new file mode 100755 index 0000000..51e8a3c --- /dev/null +++ b/sslsrv @@ -0,0 +1,5 @@ +#!/bin/bash + + +cd /home/jegardai/wd/vpn/sslsrv + sudo ./firefox --new-instance --profile /home/jegardai/wd/vpn/sslsrv/profile/