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
200 2014-10-28T07:28 | |
200 2014-10-28T07:29 | |
4 2014-10-28T07:32 | |
4 2014-10-28T07:37 | |
200 2014-10-28T07:41 | |
4 2014-10-28T07:42 | |
2 2014-10-28T07:46 | |
802 2014-10-28T07:47 | |
4 2014-10-28T07:51 | |
400 2014-10-28T07:52 |
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
#!/usr/bin/env python2.7 | |
#fetch json list of user agents and transform to nginx rules | |
import requests,json,os | |
mobile_detect_file_url = 'https://raw.githubusercontent.com/serbanghita/Mobile-Detect/master/Mobile_Detect.json' | |
out_file = 'mobile_detect.conf' | |
print('fetching %s' % mobile_detect_file_url) | |
r = requests.get(mobile_detect_file_url) | |
md = json.loads(r.text) |
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
#LG agents | |
if ($http_user_agent ~* "(\bLG\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802)){" | |
set $mobileuadevice "mobile"; | |
} | |
#Wolfgang agents | |
if ($http_user_agent ~* "(AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q){" | |
set $mobileuadevice "mobile"; | |
} | |
#Dell agents | |
if ($http_user_agent ~* "(Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b){" |
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
Step 0 : FROM scratch | |
---> 511136ea3c5a | |
Step 1 : ADD test /root/test_0 | |
---> Using cache | |
---> dfcf6ddb607f | |
Step 2 : ADD test /root/test_1 | |
---> Using cache | |
---> be71a0577d51 | |
Step 3 : ADD test /root/test_2 | |
---> Using cache |
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
Sending build context to Docker daemon 9.216 kB | |
Sending build context to Docker daemon | |
Step 0 : FROM ubuntu:precise | |
---> c17f3f519388 | |
Step 1 : ADD test /root/test_0 | |
---> Using cache | |
---> 69d08aaa9a1a | |
Step 2 : ADD test /root/test_1 | |
---> Using cache | |
---> febe3f2c0f1f |
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 tsdocker() { | |
case "$1" in | |
set) | |
[ -z "$oldps1" ] || export PS1=$oldps1 | |
export oldps1=$PS1 | |
if [ -z "$2" ];then | |
unset DOCKER_HOST | |
else | |
export DOCKER_HOST="tcp://$2:4243" | |
export PS1="${PS1:0:-3}(docker-$2)${oldps1:(-2)}" |
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 dockerhost() { | |
[ -z "$oldps1" ] || export PS1=$oldps1 | |
export oldps1=$PS1 | |
if [ -z "$1" ];then | |
unset DOCKER_HOST | |
else | |
export DOCKER_HOST="tcp://$1:4243" | |
export PS1="${PS1:0:-3}(docker-$1)${oldps1:(-2)}" | |
fi | |
} |
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
public static $nodes = array | |
(<% nodes_data.each_pair do |key, value_hash| %> | |
'<%= key %>' => array | |
( | |
'server' => '<%= value_hash['server'] %>', | |
'port' => '<%= value_hash['port'] %>', | |
), | |
<% end %> | |
); |
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
"Package[ufw]": !ruby/object:Puppet::Resource::Status | |
change_count: 0 | |
changed: false | |
evaluation_time: | |
events: [] | |
failed: false | |
file: /etc/puppet/modules/ufw/manifests/init.pp | |
line: 4 | |
out_of_sync: false | |
out_of_sync_count: 0 |
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
FROM ubuntu:precise | |
RUN touch /root/test_0 | |
RUN touch /root/test_1 | |
RUN touch /root/test_2 | |
RUN touch /root/test_3 | |
RUN touch /root/test_4 | |
RUN touch /root/test_5 | |
RUN touch /root/test_6 | |
RUN touch /root/test_7 |