AWS permissions on buckets for users and roles

Full access for specific IAM user/role Type: bucket { "Version":"2012-10-17", "Statement":[ { "Action":[ "s3:*" ], "Effect":"Allow", "Principal":{ "AWS":[ "arn:aws:iam::ACCOUNT_ID:user/USERNAME_A", "arn:aws:iam::ACCOUNT_ID:user/USERNAME_B", "arn:aws:iam::ACCOUNT_ID:user/USERNAME_C", "arn:aws:iam::ACCOUNT_ID:role/ROLE_A", "arn:aws:iam::ACCOUNT_ID:role/ROLE_B", "arn:aws:iam::ACCOUNT_ID:role/ROLE_C" ] }, "Resource":[ "arn:aws:s3:::BUCKET_NAME", "arn:aws:s3:::BUCKET_NAME/*" ] } ] }

Install node.js on Centos 6.8

Epel’s yum install does not cut it anymore at time of writing installing node.js causes a mass of 404s and file not found.   current best approach : Enterprise Linux and Fedora Including Red Hat® Enterprise Linux® / RHEL, CentOS and Fedora. Node.js is available from the NodeSource Enterprise Linux and Fedora binary distributions repository. […]

Enable Gzip Compression in Apache

This is a simple sample configuration for the impatient. Compress only a few types AddOutputFilterByType DEFLATE text/html text/plain text/xml The following configuration, while resulting in more compressed content, is also much more complicated. Do not use this unless you fully understand all the configuration details. Compress everything except images <Location /> # Insert filter SetOutputFilter […]

Use ssh keys to encrypt and decrypt messages

Encryption with RSA Key Pairs During the Thanksgiving holiday I wondered, “how hard would it be to encrypt and decrypt files with my SSH key?” Encryption is the purpose of public/private RSA key pairs, after all. With `openssl`, it’s not too hard. (Note: If you’re on OSX, you should install the latest versions of OpenSSL […]