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/sh | |
| # Only for empty SSH subsystems | |
| if [ ! -z "$SSH_ORIGINAL_COMMAND" ]; then | |
| exit 0 | |
| fi | |
| # Helper function for centering a toilet banner | |
| center() { | |
| LINE_STR=$1 | |
| PADDING_STR=$(printf '%*s' $PADDING '') |
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/sh | |
| # Options | |
| RANDOM_CHARS=$(< /dev/urandom tr -dc a-z0-9 | head -c10) | |
| FILE_DESTINATION='/home/pmathis/Pictures/Screenshots' | |
| FILE_FORMAT=$RANDOM_CHARS'_%Y-%m-%d_%H.%M.%S.png' | |
| SSH_ALIAS='trinity' | |
| SSH_FOLDER='/home/pmathis/public/screens.snapserv.net' | |
| HTTP_URL='https://screens.snapserv.net' | |
| SUCCESS_ICON='/usr/share/icons/gnome/32x32/status/stock_dialog-info.png' | |
| FAILURE_ICON='/usr/share/icons/gnome/32x32/status/stock_dialog-error.png' |
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
| # Modules | |
| sequelize = require('sequelize') | |
| # Connect to database | |
| Sequelize = new sequelize('sequelize', 'sequelize', 'sequelize-test', | |
| host: 'localhost' | |
| port: '3306' | |
| dialect: 'mysql' | |
| syncOnAssociation: false |
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
| ########################################################### | |
| # Two factor authentication with DuoSecurity # | |
| # # | |
| # (c) 2012 P. Mathis <pmathis@snapserv.net> # | |
| ########################################################### | |
| # This script will improve the normal UNIX integration # | |
| # of DuoSecurity. You can specify for each SSH subsystem # | |
| # if the two factor authentication is required. # | |
| # # | |
| # I am not responsible for lost or breached servers, # |
NewerOlder