Posts Tagged ‘Bash’

NB-ImportLib v0.2

Wednesday, October 1st, 2008

Today, I uploaded the second version of my tiny “import java libraries into netbeans” script. All information has moved to it’s own page too. Even more, netbeans-importlib related stuff will be published in it’s own category. So filtering tags is not needed anymore.

RapidShare BASH Download Script

Saturday, June 28th, 2008

Since my BashDL project is kinda on hold till I finish kickstart bash, I’m posting the script I’m currently using to download from rapidshare. I fixed a small bug since rapidshare changed some of the site’s inner workings. The script can currently be found until improved here:
RapidShare Basic Download Script

It’s possible there are still bugs present, in which case you just respond here with what the problem is. If you are going to attach output, check /tmp/ for files looking like LINKS???????.rs, PAGE???????.rs and WGET??????.rs.

IMPORTANT!
Make sure you remove your rapidshare password and user from ALL files you send me. I don’t need to know.
You can do this by using ’sed’ (replace 000000 by your user name / password).
See the manual for information on how to use sed. A example can be found here:

sed -i s/000000/=LOGIN=/ [filename]
sed -i s/000000/=PASSWORD=/ [filename]

If you run into any trouble loading a file with links in it, make sure it has unix line endings. You can use the tool dos2unix to convert a file before using it.

Kickstart BASH Kickoff

Tuesday, May 27th, 2008

Yesterday, I finished putting up the Kickstart BASH page. More information can be found here.

At the same time, I fixed some SSL issues I was having on my home-webserver. Apparently, ssl doesn’t play nice with Namebased Virtual Hosts – which gave me some issues getting the right certificate in place. It’s a self signed one so you might get a little warning about that. It’s not going to change any time soon (as long as I’m hosting the svn repo myself that is).

Planned for later this evening: Setting up http://kickstart.vstone.org/, which will host the actual script in action. I ran into some problems again here: since my webhosting puts subdomains in a subfolder in my htdocs root, I had to do some magic rewriting to forward only ‘kickstart.vstone.org’ to the proper location.
For those of you who care: the solution was to add a rule to my wordpress rewrite rules in the .htaccess file. I’ve added the condition to check whether or not the server was accessed by ‘www.vstone.org‘ or ‘kickstart.vstone.org‘.

.htaccess file

# BEGIN WordPress
RewriteBase /
RewriteCond %{HTTP_REFERER} ^(http://|https://)(www.)?(vstone.org).*$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} !^kickstart.vstone.org.*$ [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Importing Java libraries in Netbeans on Linux

Tuesday, April 1st, 2008

When I found myself re-adding libraries in Netbeans again, I felt that I needed a quicker way to so. I have plenty of java libraries installed on my machine and it’s turning into a real hassle to set them up each time I clean out my Netbeans configuration folder.

So, that is why I created this script.

It is somewhat meant to be used on Gentoo. But it can be used on other distros too.

(more…)