- SICP
- a wiki with solutions to the SICP exercises
- Racket Reference
- Racket Guide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Following settings have worked for me | |
IP address: xxx.xxx.xxx.xxx | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 , | |
</Extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 https://www.atlassian.com/software/jira/download?b=j | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Extension _syslog> | |
Module xm_syslog | |
</Extension> | |
<Input in_file_TeamViewerLog_incoming> | |
Module im_file | |
File 'C:\Program Files\TeamViewer\Connections_incoming.txt' | |
SavePos TRUE | |
ReadFromLast TRUE | |
PollInterval 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 xxx.xxx.xxx.xxx:xxx | |
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This script checks if OpenVPN Server is alive. | |
# If not openpvn server will be started. | |
# Put this script in jffs/scripts/check_ovpn.sh. | |
# Call it via cron job (GUI -> Administration -> Management): */1 * * * * root /jffs/scripts/check_ovpn.sh | |
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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)]))) |
NewerOlder