<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/Bash</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 04 Jul 2008 17:03:21 GMT</pubDate>
<item>
<title>(Bash) Find c99Shell PHP trojan hiding within PHP files - koncept</title>
<link>http://snipplr.com/view/6918/find-c99shell-php-trojan-hiding-within-php-files/</link>
<description><![CDATA[ <p>This code will start searching from / if no shell argument passed. You may want to adjust this default directory to the location of your apache directory instead for speed purposes.</p> ]]></description>
<pubDate>Thu, 26 Jun 2008 01:58:09 GMT</pubDate>
<guid>http://snipplr.com/view/6918/find-c99shell-php-trojan-hiding-within-php-files/</guid>
</item>
<item>
<title>(Bash) Tipical bash script option menu - Juanje</title>
<link>http://snipplr.com/view/6771/tipical-bash-script-option-menu/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 19 Jun 2008 03:05:56 GMT</pubDate>
<guid>http://snipplr.com/view/6771/tipical-bash-script-option-menu/</guid>
</item>
<item>
<title>(Bash) My .bash_logout - mbadran</title>
<link>http://snipplr.com/view/6731/my-bashlogout/</link>
<description><![CDATA[ <p>Additions to Debian's default .bash_logout.</p> ]]></description>
<pubDate>Mon, 16 Jun 2008 02:14:21 GMT</pubDate>
<guid>http://snipplr.com/view/6731/my-bashlogout/</guid>
</item>
<item>
<title>(Bash) My .bash_login - mbadran</title>
<link>http://snipplr.com/view/6730/my-bashlogin/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 16 Jun 2008 02:07:10 GMT</pubDate>
<guid>http://snipplr.com/view/6730/my-bashlogin/</guid>
</item>
<item>
<title>(Bash) My .bash_aliases - mbadran</title>
<link>http://snipplr.com/view/6729/my-bashaliases/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 16 Jun 2008 02:04:35 GMT</pubDate>
<guid>http://snipplr.com/view/6729/my-bashaliases/</guid>
</item>
<item>
<title>(Bash) My .bash_profile - mbadran</title>
<link>http://snipplr.com/view/6728/my-bashprofile/</link>
<description><![CDATA[ <p>Additions to Debian's default .bash_profile.</p> ]]></description>
<pubDate>Mon, 16 Jun 2008 02:00:32 GMT</pubDate>
<guid>http://snipplr.com/view/6728/my-bashprofile/</guid>
</item>
<item>
<title>(Bash) My .dir_colors - mbadran</title>
<link>http://snipplr.com/view/6727/my-dircolors/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 16 Jun 2008 01:54:21 GMT</pubDate>
<guid>http://snipplr.com/view/6727/my-dircolors/</guid>
</item>
<item>
<title>(Bash) My .bashrc - mbadran</title>
<link>http://snipplr.com/view/6726/my-bashrc/</link>
<description><![CDATA[ <p>Additions to Debian's default .bashrc.</p> ]]></description>
<pubDate>Mon, 16 Jun 2008 01:52:30 GMT</pubDate>
<guid>http://snipplr.com/view/6726/my-bashrc/</guid>
</item>
<item>
<title>(Bash) Display jar contents - mbadran</title>
<link>http://snipplr.com/view/6716/display-jar-contents/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jun 2008 12:24:37 GMT</pubDate>
<guid>http://snipplr.com/view/6716/display-jar-contents/</guid>
</item>
<item>
<title>(Bash) Create jar file - mbadran</title>
<link>http://snipplr.com/view/6715/create-jar-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jun 2008 12:24:02 GMT</pubDate>
<guid>http://snipplr.com/view/6715/create-jar-file/</guid>
</item>
<item>
<title>(Other) my bash prompt - rwczippy</title>
<link>http://snipplr.com/view/6672/my-bash-prompt/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 12 Jun 2008 13:56:26 GMT</pubDate>
<guid>http://snipplr.com/view/6672/my-bash-prompt/</guid>
</item>
<item>
<title>(Bash) Patch between different directories - Juanje</title>
<link>http://snipplr.com/view/6667/patch-between-different-directories/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 12 Jun 2008 07:58:42 GMT</pubDate>
<guid>http://snipplr.com/view/6667/patch-between-different-directories/</guid>
</item>
<item>
<title>(Ruby) Post to Twitter from the shell - noah</title>
<link>http://snipplr.com/view/6594/post-to-twitter-from-the-shell/</link>
<description><![CDATA[ <p>Put this in a file called twit.rb, then call as follows:
    ruby twit.rb username "my tweet"

Or you can include your password in the command like so 
    ruby twit.rb username:password "my tweet"

(note that this is hugely insecure as your password will wind up in your .history, not to mention being visible to shouldersurfers).

Also, I just noticed as I was posting this code, that there's a bug where if your tweet is too long and gets truncated, my script will claim you failed to post entirely.  I gotta go back and add logic to check the character count, but tbh I've never gone over 140 characters on the command line, tho I've posted daily with this script for the past several months.  Ymmv.</p> ]]></description>
<pubDate>Thu, 05 Jun 2008 09:23:47 GMT</pubDate>
<guid>http://snipplr.com/view/6594/post-to-twitter-from-the-shell/</guid>
</item>
<item>
<title>(Bash) Arrays in BASH - Juanje</title>
<link>http://snipplr.com/view/6511/arrays-in-bash/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 30 May 2008 19:50:12 GMT</pubDate>
<guid>http://snipplr.com/view/6511/arrays-in-bash/</guid>
</item>
<item>
<title>(Bash) Vars expansions - Juanje</title>
<link>http://snipplr.com/view/6508/vars-expansions/</link>
<description><![CDATA[ <p>Sorry, the comentaries are in spanish. I will translate them some day.

The examples results are indicated with:
# -> [result]

Usually is the "echo" result</p> ]]></description>
<pubDate>Fri, 30 May 2008 18:53:12 GMT</pubDate>
<guid>http://snipplr.com/view/6508/vars-expansions/</guid>
</item>
<item>
<title>(Bash) Setting rubygems under ubuntu hardy - narkisr</title>
<link>http://snipplr.com/view/6470/setting-rubygems-under-ubuntu-hardy/</link>
<description><![CDATA[ <p>A bash script which installs rubygems under ubuntu hardy.</p> ]]></description>
<pubDate>Tue, 27 May 2008 10:47:55 GMT</pubDate>
<guid>http://snipplr.com/view/6470/setting-rubygems-under-ubuntu-hardy/</guid>
</item>
<item>
<title>(Bash) Bash debug - 0xced</title>
<link>http://snipplr.com/view/6219/bash-debug/</link>
<description><![CDATA[ <p>Add -x to get a full trace of a bash script execution</p> ]]></description>
<pubDate>Wed, 14 May 2008 03:28:17 GMT</pubDate>
<guid>http://snipplr.com/view/6219/bash-debug/</guid>
</item>
<item>
<title>(Bash) Alias for mounting loop devices - Juanje</title>
<link>http://snipplr.com/view/6214/alias-for-mounting-loop-devices/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 14 May 2008 01:55:42 GMT</pubDate>
<guid>http://snipplr.com/view/6214/alias-for-mounting-loop-devices/</guid>
</item>
<item>
<title>(Bash) Create a batch file wrapper for a script in linux - wolfie</title>
<link>http://snipplr.com/view/6131/create-a-batch-file-wrapper-for-a-script-in-linux/</link>
<description><![CDATA[ <p>Useful if you need to run the same command for lots and lots of different parameters</p> ]]></description>
<pubDate>Tue, 06 May 2008 06:26:26 GMT</pubDate>
<guid>http://snipplr.com/view/6131/create-a-batch-file-wrapper-for-a-script-in-linux/</guid>
</item>
<item>
<title>(Bash) Determine which number out of a list is being processed at the moment - wolfie</title>
<link>http://snipplr.com/view/6130/determine-which-number-out-of-a-list-is-being-processed-at-the-moment/</link>
<description><![CDATA[ <p>Useful if you have a shell script running lots of the same command and want to know how many of them have been done</p> ]]></description>
<pubDate>Tue, 06 May 2008 06:22:05 GMT</pubDate>
<guid>http://snipplr.com/view/6130/determine-which-number-out-of-a-list-is-being-processed-at-the-moment/</guid>
</item>
</channel>
</rss>