This file contains hidden or 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
{ | |
"auths": { | |
"https://index.docker.io/v1/": {}, | |
"localhost:8083": {} | |
}, | |
"credsStore": "osxkeychain" | |
} |
This file contains hidden or 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 | |
docker \ | |
run \ | |
--name portainer \ | |
--privileged \ | |
--detach \ | |
-p 9000:9000 \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v ~/Sites/docker-data/portainer/:/data \ |
This file contains hidden or 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 | |
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 \ |
This file contains hidden or 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
--- | |
- | |
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" |
This file contains hidden or 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
--- | |
- name: Toggle EC2 Instance Termination Protection | |
hosts: all | |
connection: local | |
gather_facts: false | |
pre_tasks: | |
- name: | |
fail: |
This file contains hidden or 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
--- | |
- | |
name: add user on local system | |
hosts: localhost | |
strategy: free | |
gather_facts: false | |
tasks: | |
- name: add user |
This file contains hidden or 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
--- | |
version: '2' | |
services: | |
shared: | |
image: busybox | |
container_name: shared | |
volumes: | |
- /tmp:/shared |
This file contains hidden or 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
@echo off | |
:: BEGIN: ensure all variables stay local: | |
setlocal | |
:: BEGIN: define config variables: | |
set versions_file="versions.txt" | |
:: END: define config variables: | |
This file contains hidden or 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 | |
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" \ |
This file contains hidden or 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 | |
aws \ | |
--profile="withmethod" \ | |
--region="eu-west-1" \ | |
ec2 \ | |
get-console-screenshot \ | |
--instance-id "i-01a2bc34d5d67e89f" \ | |
| jq \ | |
--raw-output \ |