Posts

Showing posts from February, 2016

Interactive Modemspeed - SSH like it's 1995.

Image
A couple of years ago I created a simple python program to simulate various modem speeds when you piped a command through it.  Easy, fun, but of limited use. So, I revisited it and made the read portion non-blocking so that it can be used interactively.  The aim is to have a script I can pipe SSH through to make the remote connection act like it's behind an oldschool modem. Voila:   interactive-modemspeed.py Usage: $ ssh remotehost | /path/ interactive-modemspeed.py speed Substitute /path/ with the location of the script. Substitute speed  with the speed (in bits per second) you want to experience.  If you omit  speed , you get 300 bits per second.    Did your friend leave a terminal unlocked?  Why not have some fun? $ function ssh() { /usr/bin/ssh "$@" | /path/ interactive-modemspeed 2400 ;} (Make sure to put the absolute path to the ssh binary so you don't create a bash fork loop.  :-P) N...