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.
#!/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 |
require 'rubygems' | |
require 'hashie' | |
require 'httparty' | |
require 'json' | |
#require 'punchtab/auth' | |
BASE_API_URL = 'https://api.punchtab.com/v1' | |
module Punchtab |
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" |
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 |
#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 |
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos | |
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423 | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up | |
# (if you're backing up a user's repos instead, this should be your GitHub username) | |
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API) |
# This marathon.json deploys cadvisor to each node and exposes it on port 3002. | |
cadvisor/marathon.json | |
{ | |
"id": "cadvisor", | |
"cpus": 0.1, | |
"mem": 100, | |
"disk": 0, | |
"instances": 8, // equal to number of agent nodes you have | |
"constraints": [["hostname", "UNIQUE"]], |
A curated list of awesome Go storage projects and libraries
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
Learn how to write an event-driven serverless application with full local development experience using the Serverless Application Platform.
Published on Sept. 12th, 2017 at https://serverless.com/blog/event-driven-serverless-app-local-dev-exp/
In my previous post on Anatomy of a Serverless Application, I lay the foundation for building a very simple application with an email service using the Serverless Framework, deployed to AWS Lambda.
In this post, we will build mailman
, an event-driven serverless application. The application has a simple frontend using curl
that calls into a couple of backend services: a users service and an email service. The post will highlight event-driven application development with focus on full local development experience. We will