Skip to content

Instantly share code, notes, and snippets.

View ganobrega's full-sized avatar
:electron:

Gabriel Nobrega ganobrega

:electron:
  • Brazil, São Paulo
View GitHub Profile
@ganobrega
ganobrega / vtex.10s.sh
Created September 9, 2021 21:26 — forked from lucis/vtex.10s.sh
VTEX information to BitBar
#!/bin/bash
TOOLBELT_CFG_FILE="$HOME/.config/configstore/vtex.json"
parse_vtex_json() {
cat "$TOOLBELT_CFG_FILE" | grep $1 | sed -n "s/^.*\"$1\": \"\(.*\)\".*$/\1/p"
}
get_vtex_account() {
parse_vtex_json "account"
}
ACCOUNT=`parse_vtex_json "account"`
WORKSPACE=`parse_vtex_json "workspace"`
@ganobrega
ganobrega / zshrc.sh
Created September 9, 2021 21:25 — forked from lucis/zshrc.sh
Some of my zshrc alias
alias nvim='print -Pn "\e]0;${PWD##*/}-vim\a";nvim'
alias vl='vtex link'
alias vls='vtex ls'
alias vs='vtex switch'
alias vua='vtex unlink --all'
alias vwr='vtex workspace reset'
oni()
{
/Applications/Onivim2.app/Contents/MacOS/Oni2_editor $1 &
@ganobrega
ganobrega / vtex.json
Created July 22, 2021 18:36
VTEX Toolbelt Config
{
"env": "prod",
"account": "$VTEX_ACCOUNT",
"workspace": "master",
"login": "$VTEX_AUTH_LOGIN",
"token": "$VTEX_AUTH_TOKEN"
}
@ganobrega
ganobrega / gist:1a6367e120ca0faa7aa4f469a6779c0a
Created January 7, 2021 17:09
Canais do Youtube de Tecnologia
- Balta.io
- CodAffection
- Codedamn
- EspecializaTi
- Jose Carlos Macoratti
- Michelli Brito
- The Net Ninja
- Vinicius Thiengo
- Traversy Media
- Mango
@ganobrega
ganobrega / dump-vtex-emails.js
Created November 3, 2020 15:47
Get VTEX Template E-mails
const axios = require('axios');
const LIST_ENDPOINT = `https://loja.myvtex.com/api/template-render/pvt/templates/getlist`;
const TEMPLATE_ENDPOINT = `https://loja.myvtex.com/api/template-render/pvt/templates/`;
const JSON_ENDPOINT = `https://loja.myvtex.com/api/template-render/pvt/templates/json`;
const LIST = [];
const AUTH_COOKIE =
'VtexIdclientAutCookie=$$$$$$$$;';
@ganobrega
ganobrega / ContextCmder-Disable.reg
Created October 13, 2020 12:03 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@ganobrega
ganobrega / Header-with-HOF.js
Last active June 1, 2020 15:25
Tematizando uma aplicação com o styled-components e styled-system
import React from 'react';
import styled from 'styled-components';
import css from '@styled-system/css';
const Container = styled('div')(
css({
backgroundColor: 'primary'
})
)
@ganobrega
ganobrega / .env
Last active April 16, 2020 18:25
MEDIUM - d39ced1a25c7 - LICENSES-API
MONGO_URI= PLACE YOUR MONGO URI HERE
@ganobrega
ganobrega / windows10activation
Created November 11, 2019 06:13
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
@ganobrega
ganobrega / readme.md
Created August 13, 2019 16:03
Linux Utils

Stop Gulp Notifications

  1. echo 'export DISABLE_NOTIFIER=true;' >> ~/.bash_profile
  2. source ~/.bash_profile