Sep 12 2012

python command line bandwidth monitor

Category: pythonerm @ 8:20 pm

In a previous post I wrote a bandwidth monitory in php. It was running about 300k (on my laptop it was < 100k), and figured it was time to test out my python foo. This version also displays a line similar to this at the top of your terminal window: eth0:RX:600b TX:944b Av:77b eth2:RX:0b TX:0b Av:0b

Usage is simple:
$ ./ & htop
Continue reading “python command line bandwidth monitor”

Sep 07 2012

python, pygtk crumblist

Category: pygtk,pythonerm @ 10:13 am

I needed a hbox that would automatically take children widgets from one row and put it into another row depending on the width of the widget. This is similar to how html elements are handled on a web page.

The desired result was to basically make a crumb/tag list with a close button that you could easily remove elements from.

Continue reading “python, pygtk crumblist”

Aug 30 2012

php command line bandwidth monitor

Category: phperm @ 10:55 am

I wrote this quick & dirty bandwidth monitor for use with htop. It also displays the average bandwidth for the last 10 seconds.

It displays a line similar to this at the top of the screen:
eth0:RX:600b TX:944b Avg:77b eth2:RX:0b TX:0b Avg:0b

Usage is simple:
$ ./bw.monitor.php & htop
Continue reading “php command line bandwidth monitor”

Aug 28 2012

How to setup an sftp/ssh server with denyhosts on ubuntu

Category: Linux,tutorialerm @ 2:50 am

Throughout this document I will have <keywords> encapsulated in brackets. Substitute what the keyword is for the appropriate value. For instance <username>@localhost would become erm@localhost, or whatever your username is.

Cliffnotes version commands:

Install open ssh:
$ sudo apt-get install openssh-server

Backup ssh config:
$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.`date +%Y-%m-%d`.bak

Edit /etc/ssh/sshd_config:
$ sudo nano /etc/ssh/sshd_config

Enable sftp:
Subsystem sftp /usr/lib/openssh/sftp-server

Restart ssh:
$ sudo /etc/init.d/ssh restart
$ sudo service ssh restart

Test your server:
$ ssh <username>@localhost

Test your connection:
$ echo $SSH_CLIENT

Log out of ssh:
$ <ctrl+d>
$ exit

Install denyhosts:
$ sudo apt-get install denyhosts

Backup denyhosts config:
$ sudo cp /etc/denyhosts.conf /etc/denyhosts.conf.`date +%Y-%m-%d`.bak

Edit denyhosts config:
$ sudo nano /etc/denyhosts.conf

Edit lines:

Restart denyhosts:
$ sudo /etc/init.d/denyhosts restart
$ sudo service denyhosts restart

Get your remote ip:
Visit: or

Get your lan/local ip:
$ ifconfig

Login via remote computer from inside lan:
$ ssh <username>@<localip>

Login via remote computer from outside lan:
$ ssh <username>@<remoteip>

Continue reading “How to setup an sftp/ssh server with denyhosts on ubuntu”

May 25 2012

Pygtk star rating cellrenderer for a treeview

Category: pygtk,pythonerm @ 6:12 am

This code is a complete hack. I’ve probably done it wrong in someones eyes out there, and if by chance you are better at this sort of thing, and see room for improvements please pass it along.  I can only stand so much insanity building this thing.  It works for what I need.
Continue reading “Pygtk star rating cellrenderer for a treeview”

May 09 2012

Poloroid PMID701c

Category: Life Storieserm @ 5:23 pm

I recently got a Poloroid PMID701C for $89 from Big Lots. I figured it’s been long enough I better break radio silence on my blog and write about my experience.
Continue reading “Poloroid PMID701c”

Mar 17 2010

Prince of Persia on the PS3

Category: Things That Get Me Maderm @ 4:31 am

I just got done playing Prince of Persia on the ps3.

The ending kinda sucked. I love the visuals, it was fun playing it, but the ending just wasn’t worth my time.

The thing that kinda bothers me the most about the ending is POP usually has multiple endings. Every other Prince of Persia I’ve played had different endings, and I’ve beaten them so I could see the endings.

Oh well it was a beautiful game. I give it 3 out of 5 stars. Rent it, don’t buy it.

Tags: ,

Jan 31 2010

Dynamics of Fear

Category: CreepyPastaerm @ 11:06 pm

Call me crazy if you want, perhaps I am.  Perhaps I’m not because I question my own sanity, but perhaps questioning the questioning makes you crazy.
I like to go to and read all the stories in the middle of the night.

When you read a lot of creepypasta you begin to discover the dynamics of fear.  What makes you scared, what snaps you back,  what makes you laugh, and what makes it worse. You also discover how something that’s really scary can be turned into nothing due to bad writing.  Hopefully this will not turn into one of those.

The best time to read the pasta is between 3am-5am when all the psychic static is low.  According to a Jewish acquaintance of mine it’s also the best time to read the Tora (first 4 books of the Bible.) It’s also the best time to code.

Maybe it’s because all the angels whispering in people’s ears are taking breaks from their usual ward.  After all they are asleep.  Nothing is going to happen to them.

So the angels will wander the neighbourhood looking for people who are awake, and whisper something in their ears.  Sometimes the angels loose track of time, watching what awake people are doing.  After all their ward is just laying in bed no need to guard them now.

This is where your nightmares come from.  You know the one with the shadow man standing over you.  You can’t move, you can’t scream, you wake up in your dream only to discover you’re in a dream.   Apparently your angel was taking an extended break watching the hacker down the street.  It’s also the reason why you feel like something is standing over your shoulder right now because all the angels are staying with their wards tonight.

« Previous PageNext Page »