Skip to content

Instantly share code, notes, and snippets.

View smiller171's full-sized avatar

Scott Miller smiller171

View GitHub Profile

route53_auto-update

Automatically update a route53 entry at init.

To make these scripts work for you you need to make a few edits:

  • First, Add your Hosted_Zone ID in dyndns_route53.py
  • Then enter the domain name that you want kept up-to-date
<link rel="import" href="../notification-elements/notification-alert.html">
<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-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<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">
<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="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_card {
position: absolute;
width: 300px;
height: 300px;
#!/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.
@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]
@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 / 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 / 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')