I hereby claim:
- I am dgoguerra on github.
- I am dgoguerra (https://keybase.io/dgoguerra) on keybase.
- I have a public key ASCsYWW7qgQFJRPGlbFpV_-WXA_jShwnI1sQ283-_b-yKgo
To claim this, I am signing this object:
| # Recently I had to send a password to someone over Skype. Since that's obviously not a good idea, I asked for | |
| # the person's public SSH RSA key, and used it to encrypt the password itself. | |
| # Convert the public key into PEM format | |
| ssh-keygen -f path/to/id_rsa.pub -e -m pem > ~/id_rsa.pub.pem | |
| # Using the public pem file to encrypt a string | |
| echo "sometext" | openssl rsautl -encrypt -pubin -inkey ~/id_rsa.pub.pem > ~/encrypted.txt |
| FROM amazonlinux:2 | |
| # Install NodeJS v12 | |
| RUN set -eux \ | |
| && curl -sL -o nodesource.rpm https://rpm.nodesource.com/pub_12.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm \ | |
| && rpm -i --nosignature --force nodesource.rpm \ | |
| && rm -f nodesource.rpm \ | |
| && yum install -y nodejs | |
| ENTRYPOINT ["node"] |
I hereby claim:
To claim this, I am signing this object:
ngrok http -host-header=rewrite site.dev:80
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\DB; | |
| class RestartDatabase extends Command | |
| { | |
| /** |
Ubuntu 16, from packages:
sudo apt-get install php7.1-sodium
sudo service apache2 restart
Alternative (https://lukasmestan.com/install-libsodium-extension-in-php7/)
curl http://169.254.169.254/latest/dynamic/instance-identity/document
## When you have SUPER privileges
# enable query log
SET GLOBAL general_log = 'ON';
SET GLOBAL log_output = 'TABLE';
# disable query log
SET GLOBAL general_log = 'OFF';
| # Get Sudo. | |
| if [ $EUID != 0 ]; then | |
| sudo "$0" "$@" | |
| exit $? | |
| fi | |
| # Install Xcode first - https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 | |
| # Install Xcode command line tools. | |
| xcode-select --install |