export LD_LIBRARY_PATH="/usr/local/lib"
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
| # install required packages | |
| add-apt-repository ppa:webupd8team/java | |
| apt -y update | |
| apt -y upgrade | |
| apt -y dist-upgrade | |
| apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \ | |
| libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \ | |
| tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven mysql-server mysql-client mysql-common mysql-utilities libpulse-dev \ | |
| libvorbis-dev freerdp ghostscript wget |
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
| Xcursor.theme: Vanilla-DMZ-AA | |
| !urxvt color scheme: | |
| URxvt*background: #2B2B2B | |
| URxvt*foreground: #DEDEDE | |
| URxvt*colorUL: #86a2b0 | |
| ! black |
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
| [mysqld] | |
| ## Performance Specific ## | |
| ########################## | |
| innodb_buffer_pool_size = 12G ### How much innodb data to store in memory. Higher = faster performance | |
| innodb_file_per_table = 1 ### Each innodb table is its own file on disk. | |
| innodb_flush_log_at_trx_commit = 2 ### Flushes to disk in batches instead of per change | |
| innodb_io_capacity = 800 ### Min IO speed expected to write to disk. | |
| read_buffer_size = 2M ### Helps with reading temp tables faster, bulk inserts and nested queries |
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
| # Prerequisites: `doctl`, `curl` and `jq` | |
| # See https://www.digitalocean.com/community/tutorials/how-to-use-doctl-the-official-digitalocean-command-line-client | |
| # In this particular case, we are going to open the port 22 for ssh connection. | |
| MY_IP=$(curl --silent ifconfig.io/ip) && doctl compute firewall add-rules $(doctl compute firewall list --output=json | jq -r '.[].id') --inbound-rules "protocol:tcp,ports:22,address:${MY_IP}/32" |
Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.
And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.
If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.
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
| --- | |
| - name: create array of installable package names | |
| set_fact: | |
| myItems: | |
| - firefox | |
| - googlechrome | |
| - vcredist2008 | |
| - vcredist2012 | |
| - notepadplusplus |
Estimated time: 10 minutes
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
| #!/usr/bin/env bash | |
| set \ | |
| -o nounset \ | |
| -o pipefail \ | |
| -o errexit | |
| tags=$(doctl compute tag list --output json | jq -r '.[].name') | |
| aggregate=$(jq -n '{ "_meta": { "hostvars": { } } }') |
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
| #place in /etc/letsencrypt/renewal-hooks/post | |
| export AWS_ACCESS_KEY_ID=XXX | |
| export AWS_SECRET_ACCESS_KEY=XXX | |
| #certs must be in us-east-1 to use with cloudfront | |
| export AWS_DEFAULT_REGION=us-east-1 | |
| #run without --certificate-arn first time then specify arn for updates | |
| aws acm import-certificate --certificate file:///etc/letsencrypt/live/site.com/cert.pem --private-key file:///etc/letsencrypt/live/site.com/privkey.pem --certificate-chain file:///etc/letsencrypt/live/site.com/chain.pem --certificate-arn specifyarnforupdate |