This file contains hidden or 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
# The IAM User guide is in a GH repo now, clone that. | |
git clone [email protected]:awsdocs/iam-user-guide.git | |
# get into the directory where the files are located | |
cd iam-user-guide/doc_source/ | |
# The permissions pages begin with list_*.md | |
# Read those puppies | |
grep 'service prefix:' list_*md | while read rline; do | |
FILEN=`echo ${rline} | awk -F: {'print $1'}` |
This file contains hidden or 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
# read cloudtrail things dropped off at s3, put them in ES | |
service: cloudtrailindexer | |
provider: | |
name: aws | |
runtime: python2.7 | |
# you can overwrite defaults here | |
# stage: dev | |
region: us-west-2 |
This file contains hidden or 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 | |
# | |
import twitter | |
from pymarkovchain import MarkovChain | |
from pprint import pprint | |
TW_CONSUMER_KEY='xxx' | |
TW_CONSUMER_SECRET='yyy' | |
TW_ACCESS_TOKEN='aaa' |
This file contains hidden or 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
from twitter import * | |
from pymarkovchain import MarkovChain | |
t = Twitter(auth=OAuth('x', 'y', 'zz', 'y')) | |
# count=1000, but they only come back 100 at a time. | |
# search on devops with a sad sentiment | |
res = t.search.tweets(q="devops%20%3F",count=1000) | |
for stat in res['statuses']: | |
mc.generateDatabase(stat['text'], sentenceSep='\n', n=2) |
This file contains hidden or 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
<appender name="SYSLOG" class="org.apache.log4j.net.SocketAppender"> | |
<param name="Port" value="5555"/> | |
<param name="RemoteHost" value="your-logstash-forwarder.hostname" | |
<param name="ReconnectionDelay" value="5000"/> | |
<layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ISO8601} ORIGIN_HOSTNAME %t[%x]:%m %n"/> | |
</layout> | |
</appender> |
This file contains hidden or 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
Process: ControlPlane [27822] | |
Path: /Applications/ControlPlane.app/Contents/MacOS/ControlPlane | |
Identifier: com.dustinrue.ControlPlane | |
Version: 1.3.14 (47) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [181] | |
Date/Time: 2013-04-24 19:23:16.848 -0500 | |
OS Version: Mac OS X 10.7.5 (11G63) | |
Report Version: 9 |