Skip to content

Instantly share code, notes, and snippets.

View lelledaniele's full-sized avatar
🍃

Daniele Rostellato lelledaniele

🍃
View GitHub Profile
@lelledaniele
lelledaniele / docker.md
Last active February 9, 2020 16:03
docker course udemy
@lelledaniele
lelledaniele / left-right-shift.md
Last active December 5, 2019 14:23
left right shift

Left Shift

Multiply x per 2, 4, 6, 8, ...

8<<1 = 8 * 2 = 16
8 in binary is 0001

position: 24 23 22 21 20
binary: 0 1 0 0 0 = 23 = 8
@lelledaniele
lelledaniele / fizzbuzz.md
Created August 2, 2019 11:26
fizzbuzz test go

Problem

Print every number between 1 and 100, However for numbers that are multiples of 3 print "Fizz" and for numbers that are multiples of five print "Buzz". For numbers that are multiples of both 3 and 5 print "FizzBuzz".

@lelledaniele
lelledaniele / scrum.md
Created July 30, 2019 12:15
agile scrum scrummaster course sm po product owner dev team

Notes from my Scrum Master Course

The Scrum Framework

  • Stakeholders
  • Customers/Users
  • Scrum Master
  • Dev Team
  • Product Owner
@lelledaniele
lelledaniele / cassandra.md
Last active January 23, 2023 01:57
cassandra workshop

When to use Cassandra

  • When we need a database in more than one node
  • Huge data
  • Data replication
  • High Availability and Partitioning. Custom consistency level. CAP_theorem

Features

  • We can have the recent version of your data in every node/cluster
@lelledaniele
lelledaniele / pushalias.md
Created November 27, 2018 20:13
git local hook push alias qateam qa

Problem

QA team need to sync multiple folder with same codebase

Solution

  • vi ~/.bashrc
  • Append the following code (change the project folder)
alias qapush='projectDir=$PWD; branch=$(git branch | sed -n -e '\''s/^\* \(.*\)/\1/p'\''); git push origin $branch; cd ~/PROJECT_FOLDER_TO_SYNC; git fetch origin; git pull origin $branch; cd $projectDir;'
@lelledaniele
lelledaniele / ddd.md
Created October 27, 2018 10:55
DDD ddd

Rules

  • The view should not receive the entity but a DTO (Data Transfer Object)
    • To create a DTO use a DTOBuilder to validate the inputs

Separation of concerns

DIP - Dependency inversion principle

Hexagonal architecture (ports and adapters)

@lelledaniele
lelledaniele / golang.md
Last active August 2, 2019 11:42
golang go

Why GO?

  • Go compiles quickly
  • Go supports concurrency out of the box
  • Functions are first-class in GO
  • Go supports garbage collection out of the box
    • It is active only for the heap memory (blobal).
    • It is not active for the stack memory (Goroutines).
  • Go has Strings and Maps built-in
@lelledaniele
lelledaniele / 1.README.md
Last active December 6, 2019 23:15
symfony sonata audit createdAt updatedAt
@lelledaniele
lelledaniele / htaccess.md
Created May 18, 2017 20:10
htaccess apache conf apacheconf mod rewrite

.htaccess

PHP files in upload folder

This htaccess prevent the execution of PHP files

<Files *.php>
    deny from all