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
| # apt update -o APT::Key::GPGVCommand=1 |
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
| uploadFile: function (e) { | |
| var xhr = new XMLHttpRequest(); | |
| var form = new FormData(); | |
| var files = $(e.currentTarget)[0].files[0]; | |
| var allowedTypes = ['application/zip', 'application/x-zip-compressed']; | |
| if (allowedTypes.indexOf(files.type) === -1) { | |
| app.utils.notify({ |
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 | |
| printMessage () { | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: printMessage MESSAGE [printMessage_CHARACTER]" | |
| return 1 | |
| fi | |
| echo "" | |
| echo "" | |
| printf -v _hr "%*s" 80 && echo -en ${_hr// /${2--}} && echo -e "\r\033[2C$1" |