Skip to content

Instantly share code, notes, and snippets.

View pklaus's full-sized avatar

Philipp Klaus pklaus

  • Frankfurt, Germany
View GitHub Profile
@pklaus
pklaus / 2011-04-04_18-52_output.txt
Created April 4, 2011 16:50
Automated test of the responses of a Koukaam NETIO230[A/B] device
#######################################################################
#
# Automated test of the responses of a Koukaam NETIO230[A/B] device
# 2011-04-04 18-52
#
#######################################################################
100 HELLO 2F7BBC63 - KSHELL V1.2
login admin password
250 OK
version
@pklaus
pklaus / AlwaysMountRootFSWithNoatime_MacOSX.sh
Created April 20, 2011 15:08
SSD Optimizations of Mac OS X 10.6 Operating System
#!/bin/bash
# +----------------------------------------------------------------------+
# | |
# | Mount the root file system / with the option noatime |
# | |
# | By Philipp Klaus <http://blog.philippklaus.de> |
# | Tip found on <http://blogs.nullvision.com/?p=275> |
# | |
# +----------------------------------------------------------------------+
# GLCD2USB example configuration
Variables {
tick 500
tack 100
minute 60000
}
Display GLCD2USB {
Driver 'GLCD2USB'
@pklaus
pklaus / gist:944983
Created April 27, 2011 19:22
Hardware Information for the TP-Link TL-WR1043ND running OpenWrt trunk snapshot
We couldn’t find that file to show.
# This is the log from the GoFlex Home after a failed installation
# (I did reboot after ubit installation but before installing OS on USB disk or HDD)
# See <http://archlinuxarm.org/platforms/armv5/seagate-goflex-home> → Advanced → Netconsole
# create an alias for the interface:
philipp@lion:~$ sudo ifconfig br0:0 10.10.10.5 netmask 255.255.255.0 up
# And listen for incoming data:
philipp@lion:~$ nc.traditional -luks 10.10.10.5 -p 6666
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk # sets app name
import gnomekeyring
def hack():
for keyring in gnomekeyring.list_keyring_names_sync():
for id in gnomekeyring.list_item_ids_sync(keyring):
@pklaus
pklaus / LAMP-installation-plugbox-linux.log
Created April 30, 2011 15:48
Installing Apache, MySQL and PHP on a Linux box running Plugbox Linux
[root@PlugApps ~]# pacman -Sy apache mysql php
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
aur is up to date
resolving dependencies...
looking for inter-conflicts...
Targets (10): apr-1.4.2-1 libtool-2.4-2 unixodbc-2.3.0-1 apr-util-1.3.10-2 apache-2.2.17-1 libmysqlclient-5.5.11-1 mysql-clients-5.5.11-1 mysql-5.5.11-1 libxml2-2.7.8-1
@pklaus
pklaus / create_keys_for_client.sh
Created May 2, 2011 22:06
Automation for client files creation on OpenVPN setup
#!/bin/bash
# <http://blog.philippklaus.de/2010/09/openvpn/>
set -x
#SERVERNAME=$(hostname)
SERVERNAME=$(ifconfig | grep -A 5 eth0 | grep -w 'inet addr' | tr '\t' ' ' | cut -d ':' -f 2 | cut -d ' ' -f 1)
read -e -p "Please enter the server you want your clients to connect to [default: $SERVERNAME]: " input
SERVERNAME="${input:-$SERVERNAME}"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## OpenVPN Status File Parser by Greg Armer
## <http://code.geek.sh/2009/07/simple-openvpn-server-statistics/>
STATUS = "/etc/openvpn/openvpn.status"
status_file = open(STATUS, 'r')
stats = status_file.readlines()
@pklaus
pklaus / tunnelbroker-net.sh
Last active January 24, 2026 18:05
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <philipp.l.klaus@web.de>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x