rsync -v -e ssh [email protected]:/home/remoteuser/transfer/testfile.txt /home/localuser/
rsync -r -a -v -e ssh --delete [email protected]:/home/remoteuser/testfolder /home/localuser/testfolder
const exactLengthString = (input, length, filling) => { | |
let newString = ''; | |
for (var i = 1; i <= length / filling.length; i++) newString += filling; | |
newString += input.toString() | |
return newString.substring(newString.length - length, newString.length + length) | |
} | |
console.log(exactLengthString('100', 4, '0')) // 0100 | |
rsync -v -e ssh [email protected]:/home/remoteuser/transfer/testfile.txt /home/localuser/
rsync -r -a -v -e ssh --delete [email protected]:/home/remoteuser/testfolder /home/localuser/testfolder
Terminal pops up when typing command + shift + A to get actions bar
sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
(async () => { | |
await this.sleep(60000); | |
})(); |
DB_NAME="" | |
DB_USER="" | |
DB_PASSWORD="" | |
DB_HOST="" | |
DB_CHARSET="utf8" | |
DB_COLLATE="" | |
TABLE_PREFIX="wp_" | |
WP_SITEURL="" | |
WP_HOME="" | |
WP_DEBUG="" |
# Poner todos los subfolder de un folder a 755:
find . -type d -exec chmod 755 {} \;
# Todos los archivos a 644:
find . -type f -exec chmod 644 {} \;
#Establecer solo los archivos que terminen con .php a 644:
find . -name \*\.php -exec chmod 644 {} \;
DOCKER_BIN='/mnt/c/Program Files/Docker/Docker/resources/bin' | |
for f in "$DOCKER_BIN"/*; do | |
alias "$(basename "$f" | sed 's/.exe$//')"'="'"$f"'"' | |
done | |
alias dev='~/Developer' | |
alias htdocs='/Applications/MAMP/htdocs' | |
alias ls -all='ls -GFlash' | |
alias valet-run='valet start && brew services start mysql' | |
alias valet-die='valet stop && brew services stop mysql' |