Archive

Archive for the ‘Bash’ Category

MEDIAFIRE DIRECT LINK GENERATOR

December 8, 2009 3 comments

THIS SCRIPT DOESN’T WORK ANYMORE!

IF ANY FUTURE SCRIPTS WILL BE MADE THEY WILL BE POSTED  AT MY NEW BLOG

http://djsh.net/

UPDATE2: Mediafire updated their page leaving this script non functional.

UPDATE: Added Proxy Support

This is a python based Mediafire link resolution script . It resolves the input link to give the direct link to the file.

By using this script you are automatically agreeing to MediaFire ‘s Terms and Conditions.

If you wish to have the source code , contact me.

DOWNLOAD

For help use “mediafire.pyc –help”

Categories: Bash, Linux, python, Windows Tags: ,

Freeing up RAM in Linux

July 27, 2009 3 comments

NOTE: Little clarification, this is not needed at all ,as memory is freed when required.

WHY IT MAY BE HELP-FULL: This clears the page-cache , dentires and inodes.

IT’S TRANSLATION : It may be that you are watching a movie or using a Virtual Machine , a resource hungry process has filled up your ram by caching data and the data needs to be continuously removed  to make space for new data . This is managed by the kernel.

IF YOU STILL DON’T  GET IT: Notice  video in your movie hanging (not audio) while your ram gets cached Or your system running a bit slow ?


1) Stop the process consuming loads of memory. (Check System Monitor).
2) Open a terminal with root privileges .
3) Sync
4) echo 3 > /proc/sys/vm/drop_caches
5) echo 0 > /proc/sys/vm/drop_caches

Bash Commands List

January 19, 2008 Leave a comment

Well here is a basic index of commands used in bash found it at a great site  here

For More Info on the commands visit the above link:

alias          Create an alias
apropos     Search Help manual pages (man -k)
awk           Find  and Replace text, database sort/validate/index

break         Exit from a loop
builtin        Run a shell builtin
bzip2         Compress or decompress named file(s)

cal             Display a calendar
case           Conditionally perform a command
cat             Display the contents of a file
cd              Change Directory
cfdisk        Partition table manipulator for Linux
chgrp        Change group ownership
chmod      Change access permissions
chown      Change file owner and group
chroot       Run a command with a different root directory
cksum       Print CRC checksum and byte counts
clear          Clear terminal screen
cmp           Compare two files
comm        Compare two sorted files line by line
command  Run a command – ignoring shell functions
continue    Resume the next iteration of a loop
cp             Copy one or more files to another location
cron          Daemon to execute scheduled commands
crontab     Schedule a command to run at a later time
csplit        Split a file into context-determined pieces
cut            Divide a file into several parts

date          Display or change the date & time
dc             Desk Calculator
dd             Data Dump – Convert and copy a file
Read more…

Categories: Bash, Linux