I hereby claim:
- I am thomas-p-wilson on github.
- I am thomaspaulw (https://keybase.io/thomaspaulw) on keybase.
- I have a public key whose fingerprint is F36C E051 DAB6 32B6 B4FC 1A12 6E1A FC10 F5FC 183A
To claim this, I am signing this object:
[composite:neutron] | |
use = egg:Paste#urlmap | |
/: neutronversions | |
/v2.0: neutronapi_v2_0 | |
[composite:neutronapi_v2_0] | |
use = call:neutron.auth:pipeline_factory | |
noauth = request_id catch_errors extensions neutronapiapp_v2_0 | |
keystone = request_id catch_errors authtoken keystonecontext extensions neutronapiapp_v2_0 |
<?php | |
/* Change the following */ | |
$job = urlencode("Project name as seen in Jenkins"); | |
$token = "the build token you gave to the jenkins job"; | |
$url = "https://ci.example.com/"; | |
$json= file_get_contents('php://input'); | |
$jsarr = json_decode($json,true); | |
$branch = substr($jsarr['ref'], strrpos($jsarr['ref'], '/') + 1); |
/* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<?php | |
// Define root path constant. $_SERVER['SCRIPT_FILENAME'] seems to survive | |
// redirects. | |
$root_path = dirname($_SERVER['SCRIPT_FILENAME']); | |
if(substr($root_path,-1) != '/') { | |
$root_path .= '/'; | |
} | |
define('ROOT_PATH',$root_path); | |
unset($root_path); |
<?php | |
if(!isset($_GET['rewritecheck'])) { | |
$headers = get_headers(ROOT_URL.'/web/?rewritecheck',1); | |
define('REWRITE_ENABLED',strpos($headers[0],'301') !== false); | |
} | |
if(!defined('REWRITE_ENABLED')) {define('REWRITE_ENABLED',true);} | |
?> |
<?php | |
if(!isset($_GET['number']) || empty($_GET['number'])) { | |
echo '<h3>Please enter a number > 1</h3>'; | |
} elseif(!is_numeric($_GET['number'])) { | |
echo '<h3>It has to be a number.</h3>'; | |
} | |
?> | |
<form action="" method="get"> | |
<input type="text" name="number"> | |
<input type="submit" value="Go"> |
<?php | |
function array_stats(array $arr) { | |
sort($arr); | |
// Basic data | |
$result = array(); | |
$result['cnt'] = count($arr); | |
$result['min'] = min($arr); | |
$result['max'] = max($arr); | |
$result['sum'] = array_sum($arr); |
failregex = NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Wrong password | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - No matching peer found | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - No matching peer found | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Username/auth name mismatch | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Device does not match ACL | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Peer is not supposed to register | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - ACL error (permit/deny) | |
NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Device does not match ACL | |
NOTICE.* .*: Registration from '\".*\".*' failed for '<HOST>:.*' - No matching peer found | |
NOTICE.* .*: Registration from '\".*\".*' failed for '<HOST>:.*' - Wrong password |
#!/bin/bash | |
# /etc/init.d/sentry | |
# A debian-compatible sentry startup script | |
# | |
### BEGIN INIT INFO | |
# Provides: sentry | |
# Required-Start: $remote_fs $syslog $network | |
# Required-Stop: $remote_fs $syslog $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
I hereby claim:
To claim this, I am signing this object: