Skip to content

Instantly share code, notes, and snippets.

View aa6my's full-sized avatar
😈
curiosity

aa6mys aa6my

😈
curiosity
View GitHub Profile
@aa6my
aa6my / readme.md
Created June 20, 2022 03:09 — forked from johnyvelho/readme.md
Installing Supervisor on Elastic Beanstalk - 2021 - Linux AMI 2 - Laravel Worker Setup
  • 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/

@aa6my
aa6my / 001-README.MD
Created August 27, 2021 02:14
Elastic Beanstalk + New Relic + PHP Agent

#Elastic Beanstalk + New Relic PHP

Elastic Beanstalk environment variables

Add an environment variable called "NR_INSTALL_KEY" and set the value as your New Relic license key.

Add newrelic.config to .ebextensions folder

Copy the config file into .ebextensions as newrelic.config.

Vue.component('careers', {
template: '<div>A custom component!</div>',
data: function() {
var careerData = [];
client.getEntries()
.then(function (entries) {
// log the title for all the entries that have it
package main
import (
"database/sql"
"strconv"
"log"
"net/http"
"fmt"
"bytes"
"gopkg.in/gin-gonic/gin.v1"
@aa6my
aa6my / windows-10.md
Created April 10, 2021 01:55 — forked from BeKnowDo/windows-10.md
Windows 10 sucks...but we can make it less sucky. This is how I setup local development for Win10

Install Chocolately

Install ConEmu

  • Install via chocolately choco install conemu -y

Install Nginx

  • Install via chocolately choco install nginx -y ** The -y argument is to skip any confirmation messages...just install it. It's fine ;)
@aa6my
aa6my / README.md
Created February 28, 2021 03:05
transmission termux
@aa6my
aa6my / crontab
Created September 25, 2020 07:45
Launch + cron for jenkins slave in screen mode
*/1 * * * * /var/lib/jenkins/jenkins.sh
@aa6my
aa6my / OAuth.php
Created August 19, 2020 01:01
PHP - Example Woocommerce API V3
<?php
// vim: foldmethod=marker
/* Generic exception class
*/
// class OAuthException extends Exception {
// // pass
// }
class OAuthConsumer {
@aa6my
aa6my / send-receive-sqs.php
Created July 15, 2020 14:34 — forked from fbrnc/send-receive-sqs.php
Sending and receiving messages from/to AWS SQS via PHP
<?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>';