Latest Entries »

Check the Contact Information VS Whois Information

Any decent website would definitely have a contact page with company address and contact numbers. Check the informations using a whois search if they match. Most of the time, fraudulent websites state that their company resides in the US but has a different story when checked in the domain whois.

Check the Age of the Website

A several month old website is more likely to be a scam site, although not all of them are. Because of this uncertainty, I only use the age of domain as an additional information in deciding whether the site is legitimate or not.

Check How Long is the Domain Name Registered

Do a quick domain lookup. Websites that plan to stay long in the business registers their domain names several years in advance. If the domain name is registered for only a year, I’d already have my doubts.

Check the Neighbors of the Website

Do a quick IP search to check the hosting neighbors of the website. Most fraudulent websites are in a shared IP address. If the neighbors sounds fishy or looks spammy, I won’t risk dealing with the site.

Ask Websites Associated with the One You Are Checking

Most people would ask around forums on whether a site could be trusted or not. The problem with this is you are asking for other people’s opinion. Opinions help but doesn’t really answer.

What you want is to contact websites associated with the company like it’s web hosts or site partners. This way, you are asking a person with the knowledge to answer you back with confidence.

Look at Reviews or Customer Feedbacks

This can only be done if the website does have reviews or show customer feedbacks. If not, you can contact the customers personally. Ask the customers about their experience with the company. Did they get paid? How long have they been a member?

  • BlueProximity is a clever program by Lars Friedrichs that sets up your computer to lock itself when your phone is out of bluetooth range, and unlock itself when it comes close enough again. You can also also make it turn off and on the monitor, music, change  status and pretty much everything you can imagine.


# for finding and executing music in mplayer
# replace ‘/my/Music/Collection/’with real path of the folder your music is stored. ‘/*/*/*’ are given to look into sub folders


#for playing all songs in shuffled manner
if [[ “$song” == “all” ]];then
mplayer -shuffle /my/Music/Collection/* /my/Music/Collection/*/* /my/Music/Collection/*/*/* /my/Music/Collection/*/*/*/* /my/Music/Collection/*/*/*/*/* /my/Music/Collection/*/*/*/*/*/*
#for finding and playing the song name given
find /my/Music/Collection/ -type f -iname “*$song*” -exec mplayer {} \;

yt-chanrip() { for i in $(curl -s”$1″/uploads | grep -Eo “watch\?v=[^[:space:]\”\’\\]{11}” | uniq); do youtube-dl –title –no-overwrites”$i”; done }
Download Entire YouTube Channel – all of a user’s videos

create the function then run ‘yt-chanrip username’ to download that user’s entire channel.

uses youtube-dl and the GData API. similar to

montage 2007-08-25-3685.jpg +clone -clone 0-1 -clone 0-3 -geometry 500 -frame 5 output.jpg
Repeat a portrait eight times so it can be cut out from a 6″x4″ photo and used for visa or passport photos

Yes, You could do it in the GIMP or even use Inkscape to auto-align the clones, but the command line is so much easier.

NOTE: The +clone and -clone options are just to shorten the command line instead of typing the same filename eight times. It might also speed up the montage by only processing the image once, but I’m not sure. “+clone” duplicates the previous image, the following two “-clone”s duplicate the first two and then the first four images.

NOTE2: The -frame option is just so that I have some lines to cut along.

BUG: I haven’t bothered to calculate the exact geometry (width and height) of each image since that was not critical for the visa photos I need. If it matters for you, it should be easy enough to set using the -geometry flag near the end of the command. For example, if you have your DPI set to 600, you could use “-geometry 800×1200!” to make each subimage 1⅓ x 2 inches. You may want to use ImageMagick’s “-density 600” option to put a flag in the JPEG file cuing the printer that it is a 600 DPI image.

BUG2: ImageMagick does not autorotate images based on the EXIF information. Since the portrait photo was taken with the camera sideways, I made the JPEG rotate using jhead like so: jhead -autorot 2007-08-25-3685.jpg

echo “You can simulate on-screen typing just like in the movies” | pv -qL 10


simulate typing

This will output the characters at 10 per second.

MIN=10;for ((i=MIN*60;i>=0;i–));do echo -ne “\r$(date -d”0+$i sec” +%H:%M:%S)”;sleep 1;done
2011-02-20 11:56:28
User: flatcap
Functions: echo sleep
Countdown Clock

Countdown clock – Counts down from $MIN minutes to zero.

I let the date command do the maths.

This version doesn’t use seq.

arecord -q -f cd -r 44100 -c2 -t raw | lame -S -x -h -b 128 – `date +%Y%m%d%H%M`.mp3
2009-09-25 05:32:52
User: oracular
Functions: arecord cd
Record microphone input and output to date stamped mp3 file

record audio notes or meetings

requires arecord and lame

run mp3gain on the resulting file to increase the volume / quality

ctrl-c to stop recording

mplayer -dumpstream -dumpfile “yourfile” -playlist “URL”

I use this command to save RTSP video streams over night from one of our national TV stations, so I won’t have to squeeze the data through my slow internet connection when I want to watch it the next day.

For ease of use, you might want to put this in a file:


FILE=”`basename \”$1\”`”

mplayer -dumpstream -dumpfile “$FILE” -playlist “$1”

wget -q -O – `youtube-dl -b -g $url`| ffmpeg -i – -f mp3 -vn -acodec libmp3lame -| mpg123 –