Shell

SleepWatcher - A utility to run tasks on sleep/wake

This is a utility I have been looking for. It allows you to execute tasks when the computer/display goes to sleep and/or wakes up. Very nice.

Here is a little more discussion about it.

Howto fix the “edit home screen” loop for iPhone

Everybody loves the idea to be able to login to the iPhone via ssh and marvel at the fact that this exquisite piece of HW is actually running UNIX (well, a stripped down version of Mac OS X, anyways). It soon dawns that EVERY iPhone has the same root password installed - which is not real security threat considering the fact that ssh as means to login is not supposed to be running anyways. Once you jailbreak your device, you are able to login, but so is everybody else.

Now, when you put on your sysadmin hat and go an change the root password on any of the mobile Mac OS Xes, you'll get a nasty surprise.

wmctrl - A command line tool to interact with an EWMH/NetWM compatible X Window Manager

The wmctrl program is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager

SysThread

Systhread is a site about operating systems and programming for real operating system and programming enthusiasts, hobbyists, evangelicals and the like. It is derived from previous sites I have operated and had to (for one reason or another) abandon.

Vincent Taal Script Showcase

This guy has some goodies, like scp-resume ...

PXE/Jumpstart server configuration

The follow assumes that the PXE is being setup on a private subnet of 192.168.1.0, and that the server is being setup as 192.168.1.77 and is also named jazz. Please edit these files as needed to reflect the proper network that you use, as well as the hostname in the /etc/hosts file. Change the client names and/or IPs to reflect what you would like to serve out.

String En/Decoding

In a project I was working on, I needed to hand over a couple of parameters to another script running on a different machine on the network behind a firewall. Copying a file or opening a socket was not an option.

I decided to use a simple encoding scheme for all the information, so the executing shell wouldn't trip over possible spaces in the parameter.

Since my script had to run on a UNIX box where perl might not be an option, I had to stay simple korn shell. I only use the UNIX commands echo, bc, od, tr and awk.

Advanced Bash Scripting

This book is suitable for classroom use as a general introduction to programming concepts.

Term Colors

The original article.

Code snippets for bash programming

Ever wonder how to figure out if if a variable/userinput is numeric? Here is a very elegant solution:

Syndicate content