Extracting SGN files used by the Israeli Court System

The Story

One of my friends has some dealings with the Israeli courts.
The noteworthy (and annoying) part of their digital documents is that these documents are using a novel format instead of some industry standard.
Files arriving by email have the SGN suffix, and the email includes the following …

more ...

The BIG BUTTON with Arduino

I've created a dramatic big button, that actually sends key presses to the computer.
It's connected to the computer via USB, and programmable via the same connection, meaning we can change the key presses it sends as we like.

The button

I got a factory button from eBay. The listing …

more ...

Sortiq - sort, uniq, sort

This is a small snippet I find extremely useful. You should have it in your ~/.bashrc:

sortiq() { sort | uniq -c | sort -rn ; }

It will count the instances of each line, sorting them from most common to least common.

What is this for

It answers the question "How much of each …

more ...

Running external Ruby code from Vagrant

The Story

Like a lot of Chef users, I'm using Vagrant for testing my cookbooks. I'm also using Berkshelf for providing the Vagrant box with the cookbooks it needs.
Until recently, I was happy using the ChefDK-provided Berlshelf (v4.0.1). I stopped being happy when running berks started consuming …

more ...



Sending mail on coredumps

The Story

I recently found out that some of our backend code suffers from memory-related ceashes, namely SIGSEGV (a program tries to access memory it doesn't own). My initial response was to install and enable Abrt, which is a collection of utilities used in RHEL. Ubuntu has a similar tool …

more ...

Using RPMBuild - My Shortlist

The Story

I was trying to tinker with Abrt, a daemon in charge of collecting and diagnosing various crashes in RHEL (more on that in a different post).
Because the crash hook is written in C (it was designed to be really quick), I couldn't use my usual method of …

more ...

Installing Growroot on CentOS

The story

I currently work with CentOS on Amazon EC2. As I previously written, The HVM version of the AMI is created with a partitioned disk, instead of having the filesystem written directly on the block device.
Problem is, when creating a root device bigger than the default (8G), you …

more ...

Chroot Snippet

The Story

Some time ago, my PC wouldn't boot.
This was my fault, as I needed to resize some partition, and resizing in Linux really means deleting the partition and creating a new one in the same place. I forgot to assign the partition the same UUID, which caused Ubuntu …

more ...