This file contains 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
function ssht { | |
ssh $@ -t 'tmux -CC attach || tmux -CC' | |
} |
This file contains 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: | |
consul1: | |
image: "consul:latest" | |
container_name: "consul1" | |
hostname: "consul1" | |
ports: | |
- "8400:8400" | |
- "8500:8500" | |
- "8600:53" |
This file contains 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
(%{NUMBER:upresp_time}|-) %{NUMBER:req_time} \"(%{IPV4:upstr_addr}:%{NUMBER:port}|%{NOTSPACE:upstr})\" %{IPV4:remote_addr} %{SYSLOG5424SD:date} %{NUMBER:response} %{QS} \"(?:%{WORD:verb}%{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})\" %{NUMBER:req_len}/%{NUMBER:bytes_send} %{QS:refer} %{QS:user_agent} %{IPORHOST:host} |
This file contains 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/sh | |
set -e | |
image_tag="ubuntu-base-14.04-i386:initial" | |
debootstrap --arch=i386 trusty /tmp/rootfs32 | |
tar czf /tmp/trusty_base32_rootfs.tgz -C /tmp/rootfs32 . | |
echo "" | |
image_id=`cat /tmp/trusty_base32_rootfs.tgz | docker import - $image_tag` |
This file contains 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
log_format timelog '$upstream_response_time $request_time "$upstream_addr" $remote_addr [$time_local] $status "$sent_http_x_counter" "$request" $request_length/$bytes_sent "$http_referer" "$http_user_agent" $host'; |
This file contains 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |