summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-09-10 12:02:58 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-09-10 12:02:58 +0200
commit09d7c955d907bf09c5a63c85d2f0c6d7e47ad6ea (patch)
tree84c13347b19e52c424752395b5fa1e77f98d175d
parenta65c4c428c03fbaa5ae1a4cf2848b39894cfdfd6 (diff)
downloadbin-09d7c955d907bf09c5a63c85d2f0c6d7e47ad6ea.tar.gz
bin-09d7c955d907bf09c5a63c85d2f0c6d7e47ad6ea.tar.xz
misc
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xjabberwall.pl2
-rwxr-xr-xnewpgdb7
-rwxr-xr-xupdate-mirrorlist-pkg16
-rwxr-xr-xvpn-getpass3
-rwxr-xr-xzfs-backup.sh6
5 files changed, 30 insertions, 4 deletions
diff --git a/jabberwall.pl b/jabberwall.pl
index 23267ef..2e6552c 100755
--- a/jabberwall.pl
+++ b/jabberwall.pl
@@ -24,7 +24,7 @@ Config::Simple->import_from("$ENV{HOME}/.jabberwallrc", \%config);
my $clnt = new Net::Jabber::Client;
-my $status = $clnt->Connect(hostname=>$config{server}, port=>$config{port}, tls=>1);
+my $status = $clnt->Connect(hostname=>$config{server}, port=>$config{port}, tls=>1, ssl_ca_path=>"/etc/ssl/certs/ca-certificates.crt");
if (!defined($status)) {
die "Jabber connect error ($!)\n";
diff --git a/newpgdb b/newpgdb
new file mode 100755
index 0000000..adbd3e1
--- /dev/null
+++ b/newpgdb
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cat <<CMD | psql
+create database $2;
+create role $2;
+grant $2 to $1;
+CMD
diff --git a/update-mirrorlist-pkg b/update-mirrorlist-pkg
new file mode 100755
index 0000000..52be575
--- /dev/null
+++ b/update-mirrorlist-pkg
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+cd ~/arch/extra/pacman-mirrorlist/
+svn up
+cd trunk
+
+upgpkg a
+svn diff mirrorlist | pygmentize
+printf "confirm update (enter)"
+read
+makepkg -fc
+
+corepkg "upstream update"
+dbrel
diff --git a/vpn-getpass b/vpn-getpass
new file mode 100755
index 0000000..de98aed
--- /dev/null
+++ b/vpn-getpass
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec getpw-single tuwien zid
diff --git a/zfs-backup.sh b/zfs-backup.sh
index 733c570..aeb4e38 100755
--- a/zfs-backup.sh
+++ b/zfs-backup.sh
@@ -57,9 +57,9 @@ create_snapshots() {
clean_snapshots() {
local dst_fs=$1
- /root/zfs_snapshot_cleanup.sh "$dst_fs" daily 10
- /root/zfs_snapshot_cleanup.sh "$dst_fs" weekly 4
- /root/zfs_snapshot_cleanup.sh "$dst_fs" monthly 3
+ /root/zfs_snapshot_cleanup.sh "$dst_fs" daily 14
+ /root/zfs_snapshot_cleanup.sh "$dst_fs" weekly 6
+ /root/zfs_snapshot_cleanup.sh "$dst_fs" monthly 4
}
create_and_clean_snapshots() {