This file contains 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
#!/usr/bin/env python | |
import socket | |
import threading | |
import subprocess | |
def handle_client(client_socket): | |
request = client_socket.recv(8192).decode('utf-8', errors='ignore') | |
first_line = request.split('\n')[0] |
This file contains 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
#!/usr/bin/env python | |
import boto3 | |
import argparse | |
from operator import itemgetter | |
from collections import defaultdict | |
def nested_defaultdict(): | |
return defaultdict(nested_defaultdict) |
This file contains 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
#cloud-config | |
package_upgrade: true | |
packages: | |
- nfs-utils | |
- httpd | |
- php | |
runcmd: | |
- echo "$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone).FILE_SYSTEM_ID.efs.us-west-2.amazonaws.com:/ /var/www/html/efs nfs4 defaults" >> /etc/fstab | |
- mkdir /var/www/html/efs | |
- mount -a |
This file contains 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 | |
usage() { | |
echo "Usage: $0 [-v <Ruth|Matthew|Amy>]" 1>&2 | |
echo "Ruth : Female English (US) - Default" 1>&2 | |
echo "Matthew : Male English (US)" 1>&2 | |
echo "Amy : Female English (British)" 1>&2 | |
exit | |
} |
This file contains 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
import ec2 = require('@aws-cdk/aws-ec2'); | |
import cdk = require('@aws-cdk/core'); | |
import { Fn, Tag, Resource } from '@aws-cdk/core'; | |
import { AmazonLinuxImage, UserData, InstanceType } from '@aws-cdk/aws-ec2'; | |
import { Role, ServicePrincipal, ManagedPolicy, CfnInstanceProfile } from '@aws-cdk/aws-iam' | |
/** | |
* Create my own Ec2 resource and Ec2 props as these are not yet defined in CDK | |
* These classes abstract low level details from CloudFormation |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<svg width="600" height="600" vertion="1.1" | |
id="svg" xmlns="http://www.w3.org/2000/svg"> | |
<defs> | |
<clipPath id="angleClip"> | |
<polygon id="atriangle" /> | |
</clipPath> |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<svg width="600" height="600" vertion="1.1" | |
id="svg" xmlns="http://www.w3.org/2000/svg"> | |
<defs> | |
<clipPath id="angleClip"> | |
<polygon id="atriangle" /> | |
</clipPath> |
This file contains 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
function update(account, id, schemaData, callback){ | |
schemaData.companyId = account.companyId; | |
kgo | |
({ | |
account: account, | |
id: id, | |
data: schemaData | |
}) |
This file contains 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
node_modules |
This file contains 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
function update(account, id, schemaData, callback){ | |
schemaData.companyId = account.companyId; | |
kgo | |
({ | |
account: account, | |
id: id, | |
data: schemaData | |
}) |
NewerOlder