Skip to content

Instantly share code, notes, and snippets.

View diegopacheco's full-sized avatar

Diego Pacheco diegopacheco

View GitHub Profile
@diegopacheco
diegopacheco / docker.md
Last active December 28, 2016 16:11
Docker CheatSheet

Build docker image from dockerfile

docker build -t user/container .

Run Container in background and bind all ports

docker run -d -P -t user/container

SSH tunnel using putty

In the menu go to Connection -> SSH -> Tunnels

  • Select Dynamic below destination
  • Put 1024 as source port
  • Click on Add

Login.

Firefox config

@diegopacheco
diegopacheco / java.md
Last active May 21, 2018 23:52
How to Install ORACLE JDK 8 on Amazon Linux OS / CentOS?

Download and install Java JDK 8

# Remove java 7
sudo yum remove -y java

# Install basic packages
sudo yum install -y git

# Download and install java 8
@diegopacheco
diegopacheco / videos.md
Last active August 31, 2016 17:04
InfoQ Videos
@diegopacheco
diegopacheco / github-cheatsheet.md
Last active May 20, 2022 15:18
Git/GitHub CheatSheet

1 - How to Create a Branch in Git/GitHub and PUSH it REMOTE?

git checkout -b [name_of_your_new_branch]
git push origin [name_of_your_new_branch]
git branch

2 - How to CLONE a remote branch in GitHub?

@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
@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 / 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
@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

@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.