Post thumbnail of Looping over a range in bash
7 April 2009
Continue reading Looping over a range in bash

Looping over a range in bash

I don’t know why I always forget how to do ranges, but I do. I guess it has something to do with the fact that I don’t expect it to be like C at all, and I don’t need to use it often enough to remember.

Post thumbnail of Command line shortcut #977 - shell auto-completion
18 February 2009
Continue reading Command line shortcut #977 - shell auto-completion

Command line shortcut #977 - shell auto-completion

Instead of typing the export string out each time and the emerge line too, I just recalled them from the history knowing that the last set of commands that started with those characters were the commands I wanted. If you didn’t know about these handy shortcuts, now you know, and knowing is have the battle. So when is that movie coming out anyway!!?

Post thumbnail of shc compiler to compile bash shell scripts into binary
8 January 2009
Continue reading shc compiler to compile bash shell scripts into binary

shc compiler to compile bash shell scripts into binary

shc is the only tool i’ve found that will compile scripts so idle hands won’t tamper with your bash shell scripts. Yes, I know I could just use permissions to keep people from reading them and it’s easy to reverse engineer the binary code, but I look at it like …

Post thumbnail of Remove lines in your php files that reveal your WordPress version
6 December 2008
Continue reading Remove lines in your php files that reveal your WordPress version

Remove lines in your php files that reveal your WordPress version

Get rid of this line in all your WordPress php files
<meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” /><!– leave this for stats please –>
When wordpress comes out with a new version, part of the update is usually fixing an exploitable bug.  The bug may allow a hacker to access your wp-admin …

Post thumbnail of Add your public SSH keys to a remote host’s authorized_keys in a single command
14 November 2008
Continue reading Add your public SSH keys to a remote host’s authorized_keys in a single command

Add your public SSH keys to a remote host’s authorized_keys in a single command

[user@localhost ~]$  cat ~/.ssh/id_rsa.pub ~/.ssh/id_dsa.pub | ssh user@remotehost ’sh -c “cat - >> ~/.ssh/authorized_keys”‘
You’ll be prompted for the password just this one last time.  This is perfect for running a script that runs several remote commands through ssh.  Here’s a script that checks for your keys and adds them if …

Post thumbnail of Installing OpenSSL, OpenSSH, and RSYNC on Solaris 2.6 (SunOS)
7 November 2008
Continue reading Installing OpenSSL, OpenSSH, and RSYNC on Solaris 2.6 (SunOS)

Installing OpenSSL, OpenSSH, and RSYNC on Solaris 2.6 (SunOS)

Yes, I know this is ancient stuff, but I have no choice but to mess with it right now.  Old ultrasparc garbage, weeee!  So here goes the installation of some ‘modern day’ packages so I can work with this old box.  (It hasn’t been touched since 2002, ouch)
First you’ll need …

 Page 2 of 2 « 1  2 
Powered by Wordpress   |   Lunated designed by ZenVerse