Skip to content

Instantly share code, notes, and snippets.

View smiller171's full-sized avatar

Scott Miller smiller171

View GitHub Profile
@smiller171
smiller171 / godeps-full.sh
Last active June 12, 2017 17:27
List all go dependencies that are not in the standard library
go list -f '{{join .Deps "\n"}}' | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
@smiller171
smiller171 / main.go
Last active March 10, 2016 21:33
mongodump to s3
package main
import (
"fmt"
"io"
"log"
"os/exec"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
@smiller171
smiller171 / shutdown.py
Created February 16, 2016 18:26
Nightly EC2 shutdown
import boto3
import logging
#setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
#define the connection
ec2 = boto3.resource('ec2')
@smiller171
smiller171 / dockerInfo
Last active November 18, 2015 16:31
docker io timeout
11:24:53 + docker info
11:24:55 Containers: 0
11:24:55 Images: 29
11:24:55 Server Version: 1.9.0
11:24:55 Storage Driver: aufs
11:24:55 Root Dir: /var/lib/docker/aufs
11:24:55 Backing Filesystem: extfs
11:24:55 Dirs: 29
11:24:55 Dirperm1 Supported: false
11:24:55 Execution Driver: native-0.2
@smiller171
smiller171 / ec2.ini
Last active September 16, 2015 21:26
My Ansible EC2 config
# Ansible EC2 external inventory script settings
#
[ec2]
# AWS regions to make calls to. Set this to 'all' to make request to all regions
# in AWS and merge the results together. Alternatively, set this to a comma
# separated list of regions. E.g. 'us-east-1,us-west-1,us-west-2'
regions = us-east-1
regions_exclude = us-gov-west-1,cn-north-1
@smiller171
smiller171 / .ansible.cfg
Last active September 16, 2015 20:06 — forked from anonymous/.ansible.cfg
My Ansible Config
# config file for ansible -- http://ansible.com/
# ==============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]
#!/usr/bin/env python2
# blackwidow_enable.py
#
# Enables the M1-5 and FN keys to send scancodes on the Razer BlackWidow
# and BlackWidow Ultimate keyboards.
#
# You can use 'xev' and 'xbindkeys' to assign actions to the macro keys.
#
# Requires the PyUSB library.
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_card {
position: absolute;
width: 300px;
height: 300px;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">