Living With First-Person Shooter Disease


From Rock, Paper, Shotgun

On this day of rest, do spare a thought for those damaged by our hobby of choice:

(Via John Scalzi via BoingBoing)


Posted by ento. |
57 comments |
Donate or subscribe to RPS |
Post tags:

This article is from Rock, Paper, Shotgun. If you’re reading it on any other website, they’re stealing it from us without permission.

 Living With First Person Shooter Disease  Living With First Person Shooter Disease

 Living With First Person Shooter Disease



Gunsmoke Dub


From YouTube Videos

2 Gunsmoke Dub
Marshall jabooody has to take care of the town horse rapist. We were just bored watching some TV and an old western came on, we tried dubbing it right then and there and laughed our asses off soooo….. Pussy. www.jabooodydubs.com
Views:
109157
icn star full 11x11 Gunsmoke Dub icn star full 11x11 Gunsmoke Dub icn star full 11x11 Gunsmoke Dub icn star full 11x11 Gunsmoke Dub icn star half 11x11 Gunsmoke Dub
2691
ratings
Time:
04:44
More in
Comedy


LEGO combination safe


From MAKE Magazine

legocombinationsafe LEGO combination safe

Wow, a LEGO combination safe!

Read more | Permalink | Comments |

Read more articles in LEGO |

<a href="http://digg.com/submit?url=blog.makezine.com%2Farchive%2F2009%2F07%2Flego_combi



Easy filehost mirror script using wget

I recently started hosting a mirror of  the ROMs for an ongoing android project.  It was pain to download and upload everytime a file was updated, and I wanted to make an easy way to automate the process (I am only on a web host,  not a VPS, so I am somewhat limited as to what I can do).

I started with the wget command and worked and reworked with switches til I got what I’m using now… and it works great honestly.

Adjust this to match your settings and change it to a shell script file (script.sh):

cd /directory/to/hosted/files/

wget -r -l1 -H -t1 -nd -N -np -A.zip -erobots=off http://pathto.whatyoumirror.com

chmod the script to 555 and add it to a cron job with whatever interval you need.

Overall, the above script will read the index.html file and follow all the links downloading all the .zip files it finds and storing them your server.

we all know what wget does, lets look at the switches:

  • -r : sets wget to do recursive retrieving
  • -l1 : sets the recursion level to 1 (this can be adjusted to what works best for your situation)
  • -H : tells wget recursion to span hosts (links point to files on a different hosts will be reterived)
  • -t1 : how many times will wget try each link (I set it to one since we are just looking at a mod_autoindex directory. Leaving off the number and just using -t will set it to a default of 20 tries (seems awful high to me))
  • -nd : says dont seprate everything into directories all files found will be downloaded into the directory you ran the command from, regardless of where they are stored on the remote host. This could be left off)
  • -N : turn on timestamping (Here is the real power of the script if we already have a file on our host,and the remote is not newer, dont download it.  This allows changes to be made on the remote host and our script will always be up to date with the newest version of every file!)
  • -np :  Do not ever ascend to the parent directory when retrieving recursively.  This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded.
  • -A.zip : the -A is “Accept List” .zip is the filetypes on the accept list. This tells wget to only KEEP filetypes that match the list. Other types will be downloaded so that links may be followed, but will be removed when the command is done with them.
  • -erobots=off :  since wget works like a robot, it checks for therobots.txt file when going to retrieve large parts of a website with no user intervention by specifying -erobots=off, we tell wget to ignore what it finds in that file and download everything regardless of what the server wants.  (use with caution, not a “polite” thing to do)


© 2009 Jeremiah Altepeter

Valid XHTML 1.0 Strict! Valid CSS!
Made with Notepad++ Powered by Wordpress Hosted with 1&1 Get Chrome