Upgrading to PHP 7.2 on Amazon Linux

#Upgrading to PHP 7.2 on Amazon Linux #check current version of PHP php -v #stop APACHE and PHP services sudo service httpd stop #uninstall APACHE and PHP sudo yum remove httpd* php* #Get latest updates sudo yum update -y #install PHP 7.2 sudo yum install php72 #install MySQL driver for PHP 7.2 sudo yum install […]

WordPress Canonical URL, Permalink Redirect, ERR_TOO_MANY_REDIRECTS

WordPress uses .htaccess to automatically attempt to correct URLs that are misunderstood. This behavior can lead to errors such as ERR_TOO_MANY_REDIRECTS and prevent intended funcationality such as using an index.html as a landing page for the domain. It is possible to Disable WordPress Canonical URL or Permalink Auto Redirect to fix these problems.   This code […]

Alexa Fact Skill Content

  const SKILL_NAME = ‘SKILL_NAME ‘; const GET_FACT_MESSAGE = ‘Here\’s your information: ‘; const HELP_MESSAGE = ‘You can say tell me a fact, or, tell me about something… What can I help you with?’; const HELP_REPROMPT = ‘What can I help you with?’; const STOP_MESSAGE = ‘Goodbye!’; const data = [ ‘Fact Number One.’, ‘Fact […]

AWS CLI Builder

Tool for constructing AWS CLI commands https://awsclibuilder.com/home Created by https://twitter.com/pdomala

AWS BASH Export Lambda Functions

AWS CLI 2 for Exporting Lambdas https://gist.github.com/TheNetJedi/0847ba0ec1da9879b4fa1d8f3276b004 Export all lambda functions to lambdafunctions directory as indivudual zip files. Be sure to update the region, currently set to us-east-1 This works great in AWS CloudShell   mkdir lambdafunctions aws lambda list-functions | \ grep FunctionName | \ cut -d ‘”‘ -f4 | \ while read -r […]

AWS BASH Export Lex Bots

AWS CLI 2 for Exporting a Bot https://docs.aws.amazon.com/lex/latest/dg/export-to-lex.html https://docs.aws.amazon.com/lex/latest/dg/API_GetExport.html Export all bots to lexbots directory as indivudual zip files. Be sure to update the region, currently set to us-east-1   mkdir lexbots aws lex-models get-bots | grep name | cut -d ‘”‘ -f4 | \ while read -r name; do echo $name url=$(aws lex-models get-export […]

AWS CloudShell Gradle Install

Gradle versions available from: https://gradle.org/releases/   sudo mkdir /opt/gradle wget -c https://services.gradle.org/distributions/gradle-6.8.3-bin.zip sudo unzip -d /opt/gradle gradle-6.8.3-bin.zip export PATH=$PATH:/opt/gradle/gradle-6.8.3/bin gradle -v   **NOTE:   export PATH will have to be done over with every launch of the shell. Alternatively, add it to ~/.bash_profile PATH=$PATH:$HOME/.local/bin:$HOME/bin:/opt/gradle  

Apple Developer Certificate Expiration APPLEWWDCRCA3.cer

Periodically, Apple updates its development and distribution certificates. They are updated when XCode updates. If you haven’t updated to the latest version you may have to update these files yourself. 1. Download the certificate APPLEWWDCRCA3.cer 2. Install it into KeyChain Access https://developer.apple.com/support/certificates/ https://stackoverflow.com/questions/64596362/iphone-distribution-certificate-is-not-trusted