Skip to content

Instantly share code, notes, and snippets.

aws-joe

Block or report user

Report or block aws-joe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View aws-cloudfront-data-create-dist.php
$cfCreateDistData = [
'DistributionConfig' => [ // REQUIRED
'Aliases' => [
'Items' => ['dev-null.link', 'www.dev-null.link' ],
'Quantity' => 2, // REQUIRED
],
'CacheBehaviors' => [
'Items' => [
[
'AllowedMethods' => [
View solano-task-definition.json
{
"containerDefinitions": [
{
"name": "solano-task-definition",
"image": "<ACCOUNT ID>.dkr.ecr.<REGION>.amazonaws.com/solano:init",
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
View solano-ecs-push-policy.json
{
"Version" : "2008-10-17",
"Statement" : [ {
"Sid" : "allow-solano-role",
"Effect" : "Allow",
"Principal" : {
"AWS" : "arn:aws:iam::<ACCOUNT ID>:role/solano-ci-role"
},
"Action" : [ "ecr:GetDownloadUrlForLayer", "ecr:BatchGetImage", "ecr:BatchCheckLayerAvailability", "ecr:PutImage", "ecr:InitiateLayerUpload", "ecr:UploadLayerPart", "ecr:CompleteLayerUpload" ]
} ]
View solano-docker.yml
system:
docker: true
queue: docker
environment:
'DOCKER_APP': 'solano-ecs-repo'
'DEPLOY_AWS_ECS': 'true'
'AWS_ECS_CLUSTER': 'solano-ecs-cluster'
'AWS_ECS_SERVICE': 'solano-ecs-service'
'AWS_ECS_TASK_DEFINITION': 'solano-family'
View solano-role-policy-doc.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::AWSACCOUNTIDTMP:root"
},
"Action": "sts:AssumeRole",
"Condition": {
View solano-task-definition.json
{
"containerDefinitions": [
{
"name": "solano-task-definition",
"image": "<ACCOUNT ID>.dkr.ecr.us-east-1.amazonaws.com/solano:init",
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
View solano-ecr-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [ "ecr:GetAuthorizationToken" ],
"Resource": [ "*" ]
}
]
}
View blue-button-http.js
//to run:
// # node blue-button-http.js &
//make sure that the NPM modules below are installed
var http = require('http');
var qs = require('querystring');
var bb = require('blue-button');
//Lets define a port we want to listen to
const PORT=8000;
var conn_count = 0;
View hl7-v2-siu-s12.txt
MSH|^~\&|SOURCEEHR|WA|MIRTHDST|WA|201611111111||SIU^S12|MSGID10001|P|2.3|
SCH|30000001|||||CHECKUP|ROUTINE|NORMAL|20|MIN|201611111400|||||JOHN||||(206)555-5309|||||ARRIVED
PD1||||123456^DOCTOR^BOB^T^^DR|
PID|1|100001^^^1^MRN1|900001||DOE^JOHN^^^^||19601111|M||WH|111 THAT PL^^HERE^WA^98020^USA||(206)555-5309|||M|NON|999999999|
PV1|1|O|||||123456^DOCTOR^BOB^T^^DR|^|||||||||||||||||||||||||||||||||||||||||||||
AIL|||123456^DOCTOR^BOB^T^^DR|||201611110000|||20|MIN
AIG|||7777|||||201611110000|||20|MIN
NTE|1||ANNUAL HLCK^^|
AIP|1||PBN^LISAPORTER|50|||||||||
View hl7-v2-adt-a01.txt
MSH|^~\&|SOURCEEHR|WA|MIRTHDST|WA|201611111111||ADT^A01|MSGID10001|P|2.3|
EVN|A01|201611111111||
PID|1|100001^^^1^MRN1|900001||DOE^JOHN^^^^||19601111|M||WH|111 THAT PL^^HERE^WA^98020^USA||(206)555-5309|||M|NON|999999999|
NK1|1|DOE^JANE^|WIFE||(206)555-5555||||NK^NEXT OF KIN
PV1|1|O|1001^2002^01||||123456^DOCTOR^BOB^T^^DR|||||||ADM|A0|
You can’t perform that action at this time.