SELENIUM TEST WITH DOCKER-COMPOSE
Sample config file when using selenium standalone during test.
docker-compose YAML
AWS KMS - TWO LINERS
For binary encrypted output:
aws kms encrypt --region ap-southeast-2 --key-id alias/blah --plaintext fileb://blah --output text --query CiphertextBlob | base64 --decode > blah.enc
aws kms decrypt --ciphertext-blob fileb://blah.enc --output text --query Plaintext | base64 --decode
For base64 encrypted output:
USER PROFILE SERVICE FAILED THE LOGON. USER PROFILE CANNOT BE LOADED.
https://support.microsoft.com/en-us/contact/menu/software/windows/ts/
Had to contact Microsoft support to receive default file. Download
CURL NET PERFORMANCE TEST
Print out CloudFront X-Amz-Cf-Id when response time is slower than set threshold.
REPLACE MERCEDES-BENZ B250 CABIN(POLLEN) FILTER REPLACEMENT DIY
Quoted $300+ from dealer shop which I know a serious rip-off price for mere carbon filter.
MONGODB TO DYNAMODB
Attempted to convert rather large mongo dump to dynamo.
Seems like AWS data pipeline is most elegant way to do this if one can workaround with dynamo non-standard json format issue.
EUROPE TRAVEL 2016
Turkey - Istanbul Good: Nice people and food Bad: Syrian refugees(=security risks), bit too excessive street sales
LETS ENCRYPT NGINX SSL CERTIFICATE RENEWAL VIA CRON
Add below as a cron entry.
#!/bin/bash
/path/letsencrypt/letsencrypt-auto --server https://acme-v01.api.letsencrypt.org/directory --renew-by-default -a webroot --webroot-path /webroot/ --email youremail --text --agree-tos --agree-dev-preview -d 7979.us -d www.7979.us auth
/etc/init.d/nginx reload
Then configure nginx SSL like below.
F5 AAM CACHE FOR APP GENERATED PAGES
Dynamic content requires cache-control(max-age) and/or expires header to be cached.
RUN HTTP POST REQUEST FROM CHROME DEVELOPER TOOLS
Do this from developer mode console.
May need to load a page from the same domain to avoid cross domain validation failure.