Tags » Bash

'Reign': Watch Bash and Kenna have some sexy time

Reign is all-new tonight and if this exclusive sneak peek from Entertainment Weekly is any indication, it’s going to be a very steamy episode for newlyweds Bash and Kenna.

Reign airs Thursdays at 9/8c.

TV

Add colour to vim in cygwin

To enable colour in cygwin simply add the below to your .vimrc file.

:syntax on
Linux

Working inside a Shell

Switching back to Linux was a liberating feeling. A feeling unlike anything else. After staying in the Restrictive Windows interface and getting used to weirdly large boot times and the space-eating Hibernating option, working on an OS that boots in less than half a minute to full usability and does not do anything that does not need to be done is simply amazing. 559 more words

rsync: the MacGyver tool for making backups on *nix based operating systems

I’ve been using rsync as my MacGyver style backup-tool of choice on *nix systems and sometimes even Windows systems.

It works both locally and remotely, is simple to setup and over the years has gathered a lot of nifty functionality. 436 more words

Development

A perfect way to add snapshotting to old filesystems that failed completely

As many of you know the latest iteration of Ubuntu hit the net on the 17th. It will be my last upgrade ever mostly due to Ubuntu’s habit of including large non-standard infrastructure. 1,576 more words

Code

Rename files in a directory randomly

Using Terminal - 

Go to that folder and run the following : 

#!/bin/bash

for file in *.txt ; do
   name=$(tr -dc "[:alnum:]" < /dev/urandom | head -c 10)
   mv "$file" ${name}.txt
done… 22 more words

Start Stop Script

Start script

#!/bin/bash

nohup ./helloworld >${LOG_DIR}/helloworld.log 2>&1 &

Stop script

#!/bin/bash

kill `ps -ef | grep helloworld | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
exit 0