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
defan@hs:~/bin$ upsc ippon | |
battery.charge: 100 | |
battery.voltage: 13.70 | |
battery.voltage.high: 12.60 | |
battery.voltage.low: 10.60 | |
battery.voltage.nominal: 12.0 | |
beeper.status: enabled | |
device.type: ups | |
driver.name: blazer_usb | |
driver.parameter.pollinterval: 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
[main] | |
enabled=1 |
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 | |
usage() | |
{ | |
cat <<EOF | |
Usage: $(basename $0) [options] | |
This shell script is a simple wrapper around the openssl binary. It uses | |
s_client to get certificate information from remote hosts, or x509 for local | |
certificate files. It can parse out some of the openssl output or just dump all |
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
raspberry pi 1 model b (2 USBs): | |
$ cat /proc/cpuinfo | |
processor : 0 | |
model name : ARMv6-compatible processor rev 7 (v6l) | |
BogoMIPS : 2.28 | |
Features : half thumb fastmult vfp edsp java tls | |
CPU implementer : 0x41 | |
CPU architecture: 7 | |
CPU variant : 0x0 |
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 | |
nginxpidfile=/var/run/nginx.pid | |
if [ ! -e ${nginxpidfile} ]; then | |
echo "nginx pid file (${nginxpidfile}) not found" >&2 | |
exit 1 | |
fi | |
ppid=`cat ${nginxpidfile}` |
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
[uwsgi] | |
uid=nginx | |
gid=nginx | |
socket = 0.0.0.0:3131 | |
max-requests = 4000 | |
buffer-size = 16384 | |
master = true | |
log-master = true | |
die-on-term = true | |
vacuum = 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
#!/usr/bin/env python | |
# | |
# ./nginman --listen 9999 --py-path `pwd` --py-module flaskapp | |
from flask import Flask | |
from flask import request | |
from werkzeug.debug import get_current_traceback | |
application = Flask(__name__) |
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
[4] (Rule: 920440) Executing operator "@rx" with param "\.(.*)$" against REQUEST_BASENAME. | |
[9] T (0) t:urlDecodeUni: "/nginx_signing.key" | |
[9] T (1) t:lowercase: "/nginx_signing.key" | |
[9] Target value: "/nginx_signing.key" (Variable: REQUEST_BASENAME) | |
[4] Operator completed in 0.000027 seconds | |
[4] Rule returned 1. | |
... | |
[4] (Rule: 949110) Executing operator "@ge" with param "5" Was: "%{tx.inbound_anomaly_score_threshold}" against TX:ANOMALY_SCORE. | |
[9] Target value: "0" (Variable: TX:ANOMALY_SCORE) | |
[6] Resolving: tx.inbound_anomaly_score_threshold to: 5 |
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/perl | |
# Tests for ModSecurity module. | |
############################################################################### | |
use warnings; | |
use strict; | |
use Test::More; |
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
---i7wdgemV---A-- | |
[29/Nov/2016:11:09:10 +0000] 148041775067.012532 127.0.0.1 53931 127.0.0.1 80 | |
---i7wdgemV---B-- | |
GET /?param="><script>alert(1);</script> HTTP/1.1 | |
REQUEST_HEADERS:User-Agent: curl/7.38.0 | |
REQUEST_HEADERS:Host: localhost | |
REQUEST_HEADERS:Accept: */* | |
---i7wdgemV---D-- | |
---i7wdgemV---E-- | |
---i7wdgemV---F-- |
OlderNewer