Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys and enable Left option (⌥) key acts as: +Esc for the option commands to work.
| Modifier | Symbol |
|---|---|
| Option | ⌥ |
| Command | ⌘ |
| Control | ⌃ |
| Caps Lock | ⇪ |
| Shift | ⇧ |
| #!/bin/bash | |
| # CoreOS channel ["stable" | "beta" | "alpha"] | |
| channel=${1:-"alpha"} | |
| # AWS AMI disk backing ["pv" | "hvm"] | |
| disk=hvm | |
| # Use default us-east-1 region | |
| region=${2:-"us-east-1"} |
| 1. Find ID of container to move | |
| `docker ps -a` or `docker images` | |
| 2. Save container as new image: | |
| `docker save [newimage] | gzip > /tmp/docker-[newimage].tar.gz` | |
| 3. Copy file, `/tmp/docker-[newimage].tar.gz`, to destination and gunzip | |
| 4. Load new image: | |
| `docker load --input docker-[newimage].tar` |
| #!/bin/bash | |
| # Setup CentOS 7 host as AMI | |
| # Update base OS update, and install EPEL repo and Python Pip | |
| sudo yum -y update | |
| sudo yum –y install epel-release | |
| sudo yum -y install python-pip | |
| # Install Python add-ons: | |
| sudo pip install pystache |
Note: You may have to go into Preferences (⌘,) -> Profiles -> Keys and enable Left option (⌥) key acts as: +Esc for the option commands to work.
| Modifier | Symbol |
|---|---|
| Option | ⌥ |
| Command | ⌘ |
| Control | ⌃ |
| Caps Lock | ⇪ |
| Shift | ⇧ |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Resource": "arn:aws:es:us-east-1:<account_id>:domain/<es_domain>/<es_index|*>", | |
| "Principal": { | |
| "AWS": "arn:aws:iam::<account_id>:role/<iam_role>" | |
| }, | |
| "Action": ["es:*"], | |
| "Effect": "Allow", |
| # Force screen to process ^S/^Q | |
| deflogin on | |
| # Autodetach session on hangup instead of terminating screen completely | |
| autodetach on | |
| # Change escape command key invocation | |
| escape `` | |
| # Instead of Control-a, make the escape/command character be Control-s | |
| ##escape ^Ss |
| _complete_ssh_hosts () | |
| { | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| comp_ssh_hosts=$(cat ~/.ssh/config ~/.ssh/conf.d/*.ssh | \ | |
| grep "^Host " | grep -v '\*' | uniq | \ | |
| awk '{print $2}') | |
| COMPREPLY=( $(compgen -W "${comp_ssh_hosts}" -- $cur)) | |
| return 0 | |
| } |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/ansible-tester.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - role_name: the role name (default = "${role_name}") | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) |