Skip to content

Instantly share code, notes, and snippets.

🦊

Gabriel de Carvalho Gaboso

🦊
View GitHub Profile
@Gaboso
Gaboso / randomColor.js
Created Nov 6, 2019
Random RGB Color JS
View randomColor.js
function getRandorColorNumber() {
let randomNumber = Math.random() * 255;
return Math.round(randomNumber);
}
function randomRGBA() {
let r = getRandorColorNumber();
let g = getRandorColorNumber();
let b = getRandorColorNumber();
let a = Math.random.toFixed(1);
@Gaboso
Gaboso / install-full-text.sh
Created Jul 17, 2018
Install command Full-Text Search in Docker image
View install-full-text.sh
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y curl && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list | tee /etc/apt/sources.list.d/mssql-server.list && \
apt-get update && \
apt-get install -y mssql-server-fts
@Gaboso
Gaboso / ConsoleColors.java
Created Jul 9, 2018
Utility class with console output colors on linux
View ConsoleColors.java
/**
* Utility class with console output colors on linux.
* I did not create it. I found following link: https://stackoverflow.com/a/45444716
* I saved it here because it was very useful
*/
public class ConsoleColors {
// Reset
public static final String RESET = "\033[0m"; // Text Reset
// Regular Colors
@Gaboso
Gaboso / license-badges.md
Last active Apr 1, 2020 — forked from lukas-h/license-badges.md
Selos de licença para o seu projeto
View license-badges.md

Selos de licença no Markdown

Coleção de selos de licença para o arquivo README do seu projeto.
Esta lista inclui as licenças open data e open source mais comuns.
Copie e cole facilmente o código dos selos nos seus arquivos em Markdown.

Notas

@Gaboso
Gaboso / setup_github_issues_labels.sh
Last active Jun 15, 2018 — forked from hyubs/setup github issues labels.sh
Setup basic GitHub issues labels
View setup_github_issues_labels.sh
#!/usr/bin/env bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
echo ""
echo -n "GitHub Repo (user/repo_name): "
You can’t perform that action at this time.