Skip to content

Instantly share code, notes, and snippets.

View JoseCage's full-sized avatar
:octocat:
Opensourcing

José Cage JoseCage

:octocat:
Opensourcing
View GitHub Profile
@JoseCage
JoseCage / atom-installer.sh
Last active January 17, 2016 07:46
Um script básico para instalar o Atom.io no Ubuntu
#/bin/bash
echo "Ola, $USER! seja bem vindo."
echo "Esta prestes a baixar e instalar o editor de códigos ATOM. Nice code for you."
sudo add-apt-repository ppa:webupd8team/atom && sudo apt-get update && sudo apt-get install atom
@JoseCage
JoseCage / .env
Last active November 24, 2016 12:33
PHPUnit test database environment for Laravel
TEST_DB_HOST=localhost # or 127.0.0.1
TEST_DB_DATABASE=my_app
TEST_DB_USERNAME=root
DBT_PASSWORD= # Put you password here if required or leave blank..
@JoseCage
JoseCage / .editorconfig
Created December 16, 2016 10:29
Custom EditorConfig
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
ESTRUTURA DAS PASTAS LINUX
/home = pasta de usuarios
/dev = devices
/media = driver de cd
/root = estrutura de pasta do root/superusuario
/tmp = logs etc
/etc=arquivos de configuracao
/var=conteudo de arquivos logs, mysql
/bin=executavel
@JoseCage
JoseCage / .htaccess
Created April 23, 2017 23:56 — forked from RafaelFunchal/.htaccess
Exclude the files ajax, upload and WP CRON scripts from authentication
# Exclude the files ajax, upload and WP CRON scripts from authentication
<FilesMatch "(admin-ajax\.php|media-upload\.php|async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
Order allow,deny
Allow from all
Satisfy any
</FilesMatch>

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@JoseCage
JoseCage / Dockerfile
Created May 12, 2017 20:38 — forked from mjason/Dockerfile
build phoenix in docker
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get install -y git wget curl build-essential
RUN wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update
RUN apt-get install erlang -y
RUN apt-get install -y elixir
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
<?php
namespace App\Http\Middleware;
class HandleCorsMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
@JoseCage
JoseCage / README-Template.md
Created May 18, 2017 20:57 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@JoseCage
JoseCage / VS Code.md
Created November 7, 2017 20:03 — forked from paulofreitas/VS Code.md
My Visual Studio Code setup