Skip to content

Instantly share code, notes, and snippets.


Gerardo Junior gerardo-junior

Block or report user

Report or block gerardo-junior

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View csvParser.js
// Author: Gerardo Junior <
// Date: 10/14/2019, 8:53:55 PM
// URL:
function csvParser(filename) {
const fs = require('fs')
, path = require('path')
, filePath = path.join(__dirname, filename);
return new Promise((resolve, reject) => {
View DateFomater.js
// Author: Gerardo Junior <
// Date: 10/14/2019, 8:53:55 PM
// URL:
class DateFomater {
constructor(datetime) {
if (typeof datetime !== 'string')
throw new Error('The class parameter must be a String')
View Keybase proof
### Keybase proof
I hereby claim:
* I am gerardo-junior on github.
* I am gerardojunior ( on keybase.
* I have a public key ASAo0sOcd-OqTxkLOCVtbJchBEewLr11xpSzRWbmXKkFMgo
To claim this, I am signing this object:
gerardo-junior /
Created May 21, 2018 — forked from MoOx/
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
title tags authors
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
gerardo-junior / Dockerfile
Last active Apr 1, 2019
example of installing xdebug inside a docker container
View Dockerfile
FROM library/alpine:3.7
ARG XDEBUG_VERSION_SHA256=b5264cc03bf68fcbb04b97229f96dca505d7b87ec2fb3bd4249896783d29cbdc
# ( ... ) Install the php
# Compile, install and configure XDebug php extension
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 / clearCache.js
Last active Jul 13, 2017
Clean up all cached pages in (put in console)
View clearCache.js
var cleanUp = function() {
$.ajax({method: "GET", url: ""}).success(function(response) {
var total = response,
lastChecked = 1;
console.log("total: " + response.length);
for(var i = 0; i < total.length; i++) {
gerardo-junior / Azkfile.js
Last active Apr 22, 2016
Azk laravel (php + mysql)
View Azkfile.js
* Documentation:
// Adds the systems that shape your system
laravel: {
// Dependent systems
depends: ['mysql'],
// More images:
image: {"docker": "azukiapp/php-fpm:5.6"},
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;"
You can’t perform that action at this time.