Check These Out
Create/open/use an encrypted directory
encfs needs to be installed
During creation easiest to use default values
The encrypted files will be in ~/.crypt and you will work as usual in ~/crypt
To close the encrypted directory run:
fusermount -u ~/crypt
When you switch off the computer the encrypted directory will be automatically closed
This example uses /home/user/crypt as encrypted directory
I use ubuntu linux 8.04 and I am also the creator of www.minihowto.org
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
the newest rpms are at the top; individual packages can also be queried this way:
rpm --last -q package
sudo ipfw pipe 1 config bw 50KByte/s
Set the bandwidth (bw) limit to any number you want. For example you could have a 15kb pipe for X application and then a 100kb pipe for another application and attach things to those pipes. If a port isn’t attached to a pipe, it runs at full speed. Change the number (in this case 1) to a different number for a different pipe.
The next step is to attach your port.
sudo ipfw add 1 pipe 1 src-port 80
In this case anything on port 80 (http) will be set to a limit of 50Kbyte/s. If you want to attach a second port to this pipe, repeat the command but change the port number at the end.
src : http://www.mactricksandtips.com/2008/12/throttling-bandwidth-on-a-mac.html
Run as root. Path may vary depending on laptop model and video card (this was tested on an Acer laptop with ATI HD3200 video).
$ cat /proc/acpi/video/VGA/LCD/brightness
to discover the possible values for your display.
This was useful to generate random passwords to some webpage users, using the sample code, inside a bash script
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
If you use new features of a certain Bash version in your shell script, make sure that it actually runs with the required version.