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 | |
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 |
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
*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, |
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
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 |
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
""" | |
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. |
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
{ | |
"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", |
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: 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'" |