Tue 11 October 2016
Work in progress, place holder, these are the commands required to run
the python code that I wrote
opkg install python3-light
opkg install python3-email
opkg install python3-openssl
opkg install python3-codecs
opkg install ca-certificates
Continue reading »
Thu 08 October 2015
Tsinghua university uses ISATAP to provide IPv6 connectivity to students.
In Linux you can use the isatapd program to create an ISATAP tunnel based on an IPv4 device.
You can use the isatapd command as follows to establish an ISATAPD tunnel:
isatapd --router isatap.tsinghua.edu.cn
After connecting check …
Continue reading »
Fri 19 June 2015
The dillemma: You're accessing your server via SSH through interface eth1.102 with the ip 10.20.0.2/24 and gateway 10.20.0.1.
Now you want to add eth1 to a linux bridge so you can hookin VMs on a vlan trunk.
Solution: Create a script which …
Continue reading »
Tue 08 July 2014
In order to access other containers from a container it's needed
to get the private IP address of the other containers. The following
command is able to get the private ip address of the container.
$ docker inspect --format="{{.NetworkSettings.IPAddress}}" $CONTAINER_ID_OR_NAME
172.17.0.15
Continue reading »
Mon 07 July 2014
This post will describe how to expose multiple docker containers
running websites on port 80 using HAproxy as a reverse proxy.
This makes it possible to run multiple websites on different domains
on a single public ip of the host.
The basic setup is to create 1 container for haproxy …
Continue reading »
Sat 10 May 2014
A server behind a firewall was unaccesible from my home,
but another server which is on the same local network had
public SSH access from my home. So we can create an SSH tunnel
via this public server to the server behind a firewall.
For example the public ssh server …
Continue reading »
Sat 11 May 2013
Tired of all those join part messages?
/ignore \* joins
/ignore \* parts
/ignore \* quits
/save
Read more about ignore /help ignore
Taken from Archwiki:
https://wiki.archlinux.org/index.php/Irssi
Continue reading »
Thu 02 May 2013
The following command first gets the changed and added files of a git
commit and then creates a tar archive of those changed files.
git show {{COMMIT_ID}} --name-status | grep -Ew '^M|A' | awk '{ print $2 }' | xargs tar czf usb-passthrough.tar.gz
Continue reading »
Wed 14 November 2012
I'm switching to a new laptop, but don't want to have to install
Archlinux again. So instead of re-installing I will try to copy all
files and hope the system will work. In this blogpost I will describe
the steps and issues I encountered while doing so.
Status: Succeeded!!!!
Summary …
Continue reading »
Tue 01 November 2011
Just tried to install scrapy with pip / easy_install, but when it comes
to installing lxml it will give the following error:
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
-Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c
src/lxml/lxml.etree.c -o
build/temp.linux-x86_64-2.7/src/lxml/lxml …
Continue reading »