Tags » Bash

Scripting SMTP with netcat

(echo EHLO $USER@$HOSTNAME
sleep 1
echo MAIL FROM: $USER@$HOSTNAME
sleep 1
echo RCPT TO: $EMAIL_TO
sleep 1
echo "DATA
From: $USER@HOSTNAME
To: $EMAIL_TO
Subject: $EMAIL_SUBJECT…
13 more words

Bytes

How to set revision number to svn external

SVN externals allow to include (nest) a remote SVN repository into another SVN repository. They are a great way to keep the latest code from another repository without having to do much. 95 more words

Guides

Bash Hacking - bash2, add setting CPU affinity support to the Bash

This post is NOT initially designed for how to hack Bash. But it does tell the truth that hacking Bash is not that hard, by adding a useful feature to Bash itself – setting CPU affinity support. 386 more words

Programming

How to install dbeaver (similar to SQL Server Management Studio) in Ubuntu 14.04 LTS 64-bit using a bash script

MACHINE_TYPE=`uname -m`
cd /tmp
rm *.deb
rm index.html
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
 # 64-bit stuff here
wget http://dbeaver.jkiss.org/download/
FILENAME=`cat index.html |grep amd64|cut -d "\"" -f2| cut -d"/" -f3`
wget dbeaver.jkiss.org/files/`echo $FILENAME`
sudo dpkg -i dbeaver*.deb
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -f install
else
 # 32-bit stuff here
wget http://dbeaver.jkiss.org/download/
FILENAME=`cat index.html |grep i386|cut -d "\"" -f2| cut -d"/" -f3`
wget dbeaver.jkiss.org/files/`echo $FILENAME`
sudo dpkg -i dbeaver*.deb
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -f install
fi
# run following command to start dbeaver:
/usr/share/dbeaver/dbeaver
Ubuntu

irssi in a remote screen session

The advantage of running irssi (command-line IRC client) in a persistent screen session on a box you can SSH to is twofold: 1) You get logs of all channel and PM activity, 24/7 except Christmas. 533 more words

May the best man win

Reign has finally returned! Yay! Now that i’ve got my excitement out of the way, lets recap this episode.

Ok, so the light bulb in Frances’ head finally went off when he said he should just go with what Mary says instead of against. 389 more words

Mary