Skip to content

Instantly share code, notes, and snippets.


Pyae Phyoe Shein ppshein

View GitHub Profile
View BasePlugin.cfc
<cfcomponent output="true">
<!--- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: --->
<cffunction name="getManager" access="public" output="true" returntype="any">
<cfreturn variables.mainManager />
<cffunction name="setManager" access="public" output="true" returntype="void">
<cfargument name="mainManager" type="any" required="true" />
<cfset variables.mainManager = arguments.mainManager />
View ListGetDifferent.cfm
<cffunction name="ListGetDifferent" output="yes">
<cfargument name="mainList" required="Yes" />
<cfargument name="compareList" required="Yes" />
<cfargument name="CompareType" required="Yes" default="Same" />
<cfset ReturnList = "" />
<cfif CompareType EQ "Same">
<cfloop list="#mainList#" index="i">
<cfif ListFindNoCase(compareList,i)>
<cfset ReturnList = ListAppend(ReturnList,i) />
ppshein / gist:3c06935d38ceffa2133a5ffd996700ed
Created Dec 5, 2018 — forked from mikepfeiffer/gist:4d9386afdcceaf29493a
EC2 UserData script to install CodeDeploy agent
View gist:3c06935d38ceffa2133a5ffd996700ed
yum install -y aws-cli
cd /home/ec2-user/
aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1
yum -y install codedeploy-agent.noarch.rpm
View Install Ansible and Docker
sudo yum update -y
sudo yum install docker -v
sudo service docker start
sudo yum-config-manager --enable epel
sudo yum repolist
sudo yum install ansible
00 [Payload Format Indicator - M]
View Docker for AngularJS & Nginx
+-- app
| +-- bower.json
| +-- index.html
| +-- index.js
| +-- index.css
+-- gulpfile.js
+-- package.json
### STAGE 1: Build ###
ppshein /
Created Mar 15, 2019 — forked from sloria/
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General


  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
View AWS CodeDeploy Bash Script
yum update
yum install -y ruby
cd /home/ec2-user
aws s3 cp s3://aws-codedeploy-us-west-1/latest/install .
chmod +x ./install
./install auto
curl -o- | bash
ppshein / appspec.yml
Created Apr 10, 2019 — forked from moshest/appspec.yml
Node.js Project on AWS CodeDeploy CentOS
View appspec.yml
version: 0.0
os: linux
- source: /
destination: /home/ec2-user/node
- object: /home/ec2-user
owner: ec2-user
group: ec2-user
ppshein / aws-codebuild-cross-account-image-push.yml
Created May 10, 2019 — forked from tvalletta/aws-codebuild-cross-account-image-push.yml
AWS CodeBuild buildspec.yml example for building a docker image and pushing it to a AWS ECS docker repo in another AWS account
View aws-codebuild-cross-account-image-push.yml
version: 0.1
# AWS_KEY - AWS Access Key ID
# AWS_SEC - AWS Secret Access Key
# AWS_REG - AWS Default Region (e.g. us-west-2)
# AWS_OUT - AWS Output Format (e.g. json)
# AWS_PROF - AWS Profile name (e.g. central-account)
# IMAGE_REPO_NAME - Name of the image repo (e.g. my-app)
# IMAGE_TAG - Tag for the image (e.g. latest)