-
Create the following folder structure in your root project directory: .ebextensions/supervisor
-
Place the supervisor.config under .ebextensions/
-
Place the setup.sh under .ebextensions/supervisor/
-
Run "chmod +x .ebextensions/supervisor/setup.sh"
-
Place the supervisord.conf under .ebextensions/supervisor/
#Elastic Beanstalk + New Relic PHP
Add an environment variable called "NR_INSTALL_KEY" and set the value as your New Relic license key.
Copy the config file into .ebextensions as newrelic.config.
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
package main | |
import ( | |
"database/sql" | |
"strconv" | |
"log" | |
"net/http" | |
"fmt" | |
"bytes" | |
"gopkg.in/gin-gonic/gin.v1" |
- Install via chocolately
choco install conemu -y
- Install via chocolately
choco install nginx -y
** The-y
argument is to skip any confirmation messages...just install it. It's fine ;)
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
<?php | |
// curl -sS https://getcomposer.org/installer | php | |
// php composer.phar require aws/aws-sdk-php | |
// export AWS_ACCESS_KEY_ID=... | |
// export AWS_SECRET_ACCESS_KEY=... | |
$queueUrl = '<INSERT_URL_OF_EXISTING_QUEUE_HERE>'; |
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
#!/bin/bash | |
# Replaces annoying "fancy" quotes created by programs like Microsoft Word and everything in MacOS | |
# with normal ASCII single-quotes (') or double-quotes (") | |
# This script does NOT replace the GRAVE ACCENT (`) since it is commonly used in Markdown and as a bash command | |
# See: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html | |
SINGLE=$(echo -ne '\u00B4\u2018\u2019') | |
DOUBLE=$(echo -ne '\u201C\u201D') | |
sed -i "s/[$SINGLE]/'/g; s/[$DOUBLE]/\"/g" $1 |
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
Install-Module posh-git -Scope CurrentUser | |
Install-Module oh-my-posh -Scope CurrentUser | |
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck | |
Then run "notepad $PROFILE" and add these lines to the end: | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Paradox |
Retrieve hosted zones with aws route53 list-hosted-zones
then enter the zone Id below:
aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv'