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
| const path = require('path') | |
| const AWS = require('aws-sdk') | |
| const S3 = new AWS.S3({ | |
| signatureVersion: 'v4', | |
| }) | |
| const Sharp = require('sharp') | |
| const BUCKET = 'some-bucket' | |
| const QUALITY = 75 |
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
| # erlang deps | |
| # sudo yum groupinstall -y "Development Tools" | |
| # sudo yum install -y ncurses-devel openssl-devel java-1.8.0-openjdk | |
| # erlang | |
| sudo rpm -Uvh https://github.com/rabbitmq/erlang-rpm/releases/download/v22.3/erlang-22.3-1.el6.x86_64.rpm | |
| # Rabbit mq | |
| sudo rpm -Uvh sudo rpm -Uvh https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.3/rabbitmq-server-3.8.3-1.el6.noarch.rpm |
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
| SELECT table_name AS "Table", ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)" | |
| FROM information_schema.TABLES | |
| WHERE table_schema = "DATABASE_NAME_HERE" ORDER BY (data_length + index_length) DESC; |
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
| $ sudo yum install gcc gcc-c++ make libxslt fop ncurses-devel openssl-devel *openjdk-devel unixODBC unixODBC-devel rpm-build | |
| $ git clone https://github.com/rabbitmq/erlang-rpm.git | |
| $ cd erlang-rpm | |
| $ make | |
| $ cd RPMS/x86_64/ | |
| $ sudo yum install erlang-19.1.5-1.amzn1.x86_64.rpm | |
| $ cd ~ | |
| $ wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm | |
| $ sudo rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | |
| $ sudo yum install rabbitmq-server-3.6.5-1.noarch.rpm |
#Installing Nginx from source on Amazon linux#
This build was intended for use as a reverse proxy with the 3rd party ngx_http_substitutions_filter_module which is quite a bit more powerful than the included nginx sub filter module.
sudo yum -y update
sudo yum install -y pcre-devel zlib-devel openssl-devel gcc gcc-c++ make autoconf git
cd /usr/src
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
| <!-- Begin rabbitsreviews.com non-blocking box --> | |
| <iframe src="about:blank" id="rrAsync351" style="display:none" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" allowTransparency="true"></iframe> | |
| <script type="text/javascript"> | |
| // <!-- | |
| (function(e){var t="https:////www.pennynetwork.com/iframes/4267-ddftour/351-ddftour.html";var n=0;var r;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){n=1;r=e.getElementById("rrAsync351")}else{r=e.createElement("iframe")}r.frameBorder=0;r.setAttribute("id","aoSync351");r.setAttribute("frameborder",0);r.setAttribute("marginheight",0);r.setAttribute("marginwidth",0);r.setAttribute("scrolling","no");r.setAttribute("allowTransparency",true);r.width=962;r.height=102;try{if(n!=1){var i=e.getElementById("rrAsync351");i.parentNode.insertBefore(r,i);doc=r.contentWindow.document;r.contentWindow.document.open()}else{r.style.display=""}r.src=t}catch(s){doc.write('<iframe src="'+t+'" id="aoSync351" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" allowTrans |