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
without vhost_net: | |
throughput test | |
root@web1:~# ping -s 1024 -l 120 -c 1000000 -f -q 10.22.100.129 | |
PING 10.22.100.129 (10.22.100.129) 1024(1052) bytes of data. | |
--- 10.22.100.129 ping statistics --- | |
1000000 packets transmitted, 1000000 received, 0% packet loss, time 12944ms |
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
exec {"newaliases": | |
refreshonly => true, | |
command => "/usr/bin/newalises", | |
} | |
Mailalias { | |
notify => Exec["newaliases"] | |
} |
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
Opennebula: | |
root@node1:/usr/share/mcollective/plugins/mcollective# onevm list | |
ID USER NAME STAT CPU MEM HOSTNAME TIME | |
319 oneadmin tcdb1.vm runn 0 512M node1.cloud.bob 09 08:43:14 | |
320 oneadmin tcweb2.v runn 0 384M node1.cloud.bob 09 08:43:14 | |
321 oneadmin tcweb1.v runn 0 384M node1.cloud.bob 09 08:43:14 | |
322 oneadmin tclb1.vm runn 0 256M node1.cloud.bob 09 08:43:14 | |
323 oneadmin tclb2.vm runn 0 256M node1.cloud.bob 09 08:43:13 |
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 <stdio.h> | |
#include <ruby.h> | |
int main(int argc, char *argv[]) { | |
// Open file | |
FILE *fp; | |
fp = fopen(argv[1], "r"); | |
if(fp == NULL) { | |
return 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
#include <ruby.h> | |
int main(int argc, char *argv[]) { | |
ruby_init(); | |
ruby_init_loadpath(); | |
rb_load_file(argv[1]); | |
ruby_exec(); | |
return 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
Listen 8140 | |
<VirtualHost *:8140> | |
SSLEngine on | |
SSLProtocol -ALL +SSLv3 +TLSv1 | |
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP | |
SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/node1.cloud.bob.sh.pem | |
SSLCertificateFile /var/lib/puppet/ssl/certs/node1.cloud.bob.sh.pem | |
SSLCACertificateFile /var/lib/puppet/ssl/certs/ca.pem |
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
[mysqld] | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
user=mysql | |
# Disabling symbolic-links is recommended to prevent assorted security risks | |
symbolic-links=0 | |
# KB | |
log-bin=mysql-bin | |
binlog-do-db=dashboard_production |
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
[mysqld] | |
datadir=/var/lib/mysql | |
socket=/var/lib/mysql/mysql.sock | |
user=mysql | |
log-bin=mysql-bin | |
binlog-do-db=foreman_production | |
binlog-ignore-db=mysql | |
binlog-ignore-db=test | |
binlog-ignore-db=foreman_production.sessions # option if you want to avoid replicating session information |
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
Two projects: | |
a | |
subproject | |
Enter the 'a' directory and add a remote: | |
% cd a | |
% git remote add subproject ../subproject | |
% git remote -v |
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
Searching for apache-access logs: | |
curl -XGET 'http://localhost:9200/logstash-2011.12.09/_search?q=response:200&pretty=true' | less | |
Turning on compression: | |
curl -XPUT localhost:9200/_settings -d '{ | |
"_source" : {"compress" : true} | |
}' |
OlderNewer