Skip to content

Instantly share code, notes, and snippets.

View Gaboso's full-sized avatar
Cruzeirão Cabuloso

Gaboso™ Gaboso

Cruzeirão Cabuloso
View GitHub Profile
@Gaboso
Gaboso / setup_github_issues_labels.sh
Last active June 15, 2018 03:21 — forked from hubertursua/setup github issues labels.sh
Setup basic GitHub issues labels
#!/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): "
@Gaboso
Gaboso / license-badges.md
Last active September 28, 2023 01:12 — forked from lukas-h/license-badges.md
Selos de licença para o seu projeto

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

  • Esses selos não substituem totalmente as informações de licença dos seus projetos, eles são apenas emblemas para o README, que o usuário pode ver a Licença à primeira vista.

Traduções: (sem garantias que as traduções estarão atualizadas)

@Gaboso
Gaboso / ConsoleColors.java
Created July 9, 2018 14:49
Utility class with console output colors on linux
/**
* 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 / install-full-text.sh
Created July 17, 2018 14:23
Install command Full-Text Search in Docker image
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 / randomColor.js
Created November 6, 2019 14:22
Random RGB Color 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 / shrink_sql_server.sql
Created September 13, 2021 15:20
Shrink SQL Server Example
USE DB_NEW;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE DB_NEW
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE ('DB_NEW_log', 1);
GO
-- Reset the database recovery model.