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 / .vimrc
Created November 24, 2020 12:32
Arquivo de configuração VIM
set relativenumber
set expandtab
set shiftwidth=2
set autoindent
set smartindent
syntax on
set nocompatible " be iMproved, required
@digitalbocca
digitalbocca / form.html
Last active August 20, 2020 16:33
Express multipart - json
<form id='form'enctype="application/json" action="http://localhost:3000", method="post">
<input id ='Input1' type="text" placeholder="NOME" name='nome'>
<input id='Input2' type="text" placeholder="EMAIL" name='email'>
<button id='Button' type="submit">Enviar</button>
</form>
@digitalbocca
digitalbocca / Tutorial.md
Created July 30, 2020 12:37 — forked from vemacs/Tutorial.md
Instructions for setting up a Spigot server using mark2 on a fresh Ubuntu Server 14.04 LTS install.

Prerequisites

  • a vswap OpenVZ VPS or a KVM/Xen/VMware VPS with Ubuntu Server 14.04 LTS installed (architecture doesn't matter), or a dedicated server
  • patience and a willingness to learn
  • approximately 10 minutes of time

Why Ubuntu LTS?

@digitalbocca
digitalbocca / README.md
Created July 26, 2020 22:26
Descrição dos Comandos e Features - CraftPanda

Mundos:

  • Lobby IR: /spawn PVP: false

  • Minerar IR: /minerar PVP: Dia false / Noite True

@digitalbocca
digitalbocca / index.ts
Last active January 27, 2020 12:10
Modulo de teste deno.
import sorteio from 'https://gist.githubusercontent.com/digitalbocca/f775ea56799f06786a043961a00f7d6a/raw/89ac726a0bf4d69224ab9972dcfd2aadc6d14e42/sorteio.deno.ts'
import { green } from 'https://deno.land/std/fmt/colors.ts'
console.clear()
console.log('SORTEANDO A LISTA A')
let listaA = []
let premiados = 0
let listaDePremios = []
@digitalbocca
digitalbocca / index.ts
Last active January 27, 2020 11:20
Um script para teste do deno
const msg = () => console.log('Hello World!')
console.clear()
for (let i = 0; i < 10; i++) {
msg()
}
@digitalbocca
digitalbocca / .gitignore
Created January 25, 2020 11:58
Git Ignore Padrão para alguns projetos.
node_modules/
.cache/
dist/
@digitalbocca
digitalbocca / JAVASCRIPT-VANILLA.md
Last active January 20, 2020 13:42
ImagemBase64 - Arquivo JS
'use strict'

// IMPORTAR O AXIOS PARA FAZER A CHAMADA HTTP
import axios from 'axios'

// INÍCIO DA EXECUÇÃO
window.onload = async () => {
  try {
 // GET PARA A API
@digitalbocca
digitalbocca / arquivo.MD
Created December 11, 2019 08:39
Descompactar arquivo bz2

Descompactar Arquivo bz2


tar -xvjf file.tar.bz2

Flags

  • -x - Extrair
@digitalbocca
digitalbocca / npx-gist.js
Last active August 22, 2019 15:13
Teste de execução do npx com gist.
#!/usr/bin/env node
console.log('Em todos esses anos nesta industria vital, é a primeira vez que isso acontece...')