Skip to content

Instantly share code, notes, and snippets.

idefux / network_drive.conf
Created July 10, 2016 20:52
Volumio 2: Synology DiskStation
# Following settings have worked for me
IP address:
Path: /volume1/music (or whatever folder the music is in)
File Share Type: nfs
user/pass must be valid Synology Diskstation credentials
Make sure that given user has access rights (atleast read-only) on the folder
# Crucial part is the share name
# must start with a slash and e.g. volume1
idefux / nxlog.conf
Created June 25, 2015 08:37
Forward Ultra VNC user auth log with nxlog
# This is not a full nxlog.conf
# This is just the code to process the Ultra VNC log file
<Input in_file_UVNC_Log>
Module im_file
File 'C:\Program Files\uvnc bvba\UltraVNC\mslogon.log'
SavePos TRUE
ReadFromLast TRUE
PollInterval 60
# Drop empty messages
idefux / nxlog.conf
Created June 25, 2015 07:18
Forward WinCC user auth logs with nxlog
# This is not a full nxlog.conf file!
# Paste this to your nxlog.conf
# Will regularly read the WinCC Log and extract user/auth info
<Extension csvWinCCLog>
Module xm_csv
Fields $id, $date, $time, $command, $x2, $user, $host, $x3, $x4, $x5, $x6, $x7, $x8, $x9, $x10, $x11
FieldTypes integer, string, string, integer, integer, string, string, string, string, string, string, string, string, string, string, string
Delimiter ,
idefux / jira.txt
Last active November 4, 2022 07:04
JIRA on a raspberry pi 2
JIRA on a raspberry pi 2
Since the raspberry pi 2 comes with 1 GB RAM and a 900 MHz quad-core I wanted to give it a try
if it is capable of running JIRA
Download free trial linux .tar.gz archive from
Untar with tar -zxvf <archive>
Check java version and set JAVA_HOME
Make sure that you have a java version installed that is supported by JIRA
idefux / rsyslog.txt
Last active August 29, 2015 14:23
rsyslog to mysql on debian 8, table SystemEvents
# You need to create tables "SystemEvents" and "SystemEventsProperties"
mysql -u root -p < /usr/share/dbconfig-common/data/rsyslog-mysql/install/mysql
# Likely you will get an error that there is no DB specified.
# One way to solve this editing the file /usr/share/dbconfig-common/data/rsyslog-mysql/install/mysql
nano /usr/share/dbconfig-common/data/rsyslog-mysql/install/mysql
# and adding the following line upfront:
CONNECT your-rsyslog-db;
idefux / nxlog.conf
Created June 24, 2015 09:26
nxlog TeamViewer Log Incoming Connections
<Extension _syslog>
Module xm_syslog
<Input in_file_TeamViewerLog_incoming>
Module im_file
File 'C:\Program Files\TeamViewer\Connections_incoming.txt'
SavePos TRUE
ReadFromLast TRUE
PollInterval 60
idefux / syslog.txt
Last active February 26, 2019 10:09
dd-wrt local AND remote syslog
dd-wrt supports remote and local syslog at the same time
However this is not supported by the GUI
You need to invoke syslogd as follows:
~#: syslogd -L -R <host-ip>[:<port>]
You can further adopt this e.g.
~#: syslogd -L -b 5 -s 2000 -R
You can run this script at startup to kill the system started syslog (either syslogd -L or syslogd -R ....)
and start it with your arguments:
idefux /
Created June 23, 2015 06:27
dd-wrt check if OpenVPN server is alive
# This script checks if OpenVPN Server is alive.
# If not openpvn server will be started.
# Put this script in jffs/scripts/
# Call it via cron job (GUI -> Administration -> Management): */1 * * * * root /jffs/scripts/
# This will trigger the script in 1 minute intervall.
OPENVPN_ALIVE=`ps | grep -v grep | grep -c "openvpn --daemon"`
if [ "$OPENVPN_ALIVE" -eq 0 ]; then
#echo "openvpn is down"
idefux /
Created June 21, 2015 20:36
directions for learning racket or functional programming in general
idefux / racket1.rkt
Created June 21, 2015 20:32
Racket (preparation for funcprog exams)
#lang racket
; collection of various functions as test preparation
; mycons
(define (mycons a b)
(λ (m)
(cond [(= m 0) a]
[(= m 1) b]
[else (error 'mycons "expected argument 0 or 1, given: ~a" m)])))