Splat Balls!!!!! « Duffy

A weird blog, but so are you for reading this.


config file

$ /etc/nginx/nginx.conf


other config files are in:


Larry Page

"high correlation between speed and good decisions...There are good fast decisions but no good slow decisions"

via: http://twitter.com/timoreilly/statuses/118817305684742145

more context:
"“There are basically no companies that have good slow decisions,” Mr. Page said in a rare public appearance at Google’s Zeitgeist conference in Paradise Valley, Ariz. “There are only companies that have good fast decisions. As companies get bigger, they slow down decision making, and that’s a big problem.”"
via: http://bits.blogs.nytimes.com/2011/09/27/googles-biggest-threat-is-google/?smid=tw-nytimesbits&seid=nickbilton
via: http://twitter.com/timoreilly/statuses/118841534857752576

Mae West

"You only live once, but if you do it right, once is enough."

via: http://twitter.com/danmartell/statuses/110116925148893186

Louis CK

I don't really remember what it was like before. Whatever I had going on, it was bull****. It wasn't important. It's kind of a nice thing about being a dad. My identity is really about them now, and what I can do for them, so it sort of takes the pressure off of your own life. What am I going to do, who am I? Who cares, you've got to get your kids to school. So I like it that way.


getting the first key of an array

I always have the problem with having an array that only has one key, and I want that key and the value, I used to use something like: foreach($arr as $key => $val){ $this->key = $key; $this->val = $val; } which is dumb, here is a much better way:

$arr = array('some_key_with_meaning' => 1);
$key = key($arr);
$val = $arr[$key];

to get the last key and value:
$key = key($arr);
$val = $arr[$key];

full path of a file

ok how about this one?