Tag Archives: linux

Using ‘screen’ for remote interaction

Sure we love logmein, webex, etc. Sometimes we just wanna use good ol’ ssh and screen. Here’s a writeup on using screen in multi user mode Another good (better) site: http://www.pixelbeat.org/docs/screen/ Here’s my quick cheat sheet as HOST (root) screen -S …
Read more

Posted in Uncategorized | Tagged , , | Comments Off on Using ‘screen’ for remote interaction

Using pv to limit pipes

While looking to tame down our tar backups, I found a good write up on using pv tool to throttle bandwidth of a pipe   tar cf – mydata | pv -L 1m >/media/MYDISK/backup.tar   Grabbed and installed from yum but …
Read more

Posted in Uncategorized | Tagged , , | Comments Off on Using pv to limit pipes

Increasing Disk Space on Linux EC2

Great write-up on expanding the existing root EBS volume for an EBS-backed instance: Stop the instance. Create a snapshot of the root EBS volume. Create an ESB volume from that snapshot with the new desired size. (Please ensure it is …
Read more

Posted in Uncategorized | Tagged , , | Comments Off on Increasing Disk Space on Linux EC2

Patching with Git

Great article on how to create and apply a patch with Git In my setup I used the following: cd /var/tmp mkdir clone_tmp git clone git@github.com:details_here_removed git checkout -b hotfix_branch_name  (create local branch and checkout to it) now I make my changes …
Read more

Posted in Uncategorized | Tagged , , | Comments Off on Patching with Git

No Ding (Bell)

It’s the little things that help …. turning off the auto-complete bell at night (forever!) in /etc/inputrc add the line: set bell-style none

Posted in Uncategorized | Tagged , , | Comments Off on No Ding (Bell)

VIM Macros

High Level Steps to Record and Play inside Vim Start recording by pressing q, followed by a lower case character to name the macro Perform any typical editing, actions inside Vim editor, which will be recorded Stop recording by pressing …
Read more

Posted in Uncategorized | Tagged , | Comments Off on VIM Macros

Vim: How To Fold Functions

The is really a tip on how to fold any code block including functions. Navigate your cursor somewhere inside of the code block you want to fold, make sure you are in command/normal mode (press escape if you need to) then …
Read more

Posted in Uncategorized | Tagged , , | Leave a comment

Console Size

Sometimes you just need to work in console … no fancy graphics/etc. Here’s where VGA modes for PC computers comes in. AKA screen resolution

Posted in Uncategorized | Tagged , , | Leave a comment

Dropbox on Unix == Great SVN !!

I’ve been looking for a way I can (securely) sync a (local) SVN repo for my many projects. In comes Dropbox with Win/Linux support! Here’s the CLI install for Linux: http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall

Posted in Uncategorized | Tagged , , , | Leave a comment

watch Command

While researching some issues I’m having with iostat, I found an interesting command called ‘watch’ Instead of running the usual command (up arrow, return, up arrow, return) [root@nms-tpt-1 ~]# cat /proc/diskstats | grep "sda "    8    0 sda …
Read more

Posted in Uncategorized | Tagged , | Leave a comment