I hereby claim:
- I am foospidy on github.
- I am foospidy (https://keybase.io/foospidy) on keybase.
- I have a public key whose fingerprint is 5FA9 F16A 1FC7 051D EB93 A6DA CAEA 3613 5AFB E6D9
To claim this, I am signing this object:
<?php | |
if($redis->connect($GLOBALS['REDIS_HOST'], $GLOBALS['REDIS_PORT'])) { | |
if($redis->auth($GLOBALS['REDIS_PASSWORD'])) { | |
$keys = $redis->keys('*'); | |
foreach($keys as $key) { | |
$redis->set($key, 0); | |
} | |
} else { | |
error_log('Error authenticating to redis!'); |
<?php | |
function api_limit_exceeded($id='nobody', $limit=1500) { | |
$redis = new Redis(); | |
$usage = 0; | |
if($redis->connect($GLOBALS['REDIS_HOST'], $GLOBALS['REDIS_PORT'])) { | |
if($redis->auth($GLOBALS['REDIS_PASSWORD'])) { | |
$usage = $redis->get($id); | |
} else { | |
error_log('Error authenticating to redis!'); |
<?php | |
function api_request($id='nobody') { | |
$redis = new Redis(); | |
if($redis->connect($GLOBALS['REDIS_HOST'], $GLOBALS['REDIS_PORT'])) { | |
if($redis->auth($GLOBALS['REDIS_PASSWORD'])) { | |
$redis->incr($id); | |
} else { | |
error_log('Error authenticating to redis!'); | |
} |
#!/usr/bin/env bash | |
# | |
# Installs/upgrades the latest version of honeydb-agent. | |
# An existing configuration will be backed up, and applied | |
# to the new install/upgrade. | |
# | |
# sudo ./honeydb-agent-install.sh | |
# | |
ARCHITECTURE=`uname -m` |
#!/usr/bin/env bash | |
# clock_skew.sh - Check remote hosts for clock skew (time drift), and | |
# output a warning or alert message based on defined thresholds. | |
# | |
# Instructions: | |
# Create a hosts.txt file that contains the list of hosts to be checked. | |
# | |
# hosts.txt should contain one host entry per line, and username and | |
# port fields are optional. Format: | |
# |
#!/usr/bin/env python | |
# | |
# clock_skew.py | |
# This script reads json data from /tmp/sigsci-agents.json | |
# and prints a message if an agent's clock skew is greater | |
# or equal to the defined thresholds. | |
# | |
# SigSciApiPy (https://github.com/signalsciences/SigSciApiPy) is | |
# an easy way to pull agent data from the Signal Sciences API and | |
# save it to /tmp/sigsci-agents.json |
#!/usr/bin/python | |
# | |
# str2implode.py | |
# | |
# Usage: python str2implody.py "example string with spaces" | |
# | |
import sys | |
out = "" |
I hereby claim:
To claim this, I am signing this object: