Skip to content

Instantly share code, notes, and snippets.

View gustavomtborges's full-sized avatar

Gustavo Martins T. Borges gustavomtborges

View GitHub Profile
@gustavomtborges
gustavomtborges / pre-merge-commit.sh
Created July 27, 2022 14:30
GIT pre-merge-commit sample
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
echo "pre merge hook"
DEVELOP='develop'
BRANCH_STAGING='staging-test'
if [ `git rev-parse --abbrev-ref HEAD` == $BRANCH_STAGING ];
then
MERGE_BRANCH=`echo $GIT_REFLOG_ACTION | awk '{print $2}'`
@gustavomtborges
gustavomtborges / vscode-custom.json
Last active October 6, 2021 18:18
VSCode Custom Colors
"workbench.colorCustomizations": {
"[Braver's Solarized Dark (themed workbench)]": {
"editorCursor.foreground": "#839495"
},
},
"editor.tokenColorCustomizations": {
"[Braver's Solarized Dark (themed workbench)]": {
"textMateRules": [
{
"scope": ["meta.brace.square", "variable"],
@gustavomtborges
gustavomtborges / true-color.sh
Created May 11, 2021 13:22
Test true color 256color
#!/bin/bash
# Based on: https://gist.github.com/XVilka/8346728
awk -v term_cols="${width:-$(tput cols || echo 80)}" 'BEGIN{
s="/\\";
for (colnum = 0; colnum<term_cols; colnum++) {
r = 255-(colnum*255/term_cols);
g = (colnum*510/term_cols);
b = (colnum*255/term_cols);
if (g>255) g = 510-g;
@gustavomtborges
gustavomtborges / oceanic-next.conf
Created January 28, 2021 14:31
Oceanic Next colorscheme for kitty terminal
# Oceanic Next for kitty terminal
# This work is licensed under the terms of the MIT license.
# For a copy, see https://opensource.org/licenses/MIT.
background #1b2b34
foreground #d8dee9
cursor #d8dee9
selection_foreground #D8DEE9