Backup Jenkins configuration XML files.
Python 2.7 and pip
are required.
$ virtualenv --distribute $HOME/pyvenv/jenkins-backup
# Calculate by response status code. | |
cat /usr/local/nginx/latest/logs/access.log | | |
awk '$9 < 200 || $9 >= 600 { print $0 > "/dev/stderr"; } | |
$9 >= 200 && $9 < 600 { print $9; }' | | |
sort | | |
uniq -c | |
# Show raw lines of specific response status code line. | |
cat /usr/local/nginx/latest/logs/access.log | | |
awk '$9 == 301 { print $0 ; }' |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" Convert Combined Log Format stream into TSV file. | |
To get known about access log, see Apache HTTP server official document. | |
* [`en <http://httpd.apache.org/docs/2.4/en/logs.html>`_] | |
* [`ja <http://httpd.apache.org/docs/2.4/ja/logs.html>`_] |
version: '2' | |
services: | |
web: | |
image: nginx:1.10 | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /opt/nginx/html:/usr/share/nginx/html | |
logspout: |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Get updated issues of Redmine by each day. | |
Setup & Usage | |
------------- | |
Python 2.7, ``virtualenv``, and ``pip`` are required. |
Memo about OpenData and their utilization. [Wikipedia日本語]
オープン・ガバメント、透明でオープンな政府を実現する取り組み。市民参加を促進する。 WIRED vol.9 に詳しい。