brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh
| #! /bin/bash | |
| ENVS=$(egrep -v '^#' .env | xargs) | |
| ARRAY_ENVS=($(echo $ENVS | tr ' ' ' ')) | |
| prop="name" | |
| APP_NAME="$(node -pe "require('./package.json')['$prop']")" | |
| TOTAL="${#ARRAY_ENVS[@]}" | |
| TOTAL=$((TOTAL - 1)) |
| import { SSM } from "aws-sdk"; | |
| const getParameterWorker = async (name:string, decrypt:boolean) : Promise<string> => { | |
| const ssm = new SSM(); | |
| const result = await ssm | |
| .getParameter({ Name: name, WithDecryption: decrypt }) | |
| .promise(); | |
| return result.Parameter.Value; | |
| } |
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh
| #!/bin/bash | |
| PARAMATER="laravel-env" | |
| REGION="eu-central-1" | |
| WEB_DIR="/var/www/laravel" | |
| WEB_USER="www-data" | |
| # Get parameters and put it into .env file inside application root | |
| aws ssm get-parameter --with-decryption --name $PARAMATER --region $REGION --query Parameter.Value | sed -e 's/^"//' -e 's/"$//' -e 's/\\n/\n/g' -e 's/\\//g' > $WEB_DIR/.env |
Download and run the Adobe Creative Cloud Cleaner Tool, their multi-app uninstaller and wipe assistant. Adobe does recommend running individual application uninstallers first, your call. Click the Clean All option.
Type a one line command in terminal find ~/ -iname "*adobe*" and it's shows up all files which match pattern.
To remove all files
`sudo rm -rf /Applications/Adobe* /Applications/Utilities/Adobe* /Library/Application\ Support/Adobe /Library/Preferences/com.adobe.* /Library/PrivilegedHelperTools/com.adobe.* /private/var/db/receipts/com.adobe.* ~/Library/Application\ Support/Adobe* ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.adobe* ~/Library/Application\ Support/CrashReporter/Adobe* ~/Library/Caches/Adobe ~/Library/Caches/com.Adobe.* ~/Library/Caches/com.adobe.* ~/Library/Cookies/com.adobe.* ~/Library/Logs/Adobe* ~/Librar
| #!/bin/bash -e | |
| aws ssm get-parameters-by-path \ | |
| --path "/myapp/" \ | |
| --with-decryption \ | |
| --query "Parameters[*].[Name,Value]" \ | |
| --output text | | |
| while read line | |
| do | |
| name=$(echo ${line} | cut -f 1 -d ' ' | sed -e 's/\/myapp\///g') |
| <?php | |
| /** | |
| * Assumes https://github.com/Spomky-Labs/jose library is installed and autoloading is set up | |
| * Decode and verify token guide: https://github.com/Spomky-Labs/jose/blob/master/doc/operation/Verify.md | |
| */ | |
| use Jose\Factory\JWKFactory; | |
| use Jose\Loader; | |
| // We load the key set from a URL | |
| // JSON Key URL (JKU) - https://cognito-idp.{region}.amazonaws.com/{userPoolId}/.well-known/jwks.json. |
| <?php | |
| /* | |
| * Set the following constants in wp-config.php. | |
| * These should be added somewhere BEFORE the constant ABSPATH is defined. | |
| * | |
| * Author: Chad Butler | |
| * Author URI: https://butlerblog.com | |
| * | |
| * For more information and instructions, see: https://b.utler.co/Y3 |
| <?php | |
| /* | |
| Plugin Name: Custom List Table Example | |
| Plugin URI: http://www.mattvanandel.com/ | |
| Description: A highly documented plugin that demonstrates how to create custom List Tables using official WordPress APIs. | |
| Version: 1.3 | |
| Author: Matt Van Andel | |
| Author URI: http://www.mattvanandel.com | |
| License: GPL2 | |
| */ |