title | tags | authors | |||||
---|---|---|---|---|---|---|---|
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM library/alpine:3.7 | |
ARG DEBUG=false | |
ARG XDEBUG_VERSION=2.6.0 | |
ARG XDEBUG_VERSION_SHA256=b5264cc03bf68fcbb04b97229f96dca505d7b87ec2fb3bd4249896783d29cbdc | |
ARG XDEBUG_SOURCE_URL=https://xdebug.org/files | |
# ( ... ) Install the php | |
# Compile, install and configure XDebug php extension |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am gerardo-junior on github. | |
* I am gerardojunior (https://keybase.io/gerardojunior) on keybase. | |
* I have a public key ASAo0sOcd-OqTxkLOCVtbJchBEewLr11xpSzRWbmXKkFMgo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Gerardo Junior <[email protected] | |
// Date: 10/14/2019, 8:53:55 PM | |
// URL: https://gist.github.com/gerardo-junior/ba6ab5a121248328005c5e53d00e7bd7 | |
class DateFomater { | |
constructor(datetime) { | |
if (typeof datetime !== 'string') | |
throw new Error('The class parameter must be a String') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Gerardo Junior <[email protected] | |
// Date: 10/14/2019, 8:53:55 PM | |
// URL: https://gist.github.com/gerardo-junior/2dfda6b7557e1334d1ef2ba495c4ad7c/ | |
function csvParser(filename) { | |
const fs = require('fs') | |
, path = require('path') | |
, filePath = path.join(__dirname, filename); | |
return new Promise((resolve, reject) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isValidCNPJ(cnpj = '') { | |
cnpj = `${cnpj}`.replace(/^\D+/gmi, '') | |
if (cnpj.length != 14 || new Set(cnpj).size === 1) return false | |
size = cnpj.length - 2 | |
numbers = cnpj.substring(0, size) | |
digits = cnpj.substring(size) | |
soma = 0 | |
pos = size - 7 |
OlderNewer