Skip to content

Instantly share code, notes, and snippets.

View diegopacheco's full-sized avatar

Diego Pacheco diegopacheco

View GitHub Profile
@diegopacheco
diegopacheco / FRP.md
Last active August 8, 2017 12:26
Functional Reactive Streams | FRP | Akka | Streams
@diegopacheco
diegopacheco / tuning-linux.sh
Created June 1, 2015 18:07
linux os wire tuning
#!bin/bash
ulimit -n 65536
sudo sysctl -w net.ipv4.ip_local_port_range="1025 65535"
echo 300000 | sudo tee /proc/sys/fs/nr_open
echo 300000 | sudo tee /proc/sys/fs/file-max
@diegopacheco
diegopacheco / remote-branch-push
Created July 30, 2015 18:16
How to PUSH a remote branch in GitHub?
$ git push <REMOTENAME> <BRANCHNAME>
@diegopacheco
diegopacheco / branch-git
Created July 30, 2015 18:24
How to Create a Branch in GitHub?
$ git checkout -b [name_of_your_new_branch]
$ git push origin [name_of_your_new_branch]
$ git branch
@cb372
cb372 / jargon.md
Last active May 14, 2024 03:45
Category theory jargon cheat sheet

Category theory jargon cheat sheet

A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)

I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.

Functor

A functor is something that supports map.

@diegopacheco
diegopacheco / git-sync-fork.md
Last active September 3, 2015 16:43
GitHub: How to Sync a FORK from MASTER to FORK?

$ git remote -v
$ git remote add upstream $HTTPS_URL_GIT_MASTER
$ git remote -v
$ git fetch upstream
$ git checkout master
$ git merge upstream/master

@diegopacheco
diegopacheco / ca-expr.md
Last active January 8, 2020 10:44
Experiencias com a Cultura Americana no Vale do Silicio, California - EUA 2015
  • É muito seguro
  • AS pessoas fazem as coisas certas pq é certo
  • É muito limpo
  • Muitas pessoas vivem nos suburbios
  • Muitos tem 2-3 filhos
  • Cultura de Parques
  • Festas de crianças em parques
  • Self-Service em tudo - até no supermercado - fast checkout
  • ODEIAM esperar - compra Cafe ou pizza online com apenas pick up
  • Meetups
@kod3r
kod3r / The Technical Interview Cheat Sheet.md
Last active August 26, 2015 01:03 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@diegopacheco
diegopacheco / vpc-regions.md
Last active November 10, 2015 22:23
How to configure a VPC site-2-site EC2 with 2 regions on AWS