Skip to content

Instantly share code, notes, and snippets.

View rodolfobarretoweb's full-sized avatar

Rodolfo Ribeiro Barreto rodolfobarretoweb

  • Datagenno
View GitHub Profile
function attempt(fn, retrayDelay, maxAttempts) {
let loop = null;
let counter = 0;
return new Promise((resolve, reject) => {
try {
const resolve = fn();
resolve(resolve);
} catch(error) {
loop = setTimeout(() => {
# http://www.webupd8.org/2014/04/10-things-to-do-after-installing-ubuntu.html
sudo apt-get update
sudo apt-get upgrade
##############################
### CONFIGURATIONS ###########
##############################
@rodolfobarretoweb
rodolfobarretoweb / script.sh
Created November 4, 2015 13:54
Backup mysql
#!/bin/sh
# script.sh
# Print the date
DATE=`/bin/date +%d-%m-%Y`
NANE="/your/path/$DATA.sql"
HOST=""
USER=""