Skip to content

Instantly share code, notes, and snippets.

View glaucomorais's full-sized avatar
😣
I may be slow to respond.

Glauco Morais glaucomorais

😣
I may be slow to respond.
View GitHub Profile
@glaucomorais
glaucomorais / plantuml.sh
Last active July 30, 2021 17:57
Script to run a PlantUML in a Docker container.
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# PlantUML Docker v1.1 #
# #
# Script to run a PlantUML in a Docker container. #
# #
# Author: Glauco Morais (https://git.io/JB8Z8) #
# License: MIT #
@glaucomorais
glaucomorais / shellcolors.sh
Last active July 29, 2021 03:43
Define SGR constants to format bash scripts.
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# ShellColors v1.0 #
# #
# Define SGR constants to format bash scripts. #
# #
# Author: Glauco Morais (https://git.io/JB8nU) #
# License: MIT #
@glaucomorais
glaucomorais / docky.sh
Last active July 18, 2022 03:19
Script to facilitate the use of Docker based on Laravel Sail script.
# Moved to this repository: https://github.com/glaucomorais/docky
@glaucomorais
glaucomorais / phaser.dragonbones.d.ts
Created May 3, 2019 09:18
DragonBones Phaser plugin typing definitions for TypeScript.
declare namespace Phaser {
interface Scene {
dragonBone: dragonBones.phaser.plugin.DragonBonesScenePlugin;
}
namespace Loader {
interface LoaderPlugin {
dragonbone: (
@glaucomorais
glaucomorais / letsencrypt_2018.md
Created August 6, 2018 13:00 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@glaucomorais
glaucomorais / keybase.md
Last active July 26, 2021 19:40
Keybase proof

Keybase proof

I hereby claim:

  • I am glaucomorais on github.
  • I am glaucomorais (https://keybase.io/glaucomorais) on keybase.
  • I have a public key ASByDY0TUmPlqiEpAWXHIzve36b-Mia9doJQM8gG2N5r9Qo

To claim this, I am signing this object:

server {
charset utf-8;
listen 80;
server_name localhost;
root path-to-project/public;
index index.html index.php;
access_log path-to-project/storage/local/nginx.access.log;
@glaucomorais
glaucomorais / .editorconfig
Last active August 24, 2016 22:26
Editorconfig para projetos PHP
# Este unifica o estilo de código para diferentes editores e IDEs
# This unifies the coding style for differents editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@glaucomorais
glaucomorais / 00.howto_install_phantomjs.md
Created June 15, 2016 15:43 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@glaucomorais
glaucomorais / Vagrantfile
Last active March 30, 2019 09:16
Basic Vagrant with CentOS + Nginx + PHP-FPM + MySQL bootstrap
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "centos-65-x64"
config.vm.network "forwarded_port", guest: 3306, host: 3306
config.vm.network "private_network", ip: "192.168.56.101"
config.vm.provider "virtualbox" do |vb|