Skip to content

Instantly share code, notes, and snippets.

View xpepper's full-sized avatar
💭
😏

Pietro Di Bello xpepper

💭
😏
View GitHub Profile
@xpepper
xpepper / deploy.rb
Created January 9, 2014 23:08 — forked from mm53bar/deploy.rb
require File.join(File.dirname(__FILE__), 'deploy/nginx')
require File.join(File.dirname(__FILE__), 'deploy/log')
default_run_options[:pty] = true
set :ssh_options, { :forward_agent => true }
set :application, "appname"
set :repository, "git@giturl"
set :scm, :git
@xpepper
xpepper / README.md
Created November 22, 2016 21:01 — 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:

node {
// https://registry.hub.docker.com/_/maven/
def maven32 = docker.image('maven:3.2-jdk-7-onbuild');
stage 'Mirror'
// First make sure the slave has this image.
// (If you could set your registry below to mirror Docker Hub,
// this would be unnecessary as maven32.inside would pull the image.)
maven32.pull()
// We are pushing to a private secure docker registry in this demo.
@xpepper
xpepper / Study Path on Microservices.md
Last active April 25, 2019 17:25 — forked from pdincau/readme.md
Study Path on Microservices
@xpepper
xpepper / Bank account kata (Sandro Mancuso).md
Last active April 25, 2019 17:26 — forked from abachar/kata.md
The Bank Account code kata (inspired by Sandro Mancuso)

Bank account kata

Think of your personal bank account experience When in doubt, go for the simplest solution

Requirements

  • Deposit and Withdrawal
  • Account statement (date, amount, balance)
  • Statement printing

User Stories

Deposit:
@xpepper
xpepper / tdd-thoughts-by-dave-schinkel.md
Last active April 25, 2019 17:27 — forked from dschinkel/tdd-thoughts-by-dave-schinkel.txt
What Does TDD Give Me in terms of a Design Activity?

TDD

Tests and the Red | Green | Blue cycle put pressure on your design all the time as you code. Your design decisions are guided by that pressure.

As Corey Haines once stated: "It's like having a little buddy as you code, helping you along, pointing things out such as when your design sucks, when you've broken something, etc."

  • forces you to only create enough code to make a test pass (you’re keeping lean all the time)
  • you won’t be able to write the next test if you have code that’s too coupled
  • you’ll know immediately when you’ve broken behavior. This is different than test after.
@xpepper
xpepper / service-checklist.md
Created January 13, 2017 23:21 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@xpepper
xpepper / Learning Object Oriented Python.md
Last active April 25, 2019 17:30 — forked from briankung/Learning Object Oriented Python.md
Learning Object Oriented Python

Learning Object Oriented Python

I wrote this as a guide for a financial analyst friend of mine looking to learn Python. He is already fairly well versed in doing Project Euler problems in Ruby. All italicized text is for the benefit of any other readers, such as yourself.

Each section is divided into a short resource (10 minutes or less), a long resource (days to weeks or more), and a challenge.

~

So what you're looking to do is to be able to recreate financial models in code. And other types of models. This is a noble pursuit.