View scp-speed-test.sh
#!/bin/bash
# scp-speed-test.sh
#
# Usage:
# ./scp-speed-test.sh user@hostname [test file size in MBs]
#
#############################################################
ssh_server=$1
test_file=".scp-test-file"
View nginx_test.sh
#!/bin/bash
#
# Author: Patrick Bailey
# License: MIT
#
# Set the percentage of 200, 404, and 500 errors you want
# Set the hourly rate you want
# Set a URL for 200, 404 and 500
#
# Then run it. it will suffle the 200, 404, and 500 urls
View jmx_exporter.yml
---
lowercaseOutputName: true
whitelistObjectNames: [
"kafka.controller:type=KafkaController,name=ActiveControllerCount,*",
"kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,*",
"kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec,*",
"kafka.server:type=BrokerTopicMetrics,name=BytesOutPerSec,*",
"kafka.server:type=ReplicaManager,name=IsrExpandsPerSec,*",
View jim_info.sh
#Some example JMX info add it to you kafka start up script
# sometimes located at /opt/kafka/kafka_2.11-0.10.1.0/bin/kafka-server-start.sh
#Should retrieve local IP address
IP_ADDR=`ip route get 8.8.8.8 | awk '{print $NF; exit}'`
export KAFKA_OPTS="$KAFKA_OPTS -Djava.rmi.server.hostname=$IP_ADDR"
export KAFKA_OPTS="$KAFKA_OPTS -Dcom.sun.management.jmxremote.port=9090"
export KAFKA_OPTS="$KAFKA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
export KAFKA_OPTS="$KAFKA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
View save_multiple_icons.jsx
// Create Multiple icon files
// Author: Patrick Bailey
// License: MIT
//
//Copyright 2017 T. Patrick Bailey
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to
//deal in the Software without restriction, including without limitation the
//rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
//sell copies of the Software, and to permit persons to whom the Software is
View haproxy.cfg
global
log 127.0.0.1 syslog
maxconn 1000
user haproxy
group haproxy
daemon
tune.ssl.default-dh-param 4096
ssl-default-bind-options no-sslv3 no-tls-tickets
ssl-default-bind-ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
View le-renew-haproxy
#!/bin/bash
#
# Let's Encrypt HAProxy script
#
###################################
DOMAINS=(
"foo.example.com"
"bar.example.com"
)
View haproxy.cfg
global
log 127.0.0.1 syslog
maxconn 1000
user haproxy
group haproxy
daemon
defaults
log global
View nginx.conf
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;
View gist:2762912307f41291320e315681e807a1
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
multi_accept on;