Skip to content

Instantly share code, notes, and snippets.

View juancho088's full-sized avatar

Juan Urrego juancho088

View GitHub Profile
@juancho088
juancho088 / article_software_estimation_table1.csv
Last active January 13, 2018 11:06
Medium Software Estimation Article table 1
SP Raw Contingency Buffer (15%) SP Total
520 78 598
@juancho088
juancho088 / article_software_estimation_table2.csv
Last active January 13, 2018 10:40
Medium Software Estimation Article table 2
Team SPa Team SPm Team SPb Team Stuzke
20 16 6 13.33
@juancho088
juancho088 / article_software_estimation_table3.csv
Last active January 13, 2018 11:08
Medium Software Estimation Article table 3
Sprint # (Total SP /Stuzke value) Weeks # (Sprint * Sprint Duration) Years # (Weeks / Working weeks)
44.86 89.72 1.79
@juancho088
juancho088 / codedeploy-to-slack.js
Last active February 23, 2018 10:32 — forked from teeli/codedeploy-to-slack.js
CodeDeploy notifications to Slack (AWS Lambda via SNS)
var https = require('https');
var util = require('util');
// Based on https://gist.github.com/teeli/29a0e79397fa5560e1819b80025981af
function formatTitle(key) {
return key.replace(/([A-Z])/g, ' $1')
.replace(/^./, function (str) {
return str.toUpperCase();
});
@juancho088
juancho088 / create_project.sh
Last active March 12, 2018 11:37
using-kotlin-serverless-1a
serverless create —-template aws-kotlin-jvm-gradle --path your_service
@juancho088
juancho088 / serverless.yml
Created March 12, 2018 11:39
using-kotlin-serverless-1b
provider:
name: aws
runtime: java8
# You can overwrite defaults here
stage: dev # Use dev, stag, prod, etc
region: eu-west-1 # Your preference region, in my case Ireland
memorySize: 1472 # It has worked for me
@juancho088
juancho088 / eventMovieGET.json
Created March 13, 2018 06:54
using-kotlin-serverless-2a
{
"resource": "/movies/{id}",
"path": "/movies",
"httpMethod": "GET",
"headers": {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-GB,en-US;q=0.8,en;q=0.6,zh-CN;q=0.4",
"cache-control": "max-age=0",
"CloudFront-Forwarded-Proto": "https",
@juancho088
juancho088 / eventtHelloGET.json
Created March 13, 2018 07:03
Hello Event JSON example for Serverless
{
"resource": "/hello",
"path": "/hello",
"httpMethod": "GET",
"headers": {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-GB,en-US;q=0.8,en;q=0.6,zh-CN;q=0.4",
"cache-control": "max-age=0",
"CloudFront-Forwarded-Proto": "https",
@juancho088
juancho088 / my-hello-package.json
Created March 13, 2018 07:19
Example Package.json file with scripts to run events
{
"name": "my-hello",
"version": "1.0.0",
"scripts": {
"getHelloEvent": "gradle build shadowJar -x test; sam local invoke Hello -e src/test/resources/eventHelloGET.json"
},
@juancho088
juancho088 / localstack.json
Created April 1, 2018 17:03
Using Kotlin with Serverless localstack JSON
{
"APIGateway": "http://localhost:4567",
"CloudFormation": "http://localhost:4581",
"CloudWatch":"http://localhost:4582",
"DynamoDB": "http://localhost:4569",
"DynamoDBStreams": "http://localhost:4570",
"ES": "http://localhost:4571",
"Firehose": "http://localhost:4573",
"Kinesis": "http://localhost:4568",
"Lambda": "http://localhost:4574",