Skip to content

Instantly share code, notes, and snippets.

View digitalbocca's full-sized avatar
🚀
Working from home

Gabriel Bertola Bocca digitalbocca

🚀
Working from home
View GitHub Profile
@digitalbocca
digitalbocca / ImagemHTML.md
Last active February 2, 2019 16:58
Snnipets de Código para ImagemBase64 (https://github.com/digitalbocca/ImagemBase64)
<img src="caminho/para/logo.php">
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#URL AMIGAVEL PASSANDO UM SLUG PARA A INDEX
RewriteRule ^([a-z0-9-]+)/?$ index.php?slug=$1 [NC]
</IfModule>
@digitalbocca
digitalbocca / comoSerChatoNowhatsapp.js
Created October 18, 2017 23:46 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguém te responder no whatsapp
/*
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o web.whatsapp.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
@digitalbocca
digitalbocca / hyper.js
Created October 28, 2017 01:53
Arquivo de Configuração do HyperTerm
module.exports = {
config: {
// Material Box
materialBox: {
scheme: 'monokai',
},
updateChannel: 'stable',
fontSize: 18,
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
@digitalbocca
digitalbocca / index.pug
Created November 15, 2017 16:24
Primeiro Teste
doctype html
html(lang="pt-br")
head
meta(charset="UTF-8")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
meta(http-equiv="X-UA-Compatible", content="ie=edge")
title Primeiro Teste
body
div.text-center
h1 CODEPEN Test
@digitalbocca
digitalbocca / keyboard.md
Created November 17, 2017 13:09
Configurar o teclado - Ubuntu Mini

Configurar o Teclado no Ubuntu Mini

sudo dpkg-reconfigure keyboard-configuration
@digitalbocca
digitalbocca / .bashrc
Last active June 2, 2018 08:05
Atalhos do meu git-scm
alias nrd='npm run dev'
function scoop() { powershell -ex unrestricted scoop.ps1 "$@" ;} && export -f scoop
@digitalbocca
digitalbocca / vscode-custom.css
Created March 30, 2018 13:03
vscode custom css - firacode flottflott
.type.storage, .type.storage.declaration, .storage.class.modifier {
font-family: 'flottflott';
font-size: 1.7em;
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.decorator.name, .decorator.punctuation:not(.block), .import.keyword {
@digitalbocca
digitalbocca / https-to-http.js
Created April 16, 2018 23:10
https to http - express
req.headers['x-forwarded-proto'] === 'http' ? next() : res.redirect('http://' + req.hostname + req.originalUrl)
@digitalbocca
digitalbocca / updateNpm.bat
Created May 24, 2018 04:59 — forked from johnmcase/updateNpm.bat
Update npm on windows
rem see https://github.com/coreybutler/nvm-windows/issues/300
@echo off
SETLOCAL EnableDelayedExpansion
if [%1] == [] (
echo Pass in the version you would like to install, or "latest" to install the latest npm version.
) else (
set wanted_version=%1