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
#include "test/jemalloc_test.h" | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
void* alloc_thread(void) { | |
int i; | |
void *p; | |
p = malloc(4098); |
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
# ----------------------------------------------------------------- | |
# User-Agent strings that are worth blocking with the following rule | |
# in haproxy to prevent your content being stolen, stop spammers and | |
# to limit your bandwidth usage. | |
# | |
# acl badbots hdr_reg(User-Agent) -i -f /etc/haproxy/badbots.lst | |
# block if badbots | |
# | |
# By Danny Sheehan | |
# http://www.setuptips.com |
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
# Time: 150917 6:32:15 | |
# Query_time: 9.722736 Lock_time: 0.000230 Rows_sent: 843 Rows_examined: 4236986529430166139 Rows_affected: 0 | |
# Time: 150917 6:32:23 | |
# Query_time: 7.730389 Lock_time: 0.000377 Rows_sent: 843 Rows_examined: 4236986529430166139 Rows_affected: 0 | |
# Time: 150917 6:32:29 | |
# Query_time: 8.331556 Lock_time: 0.000327 Rows_sent: 843 Rows_examined: 4236986529430166139 Rows_affected: 0 | |
# Time: 150917 6:33:00 | |
# Query_time: 11.715055 Lock_time: 0.000235 Rows_sent: 843 Rows_examined: 4236986529430166139 Rows_affected: 0 | |
# Time: 150917 6:33:02 | |
# Query_time: 11.610054 Lock_time: 0.000361 Rows_sent: 843 Rows_examined: 4236986529430166139 Rows_affected: 0 |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |