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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>Sample jQuery Plugin</title> | |
| </head> <body> | |
| <input type="text"/> | |
| <ul> | |
| <li>abc</li> <li>def</li> | |
| <li>jquery</li> |
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
| import site | |
| from os import environ | |
| from os.path import join | |
| from sys import version_info | |
| if "VIRTUAL_ENV" in environ: | |
| virtual_env = join(environ.get('VIRTUAL_ENV'), | |
| 'lib', | |
| 'python%d.%d' % version_info[:2], | |
| 'site-packages') |
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
| import botocore.session | |
| session = botocore.session.get_session() | |
| ec2 = session.get_service('ec2') | |
| op = ec2.get_operation('RegisterImage') | |
| ep = ec2.get_endpoint('us-east-1') | |
| bd = [{"device_name":"/dev/sda", "ebs":{ "snapshot_id":"snap-XXXXXXX", "volume_size":10}}] | |
| op.call( | |
| ep, |
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
| def get_aki(region, architecture="x86_64", partitioned=True): | |
| import botocore.session | |
| session = botocore.session.get_session() | |
| ec2 = session.get_service('ec2') | |
| op = ec2.get_operation('DescribeImages') | |
| code, data = op.call( | |
| ec2.get_endpoint(region), | |
| filters=[ | |
| {"name":"owner-alias", "values":["amazon"]}, | |
| {"name":"image-type", "values":["kernel"]}, |
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
| aws autoscaling put-scheduled-update-group-action --auto-scaling-group-name GroupName --recurrence '17 1 * * *' --max-size 5 --scheduled-action-name "Wakeup" |
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
| ## built-in TCP input | |
| ## $ echo <json> | fluent-cat <tag> | |
| <source> | |
| type forward | |
| </source> | |
| # HTTP input | |
| # http://localhost:8888/<tag>?json=<json> | |
| <source> | |
| type http |
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
| import botocore.session | |
| s = botocore.session.get_session() | |
| support = s.get_service('support') | |
| ep = support.get_endpoint('ap-northeast-1') | |
| op = support.get_operation('DescribeCases') | |
| code, data = op.call(ep, includeResolvedCases=True, maxResults=100, language='ja') |
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
| import botocore.session | |
| s = botocore.session.get_session() | |
| support = s.get_service('support') | |
| ep = support.get_endpoint('ap-northeast-1') | |
| op = support.get_operation('DescribeCases') | |
| code, data = op.call(ep, includeResolvedCases=True, maxResults=100, language='ja') |
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
| import botocore.session | |
| s = botocore.session.get_session() | |
| support = s.get_service('support') | |
| ep = support.get_endpoint('ap-northeast-1') | |
| op = support.get_operation('DescribeCases') | |
| code, data = op.call(ep, includeResolvedCases=True, maxResults=100, language='ja') |
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
| socat - UNIX-CONNECT:/var/run/rrdcached.sock |