Skip to content

Instantly share code, notes, and snippets.

View mattkirman's full-sized avatar

Matt Kirman mattkirman

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mattkirman on github.
  • I am mattkirman (https://keybase.io/mattkirman) on keybase.
  • I have a public key whose fingerprint is 65CD 4563 D603 631B B04B 62CB DF5B CC33 4862 EF83

To claim this, I am signing this object:

@mattkirman
mattkirman / gist:1345986
Created November 7, 2011 20:00
Nginx SSL config
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;
ssl_session_timeout 5m;
@mattkirman
mattkirman / Twitter MacHeist Preferences
Created January 6, 2011 21:23
The super secret MacHeist preferences for Twitter for Mac (Tweetie 2)
defaults write com.twitter.twitter-mac UserTimelineDerepeater -bool true
defaults write com.twitter.twitter-mac ScrollingMakesKeyAndOrdersFront -bool true
defaults write com.twitter.twitter-mac TypeAnywhereToTweet -bool true
defaults write com.twitter.twitter-mac HideInBackground -bool true
defaults write com.twitter.twitter-mac NormalComposeWindowLevel -bool false
defaults write com.twitter.twitter-mac ESCClosesComposeWindow -bool true
@mattkirman
mattkirman / gist:610415
Created October 4, 2010 20:56
PHP string concatenation benchmarks. Run on a MacBook (2.4GHz Core 2 Duo, 2GB RAM) with PHP 5.3.2 (cli)
<?php
$str = '';
for ($i = 0; $i < 30000; $i++) {
$str .= 'String concatenation. ';
}
/*****************************************
0.061
0.057
0.063