Skip to content

Instantly share code, notes, and snippets.

View adamkrone's full-sized avatar

Adam Krone adamkrone

  • Thirdwave, LLC
  • Chicago, IL
View GitHub Profile
@adamkrone
adamkrone / fluent2013
Created June 3, 2013 18:09
Fluent 2013 Links
Speaker slides/video:
http://fluentconf.com/fluent2013/public/schedule/proceedings
Flickr:
http://www.flickr.com/photos/oreillyconf/sets/72157633777364533/
Epic Citadel Demo:
http://www.unrealengine.com/html5/
http://www.youtube.com/watch?feature=player_embedded&v=BV32Cs_CMqo
@adamkrone
adamkrone / remove_nodes.sh
Created January 18, 2013 22:56
Removes old vagrant-generated nodes/clients
#!/bin/bash
LASTNAME=""
LASTNODE=""
for node in `knife node list`
do
case `knife node show $node -a chef_environment` in
"chef_environment: vagrant")
@adamkrone
adamkrone / node.rb
Created January 18, 2013 22:54
Vagrant Chef Node Manager
$chefserver = "http://chef.thirdwave.local:4000"
$home = File.expand_path("~")
$user = ENV["USER"]
$time = (Time.now.getutc).to_i
$i = 0
$j = 0
$k = 0
def getNode
box = $boxes[$i]
@adamkrone
adamkrone / no_bounce.m
Created October 17, 2012 18:34
No UIWebView "Bounce"
//Source: http://davidjhinson.wordpress.com/2010/11/13/stop-the-bouncy-uiwebviews/
// Stop the bounces
UIScrollView* sv = nil;
for(UIView* v in myWebView.subviews){
if([v isKindOfClass:[UIScrollView class] ]){
sv = (UIScrollView*) v;
sv.scrollEnabled = YES;
sv.bounces = NO;
}