Thu 27 November 2014
This post will describe the whole process of providing hadoop on demand
through Openstack, Cloudinit and Saltstack. We will use Openstack
to provision servers on demand, cloudconfig to install salt-master and
salt-minion and saltstack to deploy hadoop namenode and datanodes, all fully
automated. This makes us able to deploy a …
Continue reading »
Mon 24 November 2014
In a lab environment in the university I only had access to a list of fragmented
public routable IP addresses in a single subnet. For example I got access to the following ips
50.15.15.10, 55.15.15.12-15, 55.15.15.17. But I am not allowed …
Continue reading »
Fri 29 August 2014
I recommend these links in the following order:
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 »
Sun 08 June 2014
Move the first word of a line to the end of line on Linux using AWK.
We first store the first column(first word) in the variable t. Then
we set the first column to be empty. At last we add a new column
after the last column of the …
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 »
Sun 04 May 2014
I'm currently taking the class Algorithm: Design and Analysis of Stanford via Coursera and
in the class the Karatsuba algorithm got mentioned. I went ahead and implemented it based
on the lecture slides.
The Karatsuba algorithm is a fast multiplication algorithm. It's special because
it was the first multiplication algorithm …
Continue reading »
Thu 15 August 2013
Today I logged in to my laptop at home from work which was already
running a tmux session, so thought yea just attach cool can continue
with what I was looking at at home. I forgot that the keys would be the
same ofcourse, and was unable to use the …
Continue reading »
Sun 09 June 2013
Answer:
echo -n "1" > /sys/bus/pci/devices/0000:02:00.0/remove
Where 0000:02:00.0 is related to your pci device address which can
be obtained from the command lspci
Related story:
Was working on KVM vga passthrough and encountered problems with the
graphics card nvidia Quadro …
Continue reading »