Pages

Vigenère cipher in pure bash

#!/usr/local/bin/bash
# vigenere.sh
# http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher

find fastest mirror

#!/bin/bash
# ffmirror.sh
# find fastest mirror (?!?)
# give it a list of hosts and it will sort them
# according to their response time
# no switches (ATM) just ./ffmirror<mirrors.txt
# www.foo.org or http://www.foo.org or
# http://foo.org/page or ...

cleansh!t

#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # Clean Sh!t v0.1 # # # # # # # # # # # # # # # #
# # # # # # Date: '20070506'# # # # # # # # # # # # # # # #
# # # # # # j00 @r3 ! fr33 to c0py my c0d3! # # # # # # # #

Generate Morse Code from ASCII

The Morse code, named after its inventor Samuel Morse, was used for long distance communication.
It is largely believed that it is now obsolete, yet some prisoners still find it useful. (banging a shoe on a pipe)
Learn more about it at Wikipedia.

Anyway here is the script
#!/bin/bash
# morse.sh - generate morse code from ascii
# you can contact me at:
# --. .-. ..- .-.. --- ... .--.-. --. -- .- .. .-.. 
# .-.-.- -.-. --- --

HTTP authentication, base64 encoding

In the previous post dyndee.sh - dyndns update client, I faced a problem: I had to authenticate to dyndns.org but didn't want to use lynx, links or any other external tool.
For HTTP authentication to work I need to base64 encode the string "username:password"
I will try to explain each step.

dyndee.sh - dyndns update client

Just a minimalistic dyndns.org update client written entirely in bash.
The only requirement is that bash should be compiled with --enable-net-redirections which on many systems is by default.

It gets the ip from http://metawire.org/~inode/ip.php which is a simple
<?php echo $_SERVER['REMOTE_ADDR']; ?>

It can be modified to use others such as checkip.dyndns.org
If you find any bug or have any requests, contact me.
#!/bin/bash
# dyndee.sh - update client for dyndns.org
# written entirely in bash

substrings, brace expansion, sequence expressions

Let's say you have a set of files in a directory named like
exp1eve1.txt
exp1eve2.txt
exp1eve3.txt
exp1eve4.txt
and you want to change the exp1 part to exp2 so they become
exp2eve1.txt
exp2eve2.txt
...

ebook: The Complete FreeBSD released!

Greg Lehey, a kernel hacker specializing in BSD UNIX, decided to release his book "The Complete FreeBSD" under the Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.

Microsoft: How to Remove Linux and Install Windows XP

No free space left for MS Windows?

"This article explains how to remove the Linux operating system from your computer and install Windows XP.