Skip to content

Instantly share code, notes, and snippets.

Collecting jumpcloud_aws from git+git://github.com/synaptic-cl/jumpcloud_aws.git@v0.1.5#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
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
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):
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):
@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"
}
@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
#import "classname.h"
@interface classname ()
@end
@implementation classname
+(classname *)instance {
static dispatch_once_t onetime;
@olibob
olibob / hidpi.txt
Created December 7, 2013 19:39 — forked from simX/hidpi.txt
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES;
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled;
// by the way, you need to logout and log back in for this to take effect. Or at least that's what
// Quartz Debug says. Who knows, maybe it's lying?
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from.
@olibob
olibob / new_gist_file
Created August 10, 2013 18:00
Archlinux Logitech MX Revolution speed profile
Find device:
[bob@arch ScreenShots]$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech Logitech Illuminated Keyboard id=13 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=16 [slave pointer (2)]
⎜ ↳ Logitech Unifying Device. Wireless PID:101a id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
@olibob
olibob / xmobarrc
Created August 10, 2013 11:47
xmobar config
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
, bgColor = "black"
, fgColor = "grey"
, position = TopW L 98
, commands = [ Run Uptime ["-t", "Up: <days>d <hours>h"] 36000
, Run Cpu ["-L","5","-H","50","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Swap [] 10
, Run Date "%a %b %_d %l:%M" "date" 10
, Run StdinReader