Skip to content

Instantly share code, notes, and snippets.

#import "classname.h"
@interface classname ()
@end
@implementation classname
+(classname *)instance {
static dispatch_once_t onetime;
@olibob
olibob / docker_install.sh
Last active August 29, 2015 14:08
Docker binary install
#!/usr/bin/bash
# Install latest docker binary
cd /tmp
wget -c http://get.docker.io/builds/Linux/x86_64/docker-latest.tgz
tar xzf /tmp/docker-latest.tgz -C /
# Install docker service
# Download the required files from https://github.com/docker/docker/tree/master/contrib/init/systemd to your Vagrant directory
@olibob
olibob / jenkins-workflow.groovy
Created November 19, 2015 17:59 — forked from cyrille-leclerc/jenkins-workflow.groovy
Jenkins Docker Workflow - Deploy Game Of Life to Amazon EC2 Container Service / ECS
docker.withRegistry('', 'dockerhub-credentials-cleclerc') {
writeFile file: "${pwd()}/.m2/settings.xml", text: "<settings><localRepository>${pwd()}/.m2/repo</localRepository></settings>"
stage 'Build Web App'
docker.image('cloudbees/java-build-tools:0.0.5').inside {
git 'https://github.com/cyrille-leclerc/game-of-life.git'
sh "mvn -B -V -s ${pwd()}/.m2/settings.xml clean package"
}
import boto3
import json
import os, glob, sys
# Helpers
def jDump(dict):
return json.dumps(dict, sort_keys = True, indent = 4)
def printInfo(info, dict):
import boto3
import json
import decimal
from boto3.dynamodb.conditions import Key, Attr
from botocore.exceptions import ClientError
# Helper class to convert a DynamoDB item to JSON.
class DecimalEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, decimal.Decimal):
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Collecting jumpcloud_aws from git+git://github.com/synaptic-cl/[email protected]#egg=jumpcloud_aws
Cloning git://github.com/synaptic-cl/jumpcloud_aws.git (to revision v0.1.5) to /private/var/folders/vl/np67j_tj6xj4y9mrsd1m19cw0000gn/T/pip-install-8ek5ceo0/jumpcloud-aws
Requirement already satisfied: beautifulsoup4==4.5.3 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (4.5.3)
Requirement already satisfied: boto3==1.7.22 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (1.7.22)
Requirement already satisfied: bs4==0.0.1 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (0.0.1)
Requirement already satisfied: requests==2.13.0 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (2.13.0)
Requirement already satisfied: six==1.10.0 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (1.10.0)
Requirement already satisfied: click==6.7 in ./env/lib/python3.7/site-packages (from jumpcloud_aws) (6.7)
Collecting PyYAML==3.12 (from jumpcloud_aws)
Using cached https://files.p