Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1b - Decimal:
27
| #!/bin/bash | |
| set -o nounset -o pipefail | |
| # | |
| function -h { | |
| cat <<USAGE | |
| Generate iptables rules for running docker containers. Use | |
| $(basename $0) -v -n | |
| to inspect iptables rules without applying changes. | |
| USAGE: | |
| -b / --binary iptables binary |
| *nat | |
| :PREROUTING ACCEPT | |
| :INPUT ACCEPT | |
| :OUTPUT ACCEPT | |
| :POSTROUTING ACCEPT | |
| :DOCKER - | |
| # (nat.1) | |
| # when receiving a connection targeting a local address | |
| # from the outside world to 1.1.1.1, |
| FROM nginx | |
| RUN echo 'server {\n\ | |
| listen 80 default_server;\n\ | |
| location / {\n\ | |
| proxy_pass http://httpbin.org/delay/10;\n\ | |
| }\n\ | |
| }' > /etc/nginx/conf.d/default.conf | |
| STOPSIGNAL SIGQUIT |
| """ | |
| A perl Data.Dumper clone for Python | |
| Author: [email protected] | |
| 2011-07-08 | |
| Copyright 2011 Jinyu LIU | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
| { | |
| "title": "Control_L + Shift_L to Control + Space", | |
| "rules": [ | |
| { | |
| "description": "Control_L + Shift_L to Control + Space", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "left_shift", |
| --- | |
| - name: Check status of jailing | |
| shell: "sysctl security.jail.jailed | cut -d: -f2 | tr -d ' '" | |
| register: is_jail | |
| when: "ansible_os_family == 'FreeBSD' " | |
| - name: Fetch and Install Updates | |
| command: "{{ item }}" | |
| when: "ansible_os_family == 'FreeBSD' and is_jail.stdout == '0'" |