Skip to content

Instantly share code, notes, and snippets.

View jampasilva's full-sized avatar

Jampa Silva jampasilva

View GitHub Profile
@jampasilva
jampasilva / a-senior-engineers-checklist.txt
Created November 25, 2019 22:47
A Senior Engineer's CheckList
Item #1
. Entenda o lado do negócio da sua empresa, o que faz ela gerar dinheiro. Eventualmente, é a única coisa que importa.
Item #2
. Uma vez que você entender o que a empresa precisa, lidere pelo menos 1 projeto de alto impacto, combinando antes, com clareza, o que seria fazer essa entrega com sucesso.
Item #3
. Se envolva no processo de contratação e mantenha a barra alta na hora de contratar candidatos.
Item #4
<?php
$url = 'https://api.wlvpn.com/v2/customers?api-key=my-api-key';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($ch);
$curl_error = curl_error($ch);
curl_close($ch);
brew cask install virtualbox
system_profiler -detailLevel mini > system_profiler.txt; kextstat | grep -v com.apple >> system_profiler.txt; gzip system_profiler.txt
# Disabled
sudo spctl --master-disable
# Enabled
sudo spctl --master-enable
@jampasilva
jampasilva / Chrome.md
Created September 3, 2019 02:50 — forked from diego3g/Chrome.md
Ambiente DEV

Extensões

  • React Developer Tools
  • Dracula DevTools Theme
{
// Define o tema do VSCode
"workbench.colorTheme": "Dracula",
// Configura tamanho e família da fonte
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
@jampasilva
jampasilva / .zshrc
Created September 3, 2019 02:48 — forked from diego3g/.zshrc
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
exec_time # Execution time
line_sep # Line break
vi_mode # Vi-mode indicator
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
@jampasilva
jampasilva / mysql-docker.sh
Created August 13, 2019 02:54 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
1. Install xcode-selectd
$ sudo xcode-select --install
2. install rbenv with brew
$ brew install rbenv
3. Add eval "$(rbenv init -)" to the end of ~/.zshrc or ~/.bash_profile
4. Install a ruby version
$ rbenv install 2.3.0