Convert Ruby 1.8 to 1.9 hash syntax

thoughtbot:

In vim, for an entire file:

:%s/:\([^ ]*\)\(\s*\)=>/\1:/g

In the shell, for an entire project:

perl -pi -e 's/:([\w\d_]+)(\s*)=>/\1:/g' **/*.rb

Now, instead of those old-school hashes like this:

get '/', :agent => MOBILE_BROWSERS do

You’ll have new-school hashes like this:

get '/', agent: MOBILE_BROWSERS do

I’m sorry this ain’t a tale of advanced persistent threats and stuff, but frankly most compromises I’ve seen have been have been a result of gross stupidity, not incredible technical skill on the part of the attacker. Sorry to disappoint.

(via Hacker Says Texas Town Used Three Character Password To Secure Internet Facing SCADA System)

Yes, that stupid…

(via redteams)

Amateurs hack systems, professionals hack people. — Bruce Schneier (via redteams)

Undisclosed

redteams:

This undisclosed project is being held at an undisclosed building on an undisclosed location.