Skip to content

Instantly share code, notes, and snippets.

View newbrunomartins's full-sized avatar

Bruno Martins newbrunomartins

View GitHub Profile
@newbrunomartins
newbrunomartins / vhost.martins
Last active April 20, 2016 17:34
Nginx.vhost -> Usando Dropbox
server {
listen 80;
server_name NOMEDAAPP.app;
root /home/martins/Dropbox/NOMEDAAPP.app/public;
index index.html index.htm index.php;
charset utf-8;
location / {
@newbrunomartins
newbrunomartins / Configuração pós instalação do Debian 8
Last active July 22, 2016 04:01
Configurações iniciais pós instalação do Debian
Pra facilitar, logado como SU no terminal, use as etapas a seguir:
1- nano /etc/apt/sources.list
/* COLE O CONTEÚDO ABAIXO E DEPOIS CTRL+O e CTRL+X */
deb http://ftp.br.debian.org/debian jessie main contrib non-free
deb-src http://ftp.br.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
@newbrunomartins
newbrunomartins / vhosts-default.martins-PHP7
Last active June 6, 2016 21:48
default do Nginx pós Debian 8.4 e ubuntu 16.04
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@newbrunomartins
newbrunomartins / vhost para nginx com php7
Last active February 13, 2017 18:41
Arquivo para usar em "sites-available"/pasta.app onde não é necessário digitar http://127.0.0.1/caminho/do/arquivo
server {
listen 80;
server_name NOMEDOAPP.app;
root /home/martins/Dropbox/vhosts/NOMEDOAPP.app;
index index.php index.html index.htm;
charset utf-8;
location / {
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://ftp.br.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.br.debian.org/debian/ jessie main contrib non-free
###### Debian Update Repos
deb http://security.debian.org/ jessie/updates main contrib non-free
@newbrunomartins
newbrunomartins / Nginx - Default
Created February 13, 2017 18:38
Arquivo default do nginx para php - Resolve o erro 502, linha 60 falta um "php" entre run e php7 em /etc/nginx/sites-available/default
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@newbrunomartins
newbrunomartins / MariaDB
Last active February 14, 2017 15:55
Resolve o erro de utilizar o mariadb em sistemas como Arch/Antergos e Fedora
Retirado daqui: http://dominicm.com/install-mysql-mariadb-on-arch-linux/
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mysqld
sudo systemctl enable mysqld
Neste passo, já resolveu aqui, caso precise continue os passos seguintes.
@newbrunomartins
newbrunomartins / Instalação Ruby on Rails
Last active January 31, 2021 13:36
Instalação de Rails descomplicada no Antergos/Arch Linux
#Instalando as dependências do Rails:
sudo pacman -S nodejs
#Instalando o Ruby
sudo pacman -S ruby
#Permitindo o Ruby on Rails em qualquer versão (Em algumas instalações deu erro e isto corrigiu o caminho)
nano ~/.bashrc
if which ruby >/dev/null && which gem >/dev/null; then
@newbrunomartins
newbrunomartins / Antergos 17+
Last active May 19, 2017 15:54
Pós instalação básica do Antergos
pacman -S git nodejs npm ruby geary dropbox vlc qt4 filezilla mysql-workbench docker gimp python3 atom
@newbrunomartins
newbrunomartins / Minerar via MINERGATE para Debian based
Last active December 28, 2017 16:14
Iniciando a mineração em ambientes unix
sudo apt update &&
sudo apt install git &&
sudo apt install build-essential autotools-dev autoconf libcurl3 libcurl4-gnutls-dev &&
sudo git clone https://github.com/wolf9466/cpuminer-multi &&
cd cpuminer-multi &&
sudo chmod +x autogen.sh &&
sudo ./autogen.sh &&
sudo CFLAGS="-march=native" ./configure &&
sudo make &&
sudo make install &&