Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
debugging

Gerardo Junior gerardo-junior

👨‍💻
debugging
View GitHub Profile
@gerardo-junior
gerardo-junior / .zshrc
Last active May 29, 2018
My personal zsh configuration
View .zshrc
# Configure antigen
source /usr/share/zsh/share/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen theme robbyrussell
@gerardo-junior
gerardo-junior / clearCache.js
Last active Jul 13, 2017
Clean up all cached pages in prerender.io (put in console)
View clearCache.js
var cleanUp = function() {
$.ajax({method: "GET", url: "https://prerender.io/api/cached-pages?page=0&pageSize=1000000"}).success(function(response) {
var total = response,
lastChecked = 1;
console.log("total: " + response.length);
for(var i = 0; i < total.length; i++) {
$.ajax({
@gerardo-junior
gerardo-junior / Azkfile.js
Last active Apr 22, 2016
Azk laravel (php + mysql)
View Azkfile.js
/**
* Documentation: http://docs.azk.io/pt-BR/azkfilejs/
*/
// Adds the systems that shape your system
systems({
laravel: {
// Dependent systems
depends: ['mysql'],
// More images: http://images.azk.io
image: {"docker": "azukiapp/php-fpm:5.6"},
@gerardo-junior
gerardo-junior / Instalação gogs
Last active Dec 23, 2015
Instalação do serviço de gogs (github privado)
View Instalação gogs
sudo apt-get update && sudo apt-get upgrade
sudo apt-get -y install git
sudo apt-get -y install mysql-server
sudo apt-get -y install openssh-server
sudo apt-get -y install mercurial
sudo apt-get -y install supervisor
sudo apt-get -y install apache2
mysql -u root -p SUA_SENHA < "CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci;"