This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
dynamodb = boto3.resource('dynamodb') | |
table = dynamodb.Table("users") | |
response = table.get_item() | |
response = table.get_item(Key={ | |
'user_id': 'REDACTED', | |
'user_name': 'John' | |
}) | |
for k in response['Item'].keys(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# This script pings a site specified in the command line and | |
# turns the LED on if the site is on. It should be run as root because | |
# it uses sockets in the ping implementation below. | |
# | |
# Code for ping below is borrowed from https://gist.github.com/pyos/10980172 | |
# | |
import time | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: naming sequence | |
connection: local | |
hosts: localhost | |
vars: | |
- names: ['cs','cs','cs','cs','cs',] | |
- numbers: [] | |
- n_instances: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Shell script that configures gnome-terminal to use solarized theme | |
# colors. Written for Ubuntu 11.10, untested on anything else. | |
# | |
# Solarized theme: http://ethanschoonover.com/solarized | |
# | |
# Adapted from these sources: | |
# https://gist.github.com/1280177 | |
# http://xorcode.com/guides/solarized-vim-eclipse-ubuntu/ |
NewerOlder