# 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 {} \;
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
| DB_NAME="" | |
| DB_USER="" | |
| DB_PASSWORD="" | |
| DB_HOST="" | |
| DB_CHARSET="utf8" | |
| DB_COLLATE="" | |
| TABLE_PREFIX="wp_" | |
| WP_SITEURL="" | |
| WP_HOME="" | |
| WP_DEBUG="" |
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
| sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
| (async () => { | |
| await this.sleep(60000); | |
| })(); |
Terminal pops up when typing command + shift + A to get actions bar
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
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
| 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 |
OlderNewer