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
# This should go into ~/.config/gtk-3.0/gtk.css | |
@define-color bg-grey #222; | |
@define-color active-grey #333; | |
@define-color border-grey #555; | |
TerminalWindow .notebook { | |
border: 0; | |
padding: 0; | |
color: #eee; |
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
log-format: '{"timestamp":%Ts,"frontend_name":"%f","remote_addr":"%ci","bytes_read":%B,"upstream_addr":"%si","backend_name":"%b","retries":%rc,"bytes_uploaded":%U,"upstream_connect_time":"%Tc","session_duration":"%Tt","termination_state":"%ts","srv_queue":%sq,"backend_queue":"%bq","frontend_concurrent_conns":%fc,"backend_concurrent_conns":%bc}' |
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 python | |
import sys, time | |
import pickle | |
import tornado | |
from tornado import gen | |
from tornado.httpclient import AsyncHTTPClient | |
from tornado.ioloop import IOLoop | |
import itertools | |
from tornado.platform.caresresolver import CaresResolver |
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
innodb_buffer_pool_size=5M | |
innodb_log_buffer_size=256K | |
query_cache_size=0 | |
max_connections=10 | |
key_buffer_size=8 | |
thread_cache_size=0 | |
host_cache_size=0 | |
innodb_ft_cache_size=1600000 | |
innodb_ft_total_cache_size=32000000 |
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
rsync --daemon --port 31337 --no-detach -vv --config /var/tmp/.rsyncd.conf | |
cat <<EOF > /var/tmp/.rsyncd.conf | |
[store] | |
path = /path/to/file | |
read only = no | |
list = yes | |
uid = nobody | |
gid = nogroup | |
use chroot = false | |
EOF |
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
## A simple solution how to anonymize nginx server logs | |
## | |
## WARNING: Please be aware that error logs can still leak client's ip address, | |
## currently I am not aware of any way around that except turning error logs off completely. | |
## | |
http { | |
#(...) | |
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 python | |
# The idea is to generate carbon load from multiple threads / connections to test load balanging feature of graphite / carbon cluster | |
import sys, os, time, thread, datetime | |
from socket import socket | |
from random import random, choice | |
try: | |
host = sys.argv[1] | |
port = int(sys.argv[2]) | |
mpm = int(sys.argv[3]) |
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
mkdir dev | |
cd dev | |
git clone git://github.com/Netflix/exhibitor.git | |
mkdir exhibitor-build | |
cd exhibitor-build | |
cp -rp ../exhibitor/gradle* . | |
#root@xxx:~/dev/exhibitor-build# ls | |
#gradle gradle.properties gradlew gradlew.bat |
NewerOlder