I hereby claim:
- I am scragg0x on github.
- I am scragg (https://keybase.io/scragg) on keybase.
- I have a public key whose fingerprint is 7E54 3FD5 C59F 33C8 04DC B271 C8D2 CCFD 1B8F 21D0
To claim this, I am signing this object:
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "No arguments supplied. Example: sudo bash geo_block.sh cn af" | |
exit 1 | |
fi | |
IPT=/sbin/iptables | |
IPDENY="http://www.ipdeny.com/ipblocks/data/countries" |
sudo: | |
group: | |
- present | |
file.managed: | |
- name: /etc/sudoers.d/nopasswd | |
- contents: | | |
%sudo ALL=(ALL:ALL) NOPASSWD: ALL | |
- mode: 0440 | |
deploy: |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class Cache_Redis { | |
private $_cache; | |
private $_db; | |
private $_tag; | |
private $_key; | |
private $_get; | |
private $_set; | |
app.py | |
api/ | |
__init__.py | |
models/ | |
__init__.py | |
ffxi.py | |
ffxiv.py | |
redis-benchmark -q -n 100000 | |
## Digital Ocean $5/month | |
1core, 512MB RAM | |
PING (inline): 46403.71 requests per second | |
PING: 51759.83 requests per second | |
MSET (10 keys): 28465.70 requests per second | |
SET: 53475.94 requests per second | |
GET: 51921.08 requests per second |
Command: | |
for i in 1 2 3; do hdparm -tT /dev/sda1; done | |
Softlayer Config | |
2x300GB 15k RPM SAS HW-RAID1 | |
/dev/sda6: | |
Timing cached reads: 24714 MB in 2.00 seconds = 12371.67 MB/sec | |
Timing buffered disk reads: 916 MB in 3.04 seconds = 301.20 MB/sec |
<?php | |
set_include_path('/usr/share/php/libzend-framework-php/'. PATH_SEPARATOR . "."); | |
function __autoload($className) { | |
require $className = str_replace('_', '/', $className) . '.php'; | |
} | |
$db = new Zend_Db_Adapter_Mysqli(array('host'=>'localhost', 'username'=>'', 'password'=>'', 'dbname'=>'')); |
import datetime | |
import brukva | |
import json | |
import phpserialize | |
from tornado import web | |
from tornadio2 import SocketConnection, TornadioRouter, event, SocketServer | |
c = brukva.Client() | |
c.connect() |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/tornado/iostream.py", line 355, in _handle_read | |
if self._read_to_buffer() == 0: | |
File "/usr/local/lib/python2.7/dist-packages/tornado/iostream.py", line 422, in _read_to_buffer | |
chunk = self._read_from_socket() | |
File "/usr/local/lib/python2.7/dist-packages/tornado/iostream.py", line 403, in _read_from_socket | |
chunk = self.socket.recv(self.read_chunk_size) | |
error: [Errno 104] Connection reset by peer |