A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
<cfcomponent output="true"> | |
<!--- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ---> | |
<cffunction name="getManager" access="public" output="true" returntype="any"> | |
<cfreturn variables.mainManager /> | |
</cffunction> | |
<cffunction name="setManager" access="public" output="true" returntype="void"> | |
<cfargument name="mainManager" type="any" required="true" /> | |
<cfset variables.mainManager = arguments.mainManager /> |
<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) /> | |
</cfif> |
#!/bin/bash | |
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 |
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 |
#!/bin/bash | |
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- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash |
0002010102112926000910091704805091009170485802MM64060002my54030.05303MMK6231010100209100917048100910091704863040956 | |
/* | |
TagId | |
ValueLength | |
Value | |
*/ | |
00 [Payload Format Indicator - M] |
+-- app | |
| +-- bower.json | |
| +-- index.html | |
| +-- index.js | |
| +-- index.css | |
+-- gulpfile.js | |
+-- package.json | |
### STAGE 1: Build ### |
version: 0.0 | |
os: linux | |
files: | |
- source: / | |
destination: /home/ec2-user/node | |
permissions: | |
- object: /home/ec2-user | |
owner: ec2-user | |
group: ec2-user | |
type: |
version: 0.1 | |
# REQUIRED ENVIRONMENT VARIABLES | |
# 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) |