PostgreSQL Database Cluster Migration Notes
I had to migrate a pretty big database cluster from one server with PostgreSQL 8.4 to a new server with 9.2 There we multiple apps using the databases, and the downtime had to be minimal. Luckily, the databases were split to multiple schemas, and there were only a …
Sonera CStream Messaging Web Service API with Python and SUDS
In this article I will show you how to use the Sonera CStream Messaging Web Service API to send an SMS using Python, and a library called SUDS. The CStream API is two-way service for both sending and receiving messages. You obviously need to pay for the service to get …
Init Script for Daemonizing Non-Forking Processes
Sometimes you have an executable which does not fork to the background, but you need to control it with init scripts, so that it does indeed run in the background. Here's a pretty generic init script for that. It allows you to configure these:
DAEMON_NAME="My Little Daemon" DAEMON_EXECUTABLE="/opt …
HP ProLiant Management Component Pack on Ubuntu
HP seems to have set up a package repository for Ubuntu 12.04, which is an improvement since I last checked a few years ago. To use the repo, add the following line to /etc/apt/sources.list:
deb http://downloads.linux.hp.com/downloads/ManagementComponentPack/ubuntu precise current/non-free …
HP iLO2 Virtual Serial Console on Ubuntu
To get a virtual serial console, you need to enable the iLO virtual serial port. I had mine set up like this:
- iLO 2 Virtual Serial Port: COM2 0x2F8 IRQ 3
I also enabled ssh access in the iLO web interface. This way I can ssh into the iLO and …
Upgrading HP Proliant iLO2 Firmware with Ubuntu Server
I downloaded the firmware from HP site. It was named CP019022.scexe. I tried uploading it in the iLO2 web interface, but it was rejected. Next, I copied it to the server, gave it execute permissions and ran it:
root@host:~# ./CP019022.scexe ./CP019022.scexe: 153: ./CP019022.scexe: pushd: not …
Automount Anything over SSH
First, make sure you can use public key authentication or similar means to connect to ssh servers without typing in your password all the time.
Install sshfs for mounting remote filesystems over ssh, and afuse for automounting FUSE filesystems (sshfs uses fuse).
sudo apt-get install sshfs afuse
For dead connection …
Web Messaging with RabbitMQ-Web-Stomp and SockJS
In this article, I will discuss sending messages from server to web browser using RabbitMQ-Web-Stomp as the backend, and a simple JavaScript library to handle the web browser side. SockJS is used as the browser WebSockets library. This setup enables you to directly push messages in realtime from the RabbitMQ …
Command-T - Fast file navigation for VIM
Ingenious, fast way to find your files:
Command-T - Fast file navigation for VIM : vim online.
I use the following mappings:
" Set leader key to comma let mapleader = "," " Command-T shortcuts nnoremap <silent> <Leader>t :CommandT<CR> nnoremap <silent> <Leader>b :CommandTBuffer<CR>
Bring up the finder with ,t or "comma-t". Use …