Skip to content

Instantly share code, notes, and snippets.

bviktor

Block or report user

Report or block bviktor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pf.conf
#MACROS
nicext = "xl0"
nicint = "rl0"
tcpext = "{ 2121 2222 8080 }"
protovia = "{ tcp udp icmp }"
trusted = "{ 192.168.0.3 192.168.0.11, 192.168.0.12, 192.168.0.13 192.168.0.21 }"
shit = "{ 195.56.111.221 }"
#OPTIONS
set block-policy return
@bviktor
bviktor / glavatar.sh
Last active Jun 28, 2018
GitLab Avatar Updater
View glavatar.sh
#!/bin/sh
set -Eeu
########################################################################
############################ START SETTINGS ############################
########################################################################
# your GitLab instance' URL
export GITLAB_URL='https://gitlab.foobar.com'
@bviktor
bviktor / le-renew.sh
Last active Jan 25, 2016
Let's Encrypt renew script
View le-renew.sh
#!/bin/sh
# make sure the script can find the domain list even when invoked from a different dir
DIR=$(dirname $0)
# store your domain renewal commands here, one line per certificate, e.g.:
# -d foo.bar -d www.foo.bar
# -d foo2.foo.bar
DOMLIST="${DIR}/le-domains.txt"
View gist:c351e89814b394a86a6f
export OLD_REDMINE=2.6.2
export NEW_REDMINE=3.0.1
systemctl stop nginx.service
wget http://www.redmine.org/releases/redmine-${NEW_REDMINE}.tar.gz
tar xf redmine-${NEW_REDMINE}.tar.gz -C /opt
cd /opt
rm redmine
ln -s redmine-${NEW_REDMINE} redmine
\cp -f redmine-${OLD_REDMINE}/config/configuration.yml redmine/config
\cp -f redmine-${OLD_REDMINE}/config/database.yml redmine/config
You can’t perform that action at this time.