Skip to content

Instantly share code, notes, and snippets.

View alfonso-cabrera's full-sized avatar

Alfonso Cabrera alfonso-cabrera

View GitHub Profile
@alfonso-cabrera
alfonso-cabrera / test.py
Last active June 21, 2017 10:54
lambda
print('Starting function!')
def my_handler(event, context):
print("Log group name:", context.log_group_name)
print("Request ID:", context.aws_request_id)
print("Mem. limits(MB):", context.memory_limit_in_mb)
print("Time remaining (MS):", context.get_remaining_time_in_millis())
message = 'Hello {} {}!'.format(event['first_name'],
@alfonso-cabrera
alfonso-cabrera / README.md
Last active October 20, 2016 19:14 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::accountNumber:user/username0",
"arn:aws:iam::accountNumber:user/username1"
@alfonso-cabrera
alfonso-cabrera / latency.markdown
Created November 20, 2015 15:48 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@alfonso-cabrera
alfonso-cabrera / gist:aaff73e648831709e769
Created June 11, 2015 19:04
Notes from DevOpsDays DC open space on burnout/stress
Topic: Stress and Burnout
Facilitator: John Willis
Scribe: Alfonso Cabrera
CAPTURE DISCUSSION NOTES, IDEAS, AND ACTION ITEMS HERE.
John Willis wrote article on IT Revolution regarding person in industry who committed suicide and burnout. People think they have to work so hard and be bulletproof which stems from culture in Silicon Valley.