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
--- commands.py 2007-12-28 15:45:16.000000000 +0900 | |
+++ commands.py 2013-02-05 22:22:42.000000000 +0900 | |
@@ -231,8 +231,8 @@ | |
For explanations of these, please see the Python re module | |
documentation. | |
""" | |
- regexp = re.compile(what, _parseFindFlags(flags)) | |
- page = browser.get_html() | |
+ regexp = re.compile(unicode(what), _parseFindFlags(flags)) | |
+ page = browser.get_html().decode(browser._browser.encoding(), 'ignore') |
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
""" | |
Extension functions for manipulating the browser charset encoding. | |
Commands: | |
getbrowserencoding -- get encoding from meta tag, and set it to browser. | |
setbrowserencoding <encoding> -- set browser encoding as <encoding>. | |
""" | |
import re |
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
usage: corkscrew [-ssl] <proxyhost> <proxyport> <desthost> <destport> [authfile] |
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
diff -u wpgen/wpgen.py wpgen/wpgen.py | |
--- wpgen/wpgen.py 2012-04-22 23:52:07.000000000 +0900 | |
+++ wpgen/wpgen.py 2012-04-27 22:00:58.000000000 +0900 | |
@@ -108,7 +109,8 @@ | |
pass | |
elif ext in (".rst", ".rest") and use_docutils: | |
parts = publish_parts(text, writer_name='html') | |
- html = parts['body'] | |
+ #html = parts['body'] | |
+ html = parts['html_body'] |
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
- hosts: servers | |
vars: | |
httpd_conf: /etc/apache2/apache2.conf | |
tasks: | |
- name: grep %{Session}C | |
command: grep '^LogFormat[[:space:]].*%{Session}C.*[[:space:]]combined' {{httpd_conf}} | |
register: grep | |
ignore_errors: True | |
failed_when: False | |
changed_when: False |
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/bash | |
# | |
# rrdcached - start and stop the RRDtool data caching daemon | |
# http://oss.oetiker.ch/rrdtool/ | |
# | |
# Based on the collectd init script. | |
# | |
# Copyright (C) 2005-2006 Florian Forster <[email protected]> | |
# Copyright (C) 2006-2009 Sebastian Harl <[email protected]> | |
# |
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
- hosts: servers | |
vars: | |
httpd_conf: /etc/apache2/apache2.conf | |
tasks: | |
- name: lookup DocumentRoot in VirtualHost | |
shell: sed -n '/^<VirtualHost \*:80>/,/<\/VirtualHost>/{/DocumentRoot/p; }' {{httpd_conf}} | |
register: lookup | |
changed_when: False | |
- name: change httpd.conf | |
shell: sed -i$(date +'.%Y-%m-%d@%H:%M~') '/^<VirtualHost \*:80>/,/<\/VirtualHost>/{s/\(DocumentRoot[[:space:]]*\).*$/\1\/var\/www/; }' {{httpd_conf}} |
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
--- config.php.default 2014-11-05 01:14:27.000000000 +0900 | |
+++ config.php 2015-03-03 18:53:06.083227191 +0900 | |
@@ -21,9 +21,40 @@ | |
#$config['poller-wrapper']['alerter'] = TRUE; | |
// Set up a default alerter (email to a single address) | |
-$config['alerts']['alerter']['default']['descr'] = "Default Email Alert"; | |
-$config['alerts']['alerter']['default']['type'] = "email"; | |
-$config['alerts']['alerter']['default']['contact'] = "[email protected]"; | |
-$config['alerts']['alerter']['default']['enable'] = TRUE; |
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 | |
ZABBIX_SENDER=/usr/bin/zabbix_sender | |
ZABBIX_SERVER=localhost | |
HOSTNAME="$1"; shift | |
PLUGIN="$1"; shift | |
CHECK_PLUGIN=/usr/lib/nagios/plugins/"$PLUGIN" | |
output=$("$CHECK_PLUGIN" "$@" 2>/dev/null) | |
status=$? | |
{ | |
for perf in ${output##*|}; do |
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
--- CLineGraphDraw.php 2014-12-16 15:38:26.000000000 +0900 | |
+++ CLineGraphDraw.php 2015-04-03 22:04:19.736847627 +0900 | |
@@ -2245,6 +2245,10 @@ | |
} | |
break; | |
case GRAPH_ITEM_DRAWTYPE_GRADIENT_LINE: | |
+ if ($y1 == $y2 && $y1 == $zero) | |
+ { | |
+ break; | |
+ } |
OlderNewer