Tags » Bash Script

Change the Java (JVM) used by tomcat.

Enterprise systems will have different versions of Java installed in it. A system administrator may have to set up Tomcat to use a particular one out of it. 103 more words

Tutorials

Multi-processing using shell script

I love concurrency. Writing a concurrent program is always complex. There are different technologies which are most suitable to do this job. In an earlier post… 97 more words

Parallelism

Easy Timestamping with Bash

Here’s a quick Bash script to prefix lines read from standard input by a time stamp.

#!/usr/bin/env bash

while read line
do
    echo $(date "$@") "$line"
done
… 189 more words
Hacks

Username and password with wget/curl

To download a url with basic authentication we need to pass username & password.

To acheive this functionality with wget or curl observer following examples: 69 more words

Ubuntu

Check Current Battery Cycles on Mac OS X

Sometimes it’s helpful to know how many times a battery has been fully cycled on a MacBook Pro. For Instance, if a user is requesting a replacement because their current battery isn’t holding a full charge. 114 more words

Mac Admin

Countdown timer without bells but whistles

While writing the previous post, I felt the urge of.. eating. Yeah, I do that sometimes. So, I decided to cook. My problem with multitasking, when one of the tasks is cooking, is that I always fuck up the cooking. 649 more words

Linux

Including source code in LaTeX documents

Needed to include some R script in a document. Pasting straight in causes problems. Turns out the \listings package works well. Settings need to be tweaked a bit but otherwise easy to use. 146 more words

LaTeX