import sys | |
def j(lineno): | |
frame = sys._getframe().f_back | |
called_from = frame | |
def hook(frame, event, arg): | |
if event == 'line' and frame == called_from: | |
try: | |
frame.f_lineno = lineno |
twitter/hadoop-lzo | |
twitter/scribe | |
twitter/thrift_client | |
twitter/twurl | |
twitter/elephant-bird | |
twitter/standard-project | |
twitter/snowflake | |
twitter/spitball | |
twitter/ostrich | |
twitter/scala_school |
#!/usr/bin/env python | |
import boto3 | |
import argparse | |
def lookup_by_id(sgid): | |
sg = ec2.get_all_security_groups(group_ids=sgid) | |
return sg[0].name | |
import boto3 | |
required_keys = [ "key01", "key02", "key03", "key04" ] | |
ses_source = '[email protected]' | |
ses_destination = ['[email protected]'] | |
def lambda_handler(event, context): | |
if 'detail' in event and 'instance-id' in event['detail']: | |
ec2_instance_id = event['detail']['instance-id'] |
Also known as the User Story. Explain the requirement in a sentence or two. This should just enough text to identify the requirement, including any crucial information about site/environment.
As a [user role], I want [function], so that [value].
If this doesn't fit as a user story (e.g., a bug ticket), that's fine, just explain it as a concise sentence.
(originally from my proposal on moby/moby#17142 (comment) but generic)
The profile would generate artificats of an apparmor profile and seccomp filters.
Obviously doesn't have to be toml since that's super hipster :p
Assumptions
- no one is going to sit and write out all the syscalls/capabilities their app needs
- automatic profiling would be super cool but like
aa-genprof
it is never
{ | |
"options": { | |
"limit": [] | |
}, | |
"templates": { | |
"BUG TEMPLATE": { | |
"issuetype-field": "Bug", | |
"text": "h4. Summary:\n<TI>Enter summary of the problem here.</TI>\n\nh4. Environment:\n<TI>provide as much as possible from the following: instance : platform : device : os : resolution</TI>\n\nh4. Steps to Reproduce:\n<TI>Enter detailed steps to reproduce here. More detail is better.</TI>\n\nh4. Actual Behaviour:\n<TI>Screenshot. Enter what should happen here.</TI>\n\nh4. Expected Behaviour:\n<TI>Enter what should happen here.</TI>\n\nh4. Additional Notes:\n<TI>Enter any other details such as examples, links to requirements, JIRA issue etc. Any criteria that might help with fixing the problem. More detail is better.</TI>\n" | |
}, | |
"DEFAULT TEMPLATE": { |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import argparse, sys, boto3 | |
from colorama import Fore, Style | |
def count(my_list, my_key): | |
if my_key not in my_list: | |
return '0' | |
else: |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/