Download the package form Robo3t or using wget
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
| # preparation | |
| ## OpenID Connect library(use only http client) | |
| $ pear install openpear/Akita_OpenIDConnect-alpha | |
| ## RSA Crypt and X.509 handling library | |
| $ pear channel-discover phpseclib.sourceforge.net | |
| $ pear install phpseclib/Crypt_RSA | |
| $ pear install phpseclib/File_X509 | |
| # PHP Source | |
| $ cat signatureverification.php |
| <?php | |
| // bin2hex(random_bytes($length)) | |
| $token = bin2hex(random_bytes(64)); | |
| /* | |
| Examples: | |
| 39e9289a5b8328ecc4286da11076748716c41ec7fb94839a689f7dac5cdf5ba8bdc9a9acdc95b95245f80a00d58c9575c203ceb541507cce40dd5a96e9399f4a | |
| 1c46538c712e9b5bf0fe43d692147004f617b494d004e29daaf33e4528f253db5d911a690856f0b77cfa98103c8231bffff869f179125d17d28e52bfadb9f205 | |
| ... |
| #!/bin/sh | |
| curlExists=$(command -v curl) | |
| echo "Testing Postman version" | |
| targetName="" | |
| if [ -z $curlExists ]; then | |
| targetName=$(wget -S --spider "https://dl.pstmn.io/download/latest/linux64" 2>&1 | grep "Content-Disposition" | awk -F '=' '{ print $2 }') | |
| else |
| class Script { | |
| /** | |
| * @params {object} request | |
| */ | |
| process_incoming_request({ request }) { | |
| let color = "#00FF00"; // green | |
| switch(request.content.state) { | |
| case 'ok': | |
| color = '#00FF00'; | |
| break; |
| #!/bin/bash | |
| ### Variáveis | |
| PROGRAMAS_APT=( | |
| git | |
| git-flow | |
| google-chrome-stable | |
| deepin-terminal | |
| deepin-screen-recorder | |
| gnome-tweak-tool |
wgetwget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
| { | |
| "color_scheme": "Packages/Materialize/schemes/Material Seti.tmTheme", | |
| "font_face": "Ubuntu Mono Ligaturized", | |
| "font_size": 14, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "theme": "Material Seti.sublime-theme", | |
| "line_padding_top":4, |
| # Remove file from all commits on all branches | |
| git filter-branch --force --index-filter "git rm --cached --ignore-unmatch FILENAMEHERE" --prune-empty --tag-name-filter cat -- --all | |
| # After | |
| git push --all --force |
| #!/bin/bash | |
| echo 'Some Text' | ssh user@remotehost -T "cat > /remotefile.txt" | |
| # The -T disables pseudo-terminal allocation and stops you from getting the message, | |
| # Pseudo-terminal will not be allocated because stdin is not a terminal. | |
| # @see https://superuser.com/a/400720/341320 |
| # ... | |
| services: | |
| # ... | |
| service-name: | |
| # ... | |
| command: > | |
| bash -c " | |
| php artisan cache:clear && | |
| php artisan config:clear && |