I hereby claim:
- I am midn on github.
- I am midn (https://keybase.io/midn) on keybase.
- I have a public key whose fingerprint is BA23 A1B4 3F7F 495F D162 77E9 A571 3E14 50D1 6B41
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
VPN: | |
Type: AWS::SSM::Association | |
Properties: | |
AssociationName: "vpn_sync" | |
Name: 'AWS-RunShellScript' | |
ScheduleExpression: "cron(0 0 0/1 1/1 * ? *)" | |
Parameters: | |
commands: | |
- !Sub | | |
#!/bin/bash |
Eni: | |
Type: AWS::EC2::NetworkInterface | |
Properties: | |
SourceDestCheck: false | |
GroupSet: your_sg | |
SubnetId: your_subnet | |
PrivateIpAddress: 172.16.13.37 | |
Eip: | |
Type: AWS::EC2::EIP | |
Properties: |
#!/bin/bash | |
instance_id=$(curl -s http://169.254.169.254/latest/meta-data/instance-id) | |
if ! ifconfig | grep $2 > /dev/null | |
then | |
aId=$(aws ec2 describe-network-interfaces --network-interface-ids $1 --query 'NetworkInterfaces[].Attachment.AttachmentId' --output text) | |
if [ "$aId" != "" ]; then aws ec2 detach-network-interface --attachment-id $aId; fi | |
aws ec2 wait network-interface-available --network-interface-ids $1 | |
aws ec2 attach-network-interface --instance-id ${instance_id} --device-index 1 --network-interface-id $1 | |
while [ ! -f "/sys/class/net/eth1/address" ];do echo ENI not available, waiting; sleep 2;done | |
hwaddr=$(cat /sys/class/net/eth1/address) |
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
vpcId: | |
Type: AWS::EC2::VPC::Id | |
subnet: | |
Type: AWS::EC2::Subnet::Id | |
zone: | |
Type: AWS::Route53::HostedZone::Id | |
Resources: | |
lb: |
AWSTemplateFormatVersion: '2010-09-09' | |
Parameters: | |
vpcId: | |
Type: AWS::EC2::VPC::Id | |
subnet: | |
Type: AWS::EC2::Subnet::Id | |
zone: | |
Type: AWS::Route53::HostedZone::Id | |
cluster: | |
Type: String |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx-service | |
spec: | |
selector: | |
app: nginx | |
ports: | |
- protocol: TCP | |
port: 80 |
cname: | |
Type: AWS::Route53::RecordSet | |
Properties: | |
Name: yourapp | |
Type: "CNAME" | |
HostedZoneId: !Ref zone | |
ResourceRecords: | |
- !Ref lb |
rgroup: | |
Type: AWS::Route53::RecordSetGroup | |
Properties: | |
HostedZoneId: !Ref zone | |
RecordSets: | |
- Name: yourapp | |
Type: CNAME | |
SetIdentifier: ECS | |
Weight: '9' | |
ResourceRecords: |
... | |
func Home() { | |
keyPress(4, 15) | |
} | |
func CycleInput() { | |
keyPress(7, 1) | |
} | |
func keyPress(codeset int, code int) { |