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
'use strict'; | |
let times = 1; | |
let processed = 0; | |
async function searchUsers(skip) { | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
if (skip > 32) { | |
return resolve([]); | |
} |
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
import pauseable from 'pauseable'; | |
import EventEmitter from 'events'; | |
function iter(em) { | |
pauseable.resume(em); | |
return new Promise((resolve) => { | |
em.once('foo', (data) => { | |
pauseable.pause(em); |
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
#!/bin/bash | |
########################################### | |
# Backup de aplicaciones git del servidor # | |
########################################### | |
################# | |
# Configuración # | |
################# | |
# Servidor | |
SERVER_IP=X.X.X.X |
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
git config --system core.autocrlf input |
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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |