Small primer in using SQLAlchemy & Alembic with a MySQL backend.
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 | |
# NOTE: | |
# Make sure that the value of Name, Type, TTL are the same with your DNS Record Set | |
HOSTED_ZONE_ID=<YOUR_HOSTED_ZONE_ID> | |
RESOURCE_VALUE=<YOUR_DNS_RESOURCE_VALUE-ex:IP or dns> | |
DNS_NAME=<YOUR_DNS_NAME-ex: subdomain.domain.com> | |
RECORD_TYPE=<DNS_RECORD_TYPE-ex: A, CNAME> | |
TTL=<TTL_VALUE> |
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 python | |
""" | |
EC2 Instance Killer | |
Usage: | |
ec2_kill_with_fire.py [options] <instance_id>... | |
Options: | |
-h, --help Show this dialog | |
-r, --region NAME EC2 region [default: us-east-1] |
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
# module list (generated by listmodules.py) | |
# | |
# timestamp='20160226T200954Z' | |
# sys.version='2.7.10 (default, Dec 8 2015, 18:25:23) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]' | |
# sys.platform='linux2' | |
# platform='Linux-4.1.13-19.31.amzn1.x86_64-x86_64-with-glibc2.2.5' | |
# | |
BaseHTTPServer | |
Bastion | |
CDROM |
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/bash | |
DEFAULT_SCALE=4 | |
getMicrotime () | |
{ | |
date +%s%N | |
} | |
microElapse () |
Product Link: [NewEggBusiness.com] SAMSUNG 250GB USB 3.0 Portable SSD T1
Before anyone asks "What’s wrong with the Samsung product":
Here is what gparted sees
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/bash | |
find_all_groups () | |
{ | |
aws ec2 describe-security-groups \ | |
--query 'SecurityGroups[*].GroupId' \ | |
--output text \ | |
| tr '\t' '\n' \ | |
| sort -u | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
How to create a publicly-accessible SNS topic that sends messages when objects are added to a public Amazon S3 bucket.
In this case, that's an S3 bucket that is continually updated by the addition of new sensor data. For the purposes of this tutorial, we’ll use s3://noaa-nexrad-level2 – one of our NEXRAD on AWS buckets – as an example.
The SNS topic should be in the same region as the bucket. It will need to have a policy that allows our S3 bucket to publish to it, and anyone to subscribe to it using Lambda or SQS.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.