Skip to content

Instantly share code, notes, and snippets.

View fecaps's full-sized avatar

Fellipe Capelli fecaps

View GitHub Profile
@fecaps
fecaps / mac-setup.sh
Last active February 20, 2022 17:46
MacOS Setup [WIP]
## xcode
xcode-select --install
## Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
brew update && \
brew tap caskroom/cask && \
brew install --cask iterm2
### oh my zsh
/* ... -> SPREAD OPERATOR */
[ ...[ 1, 3 ], 3, 4 ]
/* create array with concat of array and items, result: [ 1, 3, 3, 4 ] */
[ ...[ 1, 2 ], ...[ 3 ] ]
/* create array with literal concat of two arrays, result: [ 1, 2, 3 ] */
[ ...[ 1 ] ]
/* copy array, result: [ 1 ] */
@fecaps
fecaps / package.json
Last active June 10, 2019 21:04
Btime package.json file
{
"name": "btime-micro-service",
"version": "1.0.0",
"description": "Btime micro service",
"engines": {
"node": ">=8.10.0"
},
"files": [
"srv",
"src"
@fecaps
fecaps / .eslintrc
Last active March 31, 2019 14:24
Btime eslint
{
"extends": [
"standard",
"plugin:node/recommended",
"plugin:promise/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": [
"standard"
@fecaps
fecaps / .editorconfig
Created January 29, 2019 00:46
Btime editorConfig
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
[*.js]
indent_style = space
indent_size = 2

LEMP in Ubuntu 16.04 Server - AWS EC2/RDS

  1. Pre-usage:
sudo apt-get update && sudo apt-get upgrade -y
  1. Add ubuntu or the user used to sudo group:
@fecaps
fecaps / part2-setup.md
Last active July 9, 2021 20:51
Machine Setup - Part 2 (Ubuntu)

Part 2 - Setup

Git and SSH

  1. Generating new SSH
$ ssh-keygen -t rsa -b 4096 -C "mail@mail.com"
@fecaps
fecaps / part1-setup.sh
Last active March 1, 2021 19:45
Machine Setup - Part 1 (Ubuntu)
#!/bin/bash
############################################
# UTILITIES
############################################
# install restricted media support
sudo apt-get install ubuntu-restricted-extras -y
# install curl