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
| """ | |
| IAM boto examples: | |
| In this example, we show how to create a group | |
| for administrators who have full access to IAM | |
| functionality but no access to other AWS services. | |
| """ | |
| import boto | |
| # | |
| # First create a connection to the IAM service |
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
| """ | |
| IAM boto examples: | |
| In this example we create a group that provides access | |
| to all EC2 and S3 resources and actions and then add a | |
| user to that group. | |
| """ | |
| import boto | |
| # | |
| # First create a connection to the IAM service |
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 cStringIO | |
| import json | |
| import sys | |
| from pygments import highlight | |
| from pygments.formatters import TerminalFormatter | |
| from pygments.lexers.web import JavascriptLexer |
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
| Bitly tech talk 4/22/2010 | |
| On 4/22 we held a bit.ly tech talk on 'Command Line Fu', where we invited talented hackers to come share their best moves. Please correct my notes and add your fu here! | |
| # jehiah | |
| # in place file regex replacement | |
| perl -pi -e 's/this/that/g' filename_pattern | |
| # print the last column |
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 fabric.api import * | |
| """ | |
| Base configuration | |
| """ | |
| env.project_name = '$(project)' | |
| env.database_password = '$(db_password)' | |
| env.site_media_prefix = "site_media" | |
| env.admin_media_prefix = "admin_media" | |
| env.newsapps_media_prefix = "na_media" |
NewerOlder