Skip to content

Instantly share code, notes, and snippets.

View robertov8's full-sized avatar
🏠
Working from home

Roberto Ribeiro robertov8

🏠
Working from home
View GitHub Profile
{
"cmd" : ["gnome-terminal -x bash -c \"rm -f ${file_base_name}; gcc $file_name -o ${file_base_name} -lm -Wall; ./${file_base_name};echo;echo; echo Press ENTER to continue; read line; exit; exec bash\""],
"selector" : "source.c",
"shell":true,
"working_dir" : "$file_path"
}
@robertov8
robertov8 / Pokémon GO
Created July 20, 2016 21:01
Lista de Pokémons
Pokémons muito comuns
Caterpie
Weedle
Pidgey
Rattata
Ekans
Sandshrew
Nidoran(Female)
Nidoran(Male)
Zubat
@robertov8
robertov8 / latex.sh
Last active August 14, 2016 23:12
Instalar o latex - Debian
#!/bin/bash
### Basico ###
# Selecção decente de pacotes TeXLive
sudo apt-get install textlive -y
# Programas e arquivos essenciais
sudo apt-get install texlive-base -y
# TexLive: BibTex estilos adicionais
sudo apt-get install texlive-bibtex-extra -y
@robertov8
robertov8 / .vimrc
Last active September 4, 2016 04:34
Configuração do VIM
" http://goo.gl/id0yhJ
"Configure Vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage itself
Plugin 'VundleVim/Vundle.vim'
@robertov8
robertov8 / install.sh
Last active November 10, 2017 22:30
otclient - Compiling on Linux
#!/bin/bash
# Install required development packages
sudo apt-get install build-essential
sudo apt-get install cmake
sudo apt-get install git-core
sudo apt-get install libboost1.58-all-dev
sudo apt-get install liblua5.1-0-dev
sudo apt-get install libglew1.13
sudo apt-get install libvorbis-dev
@robertov8
robertov8 / hotspot.md
Last active August 30, 2023 13:12
Install Hotspot + Mysql + Portal Captive + WifiDog + Authpuppy

Hotspot + Portal Captive

Dependencias

  • Header Kernel - GCC

sudo apt-get install linux-headers

  • Pacotes essenciais
@robertov8
robertov8 / docker.md
Last active August 6, 2017 09:47
Docker Commands

Delete all

container

docker rm $(docker ps -a | awk '{print $1}')

images

docker rmi $(docker images | awk '{print $3}')

volumes

docker volume rm $(docker volume ls | awk '{print $2}')

@robertov8
robertov8 / wocker-php-xdebug.md
Created January 1, 2017 20:36
Php Xdebug - Vagrant - Wocker

Php Xdebug - Vagrant - Wocker

Vagrant

Into the VM

vagrant ssh

Run an interactive shell in your Container

@robertov8
robertov8 / xampp.sh
Created January 1, 2017 21:33
Xampp Server
#!/bin/sh
# para executar digite: sudo sh servidor.sh 'comando': help, start, stop restart e 777
if [ -e $1 ]; then
echo 'Por favor escolha uma dessas opções: help, start, stop, restart, 777';exit;
elif [ $1 = "help" ]; then
echo '\n Xampp Servidor: Mysql, ProFTP, Apache';
echo ' -------------------------------------';
echo ' Comando para ligar o servidor: sudo /opt/lampp/lampp start';
echo ' Comando para desligar o servidor: sudo /opt/lampp/lampp start';
echo ' Comando para reiniciar o servidor: sudo /opt/lampp/lampp restart';
@robertov8
robertov8 / atom-bin-1.18.0-beta2.ebuild
Last active June 2, 2017 07:54
Ebuild atom-bin-1.18.0-beta2
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit flag-o-matic python-any-r1 eutils unpacker pax-utils
DESCRIPTION="A hackable text editor for the 21st Century - built from official binary package."
HOMEPAGE="https://atom.io"