Skip to content

Instantly share code, notes, and snippets.

View vchrizz's full-sized avatar

Christoph vchrizz

View GitHub Profile
@vchrizz
vchrizz / psqlfix.txt
Last active April 16, 2026 21:51 — forked from jyr/psqlfix.txt
Change postgres default template0 to UTF8 encoding
http://blog.desgrange.net/2012/06/05/caldav-carddav-debian-davical-ios-ical.html
mike@rbci:~$ psql -U postgres
psql (9.0.3)
Type "help" for help.
update /etc/postgresql/17/main/postgresql.conf
# These settings are initialized by initdb, but they can be changed.
#lc_messages = 'en_GB.ISO-8859-15' # locale for system error message
lc_messages = 'en_GB.utf8' # locale for system error message
@vchrizz
vchrizz / README-setup-tunnel-as-systemd-service.md
Created November 18, 2020 01:32 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@vchrizz
vchrizz / vagrant.log
Created October 30, 2018 10:12
vagrant debug log
vagrant : INFO global: Vagrant version: 2.2.0
In Zeile:1 Zeichen:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.0:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
@vchrizz
vchrizz / gist:47a29f84cc400661f7b03656c918c673
Created October 24, 2018 09:24
jenkins-debian-glue: build olsrd mips arch: pbuilder-satisfydepends: line 29: 27995 Segmentation fault
Started by upstream project "olsrd-binaries" build number 1
originally caused by:
Started by upstream project "olsrd-source" build number 1
originally caused by:
Started from command line by jenkins-debian-glue
Building in workspace /var/lib/jenkins/jobs/olsrd-binaries/workspace/architecture/mips
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
Copied 5 artifacts from "olsrd-source" build number 1
[mips] $ /bin/sh -xe /tmp/jenkins8659251117344329116.sh
@vchrizz
vchrizz / vagrant-networking.log
Created October 24, 2018 00:18
Vagrant debug log
vagrant : INFO global: Vagrant version: 2.2.0
In Zeile:1 Zeichen:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.0:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
@vchrizz
vchrizz / vagrant2.log
Created October 22, 2018 00:00
vagrant up - debug output
vagrant : INFO global: Vagrant version: 2.2.0
In Zeile:1 Zeichen:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.0:String) [], Remo
teException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
@vchrizz
vchrizz / gist:7cde387c0c1ebdfc5efd68eef2879e6e
Created October 21, 2018 17:36
jenkins build log with pbuilder plugin and architecture mipsel
Building in workspace /var/lib/jenkins/workspace/olsrd-mipsel
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
Cloning the remote Git repository
Cloning repository https://salsa.debian.org/debian/olsrd.git
> git init /var/lib/jenkins/workspace/olsrd-mipsel/source # timeout=10
Fetching upstream changes from https://salsa.debian.org/debian/olsrd.git
> git --version # timeout=10
> git fetch --tags --progress https://salsa.debian.org/debian/olsrd.git +refs/heads/*:refs/remotes/origin/*
@vchrizz
vchrizz / vagrant.log
Created October 19, 2018 20:31
debug output of vagrant up with vlan_id set in hyperv
vagrant : INFO global: Vagrant version: 2.2.0
In Zeile:1 Zeichen:1
+ vagrant up --debug 2>&1 | Tee-Object -FilePath ".\vagrant.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( INFO global: Vagrant version: 2.2.0:String) [], Remo
teException
+ FullyQualifiedErrorId : NativeCommandError
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1