This file contains 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 -n "Client ID: " | |
read CLIENT_ID | |
echo -n "Client Secret: " | |
read -s CLIENT_SECRET | |
echo | |
echo -n "Username: " | |
read username | |
echo -n "Password: " | |
read -s password |
This file contains 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
package util | |
import ( | |
"math" | |
"strings" | |
) | |
// StrPad returns the input string padded on the left, right or both sides using padType to the specified padding length padLength. | |
// | |
// Example: |
This file contains 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
var logo = "%c \n" + | |
" \n" + | |
" ,, ,, \n" + | |
" `7MM `7MM \n" + | |
" MM MM \n" + | |
" ,p6\"bo ,pW\"Wq.`7MMpMMMb. ,pP\"Ybd ,pW\"Wq. MM .gP\"Ya MM ,pW\"Wq. .P\"Ybmmm \n" + | |
"6M' OO 6W' `Wb MM MM 8I `\" 6W' `Wb MM ,M' Yb MM 6W' `Wb :MI I8 \n" + | |
"8M 8M M8 MM MM `YMMMa. 8M M8 MM 8M\"\"\"\"\"\" MM 8M M8 WmmmP\" \n" + | |
"YM. , YA. ,A9 MM MM L. I8 YA. ,A9 MM YM. , ,, MM YA. ,A9 8M \n" + | |
" YMbmd' `Ybmd9'.JMML JMML.M9mmmP' `Ybmd9'.JMML.`Mbmmd' db .JMML.`Ybmd9' YMMMMMb \n" + |
This file contains 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
#!/usr/local/bin/zsh | |
# Backup each MySQL Databases in separate tar.xz files | |
# MAX_DAYS - choose how many days to backup | |
# depends on ~/.my.cnf | |
BACKUP_DIR="/var/backups/mysql" | |
EXCLUDE_DBS=(information_schema mysql performance_schema sys) | |
CURRENT_DATE=`date +\%Y-\%m-\%d` | |
MAX_DAYS=2 |
This file contains 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
var pdf = require('html-pdf'); | |
var options = { | |
'format': 'A4', | |
'border': '1cm', | |
'header': { | |
'height':'5cm' | |
}, | |
'footer': { | |
'footer': '5cm' |