Monday, March 19, 2012

Git'ing Around

I was dusting off some of the ol' Sinatra skills today, and thought I'd start by browsing through the source of a project by one of the better Ruby coders out there - it's really the best way to learn. But alas, the project I had used to the same effect over a year ago had migrated to Rails!!!

Thankfully, the awesomeness of Git and Github came to the rescue - I simply forked the project, looked back through the commit log, found the commit that introduced Rails, then "re-mastered" my fork so that commit was the new HEAD. And how did i do all that?

1. Fork the project on Github.

2. git clone git@github.com:$USERNAME/$REPO.git

3. git log
- find relevant commit, note down first 8 chars of the commit SHA. Lets say that was '12345678'

4. git reset --hard 12345678

5. git push origin master -f

That's it - you've now effectively taken the forked repo back in time.

Sunday, May 30, 2010

BFBC2 SPAS(tic)-12 Gayness

The weapon damage weightings in Bad Company 2 have been off since day one. There have been a few tweaks here and there, but the fact that a bolt action sniper rifle doesn't necessarily kill with 1 shot is ridiculous, especially when your opponent is carrying an assault rifle.

The latest problem I have seen is with the SPAS-12, although several times in the past few weeks I have fallen victim to this with the Neostead 2000 so maybe all shotguns are effected. Basically, if you equip the SPAS-12, 12 Gauge Slugs (12G.SGN) and Extended Shotgun Magazine (SG UPGR) you end up with a shotgun that has sniper capabilities. What do I mean by that? Check out this quick video I recorded. You're best watching this in fullscreen 480p, otherwise you might have difficulty seeing what i am shooting at. Yes, that's how far away I am and hacking is for fucking losers - I would never use one.

Friday, May 28, 2010

Best Game of BFBC2 So Far...

Not best in terms of kill/death ratio or score... was just a really enjoyable Rush game on Arica Harbour (favourite game mode, one of my favourite maps) with a couple of clan mates. The attackers were 1 man up pretty much the whole time, with less than 20 players on the whole time which was nice - the right amount of players for a good game.

We managed to successfully defend mcom station B on the very last stage, resulting in a victory and a new PB of 14 pins for me (note the double Combat Excellence pins, and the Best Squad pin ;)!


Nice bit of all rounding there too, if I do say so myself :)

Monday, May 17, 2010

Secure, Anonymous Browsing With Your Own EC2 Proxy Server

One of the things that has blown up in the past few years is Cloud computing, and specifically Amazon Web Services. One of the other things that has blown up has been the invasion of privacy, particularly with regards to the Internet. So here's how you can send a big "fuck you" to any peeping tom governments, corporations, or individuals.

The post will take you through the process of setting up a stateless proxy server on Amazon's Elastic Compute Cloud (EC2) and show you how to tunnel into it via SSH from your home PC. All in 6 easy steps.

Sunday, May 16, 2010

I'm Back, Motherfuckers...

How ironic that my last post was about making the switch to Linux... and then I dropped off the face of the earth for 3 years. Well a lot has gone down since then, but no point in boring you with the details.

So I'm back with the hacks that don't make me stacks, but I don't share what I know to try and make some dough... peas.