Skip to content

Instantly share code, notes, and snippets.

View fabiorecife's full-sized avatar

Fábio Almeida fabiorecife

View GitHub Profile
@fabiorecife
fabiorecife / semantic-commit.txt
Created November 20, 2022 13:57 — forked from eltonea/semantic-commit.txt
Exemplos de commit semântico
chore: add Oyster build script //Pequenas alterações que não são novas funcionalidades.
docs: explain hat wobble //Semelhante a uma wiki; documentações etc.
feat: add beta sequence //Criação de Nova funcionalidade;
fix: remove error message //Correção de bugs
refactor: share logic 4d3d3d3 //Refatoração de um código
style: convert tabs to spaces //Alteração em estilos, formatação de código etc.
test: ensure that increment //Criação de testes da sua aplicação
@fabiorecife
fabiorecife / settings.json
Created November 1, 2022 09:33 — forked from diego3g/settings.json
VSCode Settings (Updated)
{
"emmet.syntaxProfiles" : {
"javascript" : "jsx"
},
"workbench.startupEditor" : "newUntitledFile",
"editor.fontSize" : 16,
"javascript.suggest.autoImports" : true,
"javascript.updateImportsOnFileMove.enabled" : "always",
"editor.rulers" : [
80,
@fabiorecife
fabiorecife / tip_docker.md
Last active November 5, 2021 09:21
docker commands

Release docker use without sudo

sudo usermod -aG docker $(whoami)

Commands

  • docker ps # displays all currently running containers
  • docker ps -a # displays all running and stopped containers
  • docker start ID_CONTAINER # starts the container with the entered id
  • docker stop ID_CONTAINER # stop the container with the entered id
  • docker exec -u 0 -it ID_CONTAINER "bash" # run bash in a running container
@fabiorecife
fabiorecife / tip_enlarging_swap_file.md
Last active September 5, 2021 15:53
Enlarging the swap file to 20 GB

Enlarging the swap file to 20 GB

 sudo swapoff -v /swapfile
 sudo rm /swapfile
 sudo fallocate -l 20G /swapfile
 sudo chmod 600 /swapfile
 sudo mkswap /swapfile
 sudo swapon /swapfile

example /etc/fstab

@fabiorecife
fabiorecife / vsc-extensions.txt
Created April 4, 2020 16:35
Minhas Extensões -VSC - 2020
# code --list-extensions
Dart-Code.dart-code
Dart-Code.flutter
dbaeumer.vscode-eslint
eamodio.gitlens
hollowtree.vue-snippets
jebbs.plantuml
k--kato.intellij-idea-keybindings
luggage66.AWK
@fabiorecife
fabiorecife / build.gradle
Created November 26, 2019 09:59
build.gradle to jasperreports 6.10.0
plugins {
id 'java'
}
group 'br.recife.fabio'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
@fabiorecife
fabiorecife / MyRecyckerItemClickListener.java
Created March 27, 2019 16:49
RecyclerItemClickListener example
package br.recife.fabio.myrecyclerviewapp;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.AdapterView;
@fabiorecife
fabiorecife / Program.cs
Created January 17, 2019 10:19
How to generate JWT Token with C# - Hello World version ( jwt.io )
using System;
using System.IdentityModel.Tokens.Jwt;
using System.Security.Claims;
using System.Text;
using Microsoft.IdentityModel.Tokens;
namespace ConsoleApp3
{
class Program
@fabiorecife
fabiorecife / AppServiceProvider.php
Created December 19, 2018 07:52
laravel - fix error in migration (index size)
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
@fabiorecife
fabiorecife / fix-etc-enviroment.md
Created November 29, 2018 21:12
fix /etc/enviroment

when a locale erro ocurrs

sudo vim /etc/enviroment
#then add
LANGUAGE=en_US.UTF-8
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8