A Pen by Mauricio Allende on CodePen.
A curated list of awesome Go storage projects and libraries
- Negroni: Web middleware in Go.
- Martini: Package for quickly writing modular web applications/services in Golang. Sinatra for Go.
- Gorilla Mux: URL router and dispatcher for Go.
Panamax - Docker Management for Humans
An open-source project that makes deploying complex containerized apps as easy as drag-and-drop.
Join me in discovering Panamax, and find out how its functionality will enhance your use of Docker and simplify common pain points. Docker is good, but Panamax makes it awesome. I will introduce Panamax, and take you on a journey where we will create containerized applications, and then share the applications with our friends. I will also touch upon the basic architecture and underpinnings of Panamax. Panamax is open-source, so you can also learn how to contribute and stay involved as new features are added.
Learn more at http://panamax.io and view this nice video: http://ow.ly/AJVxd
def sanitize_name(bad_name) | |
# Allow only chars - A-z, 0-9, ., -, _ in names | |
bad_name.gsub(/[^0-9A-z.-]|[\^]|[\`]|[\[]|[\]]/, '_') | |
end |
#start mongodb | |
mongod run --config /usr/local/Cellar/mongodb/1.4.3-x86_64/mongod.conf | |
#launch mongodb automatically on logon | |
launchctl load -w ~/Library/LaunchAgents/org.mongodb.mongod.plist |
Vim | |
Fugitive.vim - git commit from inside vim | |
Hitch | |
Nerdtree.vim - project folders | |
surround.vim - | |
unimpaired.vim - bracket shortcuts | |
Vimperator - vim in FF browser | |
Vimium - vim in Chrome browser | |
afterimage.vim - edit pngs in vim |
Template I am trying to use: | |
https://github.com/rupakg/heat-hpcloud/blob/master/templates/simple_single_instance_only.template | |
Call I am making: | |
heat -d stack-create teststack \ | |
-f ~/heat-hpcloud/templates/simple_single_instance_only.template \ | |
-P "InstanceType=standard.large;KeyName=heat_key;ImageId=U1204-HeatCfn" |
require 'rubygems' | |
require 'hashie' | |
require 'httparty' | |
require 'json' | |
#require 'punchtab/auth' | |
BASE_API_URL = 'https://api.punchtab.com/v1' | |
module Punchtab |
#!/bin/sh | |
# create a list of all gems or grep | |
gem file > u.txt | |
# edit u.txt and remove gems you dont want to uninstall | |
for u in `cat u.txt`; do echo $u; done | cut -d" " -f1 | xargs gem uninstall -aIx |
Ruby 1.9 Walkthru Notes | |
(http://dev-logger.blogspot.co.uk/2011/11/ruby-19-walkthrough-by-peter-cooper.html) | |
Strings | |
- Parse lines in a String object with #each_line or #lines, instead of #each | |
- String#ord returns the UTF-8 index | |
- "x".ord is the new way of doing ?x | |
- ?a == "a" (and no more "97") | |
- "A".ord == 65, "ABC".ord == 65 |