I hereby claim:
- I am typhonius on github.
- I am typhonius (https://keybase.io/typhonius) on keybase.
- I have a public key whose fingerprint is 81AC 744D AEA4 BB5F 6971 D78E 8521 A8CC D186 9962
To claim this, I am signing this object:
<?php | |
$user = ''; | |
$pass = ''; | |
$database = ''; | |
$limit = 1000000; | |
$dsn = 'mysql:dbname=' . $database . ';unix_socket=/var/run/mysqld/mysqld.sock'; | |
try { |
watch 'grep -o "forwarded_for=\".*\" " nginx.log | cut -d= -f2 | sed -e "s/\"//g" | tr "," "\n" | tr -d " " | sort -n | uniq -c | sort -nr | head -n20' |
newmac() { | |
MAC=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` | |
echo "Setting MAC address to $MAC" | |
sudo ifconfig en0 ether $MAC | |
} |
User "apache" | |
Group "apache" | |
#RootJail "/var/pound/jail" | |
#Alive 60 | |
ListenHTTPS | |
HeadRemove "X-Forwarded-Proto" | |
AddHeader "X-Forwarded-Proto: https" | |
Address 0.0.0.0 | |
Port 443 |
user_restrictions_create_form: | |
route_name: user_restrictions.create_form | |
title: 'Add rule' | |
appears_on: | |
- user_restrictions.list_form |
<?php | |
/** | |
* @file | |
* Drush command to check for overly large items in DB cache tables that will | |
* not work with memcache. | |
*/ | |
/** | |
* Implements hook_drush_command(). |
#!/bin/bash | |
STLOAD=$(cat /proc/loadavg | awk '{print $1}') | |
while true; do | |
FINLOAD=$(cat /proc/loadavg | awk '{print $1}') | |
if (( $(echo "$STLOAD $FINLOAD" | awk '{ if ($1 >= 8 && $2 >= 8) print 1}') )); then | |
if [[ -z $TIME ]]; then | |
TIME=$(date +"%s") | |
fi |
diff --git a/ape.test b/ape.test | |
index 756cfeb..f34a7fe 100644 | |
--- a/ape.test | |
+++ b/ape.test | |
@@ -31,6 +31,7 @@ class ApeTestHelper extends DrupalWebTestCase { | |
$modules[] = 'path'; | |
$modules[] = 'user'; | |
$modules[] = 'common_test'; | |
+ $modules[] = 'ape_redirect_test'; | |
parent::setUp($modules); |
#!/usr/env/perl | |
use strict; | |
use warnings; | |
use Net::Netmask; | |
use Regexp::Assemble::Compressed; | |
print "Enter the filename to varnishize: "; | |
my $filename = <STDIN>; |
I hereby claim:
To claim this, I am signing this object: