Skip to content

Instantly share code, notes, and snippets.

View nelsonmfinda's full-sized avatar
🇦🇴
JS/TS | Ruby | GoLang | Elixir

Nelson Mfinda nelsonmfinda

🇦🇴
JS/TS | Ruby | GoLang | Elixir
View GitHub Profile
@nelsonmfinda
nelsonmfinda / Activate Office 2019 for macOS VoL.md
Created September 14, 2020 08:24 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@nelsonmfinda
nelsonmfinda / setup-ruby-and-ruby-on-rails.md
Last active August 12, 2020 08:40
Setup Ruby and Ruby on Rails on Ubuntu 19.04

Ruby on Rails(RoR) is a web framework written in the Ruby programming language, designed to develop successful projects while writing less code.

The command-line tool RVM (Ruby Version Manager) which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

Prerequisites

  • Ubuntu 19.04 x64 server instance

  • we need to install software-properties-common :

xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
brew install bash # latest version of bash
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install git
@nelsonmfinda
nelsonmfinda / Dockerfile
Created June 6, 2019 21:01
Containerização de uma API Rest desenvolvida com Ruby on Rails
# From one of the official ruby images
FROM ruby:2.6.0-alpine
# Installing required packages
RUN \
apk --update add build-base libffi-dev \
libxml2-dev libxslt-dev postgresql-dev \
ruby-json ruby-rake ruby-rdoc tzdata && \
gem install bundler -v "$BUNDLER_VERSION" --no-document
@nelsonmfinda
nelsonmfinda / docker-compose.yml
Created June 6, 2019 20:59
Containerização de uma API Rest desenvolvida com Ruby on Rails
version: '3'
services:
db:
image: postgres:9.5.17-alpine
volumes:
- ./tmp/db:/var/lib/postgresql/data
networks:
- backend
environment:
@nelsonmfinda
nelsonmfinda / escamboapp-https
Created March 1, 2019 05:42 — forked from jacksonpires/escamboapp-https
Arquivo de Configuração NGINX/Site (/etc/nginx/sites-enabled/escamboapp) com HTTPS
upstream escamboapp {
server unix:/tmp/escamboapp.sock fail_timeout=0;
}
server {
listen 80;
server_name example.com;
return 301 https://$host$request_uri;
}
<script>
import axios from 'axios';
export default {
data () {
return {
email: ''
}
},
methods: {
@nelsonmfinda
nelsonmfinda / -.md
Created December 22, 2018 11:04 — forked from vinicius73/0-contribua-.md
Guia de referencias sobre estudo de JavaScript

Contribua

Se você quiser adicionar mais algum tópico deixe seu comentário, o objetico é facilitar para os iniciantes ou aqueles que buscam dominar JavaScript, quais tópicos são importantes para dominar JavaScript.

São tópicos para quem sabe o minimo de JavaScript (declarar variáveis), a ordem em que eles aparecem são por importância para o dominio como um todo. Mesmo que você já tenha experiência com JS, recomendo que leia os links de cada tópico para fortalecer suas bases teóricas e ter um comportamento mais profundo da linguagem.

Lista originalmente criada e compilada por Vinicius Reis

@nelsonmfinda
nelsonmfinda / .gitconfig
Created May 5, 2018 14:42 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@nelsonmfinda
nelsonmfinda / gist:78af044f3d4ef859b94a45fbc64c84e7
Created April 12, 2018 09:09 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch