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
| User.create(data, function(err, user) { | |
| if(err) { | |
| console.log(err) | |
| return false | |
| } | |
| waterlock.engine.attachAuthToUser({ | |
| email: data.email, | |
| password: data.password | |
| }, user, function(err, user) { | |
| sails.log('Added user ' + user.name) |
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 | |
| echo "LE Tar and S3 Wizard v1" | |
| echo "Which directory would you like to tar? [\"n\" to abort]" | |
| ls /srv/lib/backups/dir/ | |
| read file | |
| if [ $file = n ] | |
| then | |
| echo "Aborted" |
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
| http-server -a localhost -p 1337 -c-1 -o |
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 | |
| echo "Backup LE-CRAFT" | |
| echo "Ensure you have set /save-off or /stop" | |
| echo "Are you ready? [y/n]" | |
| read execute | |
| if [ $execute = y ] | |
| then |
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
| [mysqldump] | |
| user=USERNAME | |
| password=PASSWORD |
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 | |
| echo "LE Database Backup Wizard v2" | |
| echo "Which database would you like to backup? [\"n\" to abort]" | |
| read database | |
| if [ $database = n ] | |
| then | |
| echo "Aborted" | |
| exit |
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 | |
| echo "LE Backup Wizard v2" | |
| echo "Which directory would you like to backup?[\"n\" to abort]" | |
| ls /srv/ | |
| read name | |
| if [ $name = n ] | |
| then | |
| echo "Aborted" |
NewerOlder