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
Benchmarking 10.10.0.17 (be patient) | Benchmarking 10.10.0.16 (be patient) | |
Server Software: Apache/2.2.16 | Server Software: Apache/2.4.2 | |
Server Hostname: 10.10.0.17 | Server Hostname: 10.10.0.16 | |
Server Port: 80 Server Port: 80 | |
Document Path: / Document Path: / | |
Document Length: 177 bytes Document Length: 177 bytes |
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 | |
# | |
# consul - this script manages the consul agent | |
# | |
# chkconfig: 345 95 05 | |
# processname: consul | |
### BEGIN INIT INFO | |
# Provides: consul | |
# Required-Start: $local_fs $network |
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
function password_encode(password) | |
local bcrypt = require 'bcrypt' | |
return bcrypt.digest(password, 12) | |
end | |
function check_password(password, encoded_password) | |
local bcrypt = require 'bcrypt' | |
return bcrypt.verify(password, encoded_password) | |
end |
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 bash | |
# Time-stamp: <2014-07-31 13:31:43 (ryanc)> | |
# | |
# Description: Mirror traffic between two interfaces using Linux's | |
# traffic control subsystem (tc) | |
trap cleanup EXIT | |
CLEANUP=1 | |
SRC_IFACE=$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
#!/usr/bin/python | |
# $Id: megaclisas-status,v 1.52 2015/04/18 02:49:07 root Exp root $ | |
# | |
# Written by Adam Cecile <gandalf@NOSPAM.le-vert.net> | |
# Modified vy Vincent S. Cojot <vincent@NOSPAM.cojot.name> | |
# | |
import os | |
import re | |
import sys |
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/python3 | |
import asyncio | |
import time | |
import socket | |
import argparse | |
import aiohttp | |
class MyConnector(aiohttp.TCPConnector): |