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
bytedance.akadns.net | |
dsa-video.traffic.bytedance.akadns.net | |
bytegeo.akadns.net | |
api31.bytegeo.akadns.net | |
bos.bytegeo.akadns.net | |
byteoversea.com.bytegeo.akadns.net | |
tp-pay.byteoversea.com.bytegeo.akadns.net | |
bytewlb.akadns.net | |
tiktokcdn.com.bytewlb.akadns.net | |
v-edgecast.tiktokcdn.com.bytewlb.akadns.net |
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
- | |
ssh as root | |
- | |
adduser tao;passwd tao | |
- | |
usermod -a -G wheel tao, then visudo and uncomment line # %wheel ALL=(ALL) ALL | |
- | |
set UTC time: rm /etc/localtime then ln -s /usr/share/zoneinfo/UTC /etc/localtime | |
- | |
Turn off SELINUX - vi /etc/selinux/config set to disabled |
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/bash | |
# slanger daemon | |
# chkconfig: 345 20 80 | |
# description: slanger daemon | |
# processname: slanger | |
. /etc/rc.d/init.d/functions | |
# Location of a non-daemon application to be daemonized | |
BIN="/home/xxx/.rvm/gems/ruby-1.9.2-p290/bin/slanger --app_key XXXX --secret YYYY --api_host 0.0.0.0:4568 --websocket_host 0.0.0.0:8081" |
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
wirble for rails3 console | |
add wirble to Gemfile | |
monkeypatch following: | |
module Rails | |
class Console |
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
reverse ssh tunneling (needed for facebook app dev) | |
on public machine edit /etc/ssh/sshd_config (centos) | |
add | |
AllowTcpForwarding yes | |
GatewayPorts yes | |
restart sshd service |
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
i7 12G ram ubuntu 9.4 64bit | |
Dhrystone 2 using register variables 21848800.3 lps (10.0 secs, 10 samples) | |
Double-Precision Whetstone 3467.6 MWIPS (10.0 secs, 10 samples) | |
System Call Overhead 3740571.7 lps (10.0 secs, 10 samples) | |
Pipe Throughput 1768496.5 lps (10.0 secs, 10 samples) | |
Pipe-based Context Switching 246686.5 lps (10.0 secs, 10 samples) | |
Process Creation 5570.1 lps (30.0 secs, 3 samples) | |
Execl Throughput no measured results | |
File Read 1024 bufsize 2000 maxblocks 3608110.0 KBps (30.0 secs, 3 samples) |
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
f:9.78214287757874 t:10.2568709850311 sum:20.0390138626099 intel mobile core2duo T7300 2ghz running centos vm on xp (1 of 2 cores laptop with REE) | |
f:23.5827739238739 t:44.0298571586609 sum:67.6126310825348 Intel(R) Xeon(R) CPU E5320 @ 1.86GHz (1 of 8 cores pr1/pr3) | |
f:18.0016870498657 t:19.1601359844208 sum:37.1618230342865 same as above but with REE | |
f:18.0677227973938 t:47.8991549015045 sum:65.9668776988983 Intel(R) Xeon(R) CPU 3040 @ 1.86GHz (1 of 2 cores pr4) | |
f:12.6944310665131 t:33.7289371490479 sum:46.4233682155609 Intel(R) Xeon(R) CPU X3320 @ 2.50GHz (1 of 4 cores pr7) | |
f:13.9521861076355 t:38.6263761520386 sum:52.5785622596741 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (1 of 4 cores pr6 32bit) | |
f:14.9624340534210 t:32.804986000061 sum:47.7674200534821 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (1 of 2 cores pr8) | |
f:15.3550038337708 t:32.4853999614716 sum:47.8404037952423 Dual-Core AMD Opteron(tm) Processor 1218 HE (1 of 2 cores pr10) | |
f:34.9187638759613 t:57.8910548686981 sum:92.809818744 |
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
max hits before longest transaction > 0.5 | |
pr8(2) 145 amd x2 5000 | |
pr8(2) 190 amd x2 5000 after extensive warmup | |
pr9(2) 115 amd x2 5000 with minspare maxspare and acceptCount, its worse without) | |
pr9(2) 130 amd x2 5000 with aggressive heap | |
pr9(2) 190 amd x2 5000 after extensive warmup | |
pr3(8) 245 xeon E5320 @ 1.86GHz | |
pr6(4) 240 Q6600 @ 2.40GHz same after warmup | |
pr4(2) 250 xeon 3040 @ 1.86ghz |
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
yum install apr.x86_64 | |
yum install apr-devel.x86_64 | |
yum install openssl-devel.x86_64 | |
tar xzvf tomcat-native.tar.gz (the file is located at bin/tomcat-native.tar.gz of the tomcat binary dir) | |
cd jni/native | |
./configure --with-apr=/usr/bin/apr-1-config | |
make | |
make install |
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
haproxy setup | |
1) setup epel repo in yum | |
a) copy epel.repo file to /etc/yum.repos.d | |
b) rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm | |
2) yum install haproxy | |
3) setup /etc/haproxy.cfg |
NewerOlder