I hereby claim:
- I am ksatirli on github.
- I am ksatirli (https://keybase.io/ksatirli) on keybase.
- I have a public key whose fingerprint is 38F5 4ADD 621D 40EB 4E8F BBB2 599E 7F95 94DF 9E1F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| aws \ | |
| --profile="withmethod" \ | |
| --region="eu-west-1" \ | |
| ec2 \ | |
| get-console-screenshot \ | |
| --instance-id "i-01a2bc34d5d67e89f" \ | |
| | jq \ | |
| --raw-output \ |
| #!/bin/bash | |
| aws \ | |
| ec2 describe-images \ | |
| --owner "self" \ | |
| --filter "Name=root-device-type,Values=ebs" \ | |
| --filter "Name=hypervisor,Values=xen" \ | |
| --filter "Name=state,Values=available" \ | |
| --filter "Name=architecture,Values=x86_64" \ | |
| --filter "Name=public,Values=true" \ |
| @echo off | |
| :: BEGIN: ensure all variables stay local: | |
| setlocal | |
| :: BEGIN: define config variables: | |
| set versions_file="versions.txt" | |
| :: END: define config variables: | |
| --- | |
| version: '2' | |
| services: | |
| shared: | |
| image: busybox | |
| container_name: shared | |
| volumes: | |
| - /tmp:/shared |
| --- | |
| - | |
| name: add user on local system | |
| hosts: localhost | |
| strategy: free | |
| gather_facts: false | |
| tasks: | |
| - name: add user |
| --- | |
| - name: Toggle EC2 Instance Termination Protection | |
| hosts: all | |
| connection: local | |
| gather_facts: false | |
| pre_tasks: | |
| - name: | |
| fail: |
| --- | |
| - | |
| name: interacting with Docker | |
| hosts: localhost | |
| strategy: free | |
| gather_facts: true | |
| vars: | |
| docker_host_registry_path: "/Users/{{ lookup('env','USER') }}/Sites/_test.local/docker-registry" |
| #!/bin/bash | |
| DOMAINS=(example.com example.net) | |
| CONTACT="FirstName=Clifford,LastName=Smith,ContactType=COMPANY,OrganizationName=Method,AddressLine1=Sample Lane 123,City=Amsterdam,CountryCode=NL,ZipCode=1234 AB,PhoneNumber=+31.123456789,[email protected]" | |
| for DOMAIN in "${DOMAINS[@]}" | |
| do | |
| echo "going to update domain ${DOMAIN}" | |
| aws \ |
| #!/bin/bash | |
| docker \ | |
| run \ | |
| --name portainer \ | |
| --privileged \ | |
| --detach \ | |
| -p 9000:9000 \ | |
| -v /var/run/docker.sock:/var/run/docker.sock \ | |
| -v ~/Sites/docker-data/portainer/:/data \ |