Skip to content

Instantly share code, notes, and snippets.

View lucenarenato's full-sized avatar
🐘
Remoto

Renato Lucena lucenarenato

🐘
Remoto
View GitHub Profile
@lucenarenato
lucenarenato / how-to-gource.sh
Created July 5, 2018 13:32 — forked from miguelsaddress/how-to-gource.sh
Install Gource in Ubuntu (gource.io)
#Install Gource in Ubuntu
========================
#Go to the folder.... and
#see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo
sudo apt-get update
sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev
./configure
make
sudo make install
@lucenarenato
lucenarenato / LICENCE SUBLIME TEXT
Created November 26, 2018 19:27
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@lucenarenato
lucenarenato / notificationFx.js
Last active March 26, 2019 20:39 — forked from victorximenis/notificationFx.js
Notification FX
/***
*https://tympanus.net/Development/NotificationStyles/
*https://github.com/codrops/NotificationStyles
***/
;( function( window ) {
'use strict';
var docElem = window.document.documentElement,
support = { animations : Modernizr.cssanimations },
@lucenarenato
lucenarenato / deploy.sh
Created April 3, 2019 20:13 — forked from logikinc/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
git pull origin master
# Install/update composer dependecies
########################################################################
# Installing and Configuring Apache & Nginx with Multiple PHP Versions #
# Apache will run on port 8080 and will be behind Nginx #
# Nginx will serve as a reverse proxy for Apache Sites #
# Nginx will act as the primary web and caching server #
########################################################################
# Update Packages
sudo apt update && sudo apt upgrade -y
@lucenarenato
lucenarenato / config-php.sh
Created April 3, 2019 20:41 — forked from DragonBe/config-php.sh
A quick configure script for building PHP
#!/bin/sh
PHP=$1
if [ $# -lt 1 ]
then
echo "Usage: $0 <php-version>"
echo
echo "php-version: php7 $PHP"
echo
@lucenarenato
lucenarenato / supervisord-example.conf
Created April 10, 2019 13:24 — forked from didip/supervisord-example.conf
Example configuration file for supervisord.conf
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
@lucenarenato
lucenarenato / docker-php-ext-install.md
Created May 2, 2019 18:12 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
@lucenarenato
lucenarenato / rsync.sh
Created June 14, 2019 20:20 — forked from julianobailao/rsync.sh
Usando rsync para baixar ou enviar arquivos remotos
# Baixando um arquivo remoto com rsync
rsync -Cravpe user@ip:/caminho/real/do/arquivo.extensao downloads/arquivo.extensao
# Enviando um arquivo remoto com rsync
rsync -Cravpe downloads/arquivo.extensao user@ip:/caminho/real/do/arquivo.extensao
# Caso a porta ssh seja diferente de 22, é necessário seta-la, como no exemplo onde 12345 é a porta:
rsync -Cravpe 'ssh -p 12345' user@ip:/caminho/real/do/arquivo.extensao downloads/arquivo.extensao