Skip to content

Instantly share code, notes, and snippets.

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
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)
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
wirble for rails3 console
add wirble to Gemfile
monkeypatch following:
module Rails
class Console
@kalendae
kalendae / init.d.slanger
Created May 14, 2013 19:38
startup script for running slanger as daemon
#!/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"
@kalendae
kalendae / centos6-rvm-ruby2-rails4-unicorn-nginx-setup.txt
Last active October 5, 2016 19:06
centos6-rvm-ruby2-rails4-unicorn-nginx-setup
-
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
@kalendae
kalendae / notiktok.txt
Created October 1, 2022 10:40
for simple-adblock to block tiktok
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