Skip to content

Instantly share code, notes, and snippets.

View Vaduz's full-sized avatar

Satoru Yoshihara Vaduz

View GitHub Profile
@Vaduz
Vaduz / gist:7612739
Created November 23, 2013 09:49
aps.stat=1
Server Software: nginx
Server Hostname: blog.vaduz.tk
Server Port: 80
Document Path: /
Document Length: 19762 bytes
Concurrency Level: 10
Time taken for tests: 52.838 seconds
Complete requests: 1000
@Vaduz
Vaduz / gist:7624211
Created November 24, 2013 07:01
php5.5 + opcache
Server Software: nginx
Server Hostname: blog.vaduz.tk
Server Port: 80
Document Path: /
Document Length: 19762 bytes
Concurrency Level: 10
Time taken for tests: 73.908 seconds
Complete requests: 1000
@Vaduz
Vaduz / gist:7624335
Created November 24, 2013 07:19
php5.5 w/o opcache
Server Software: nginx
Server Hostname: blog.vaduz.tk
Server Port: 80
Document Path: /
Document Length: 19762 bytes
Concurrency Level: 10
Time taken for tests: 182.833 seconds
@Vaduz
Vaduz / gist:7624754
Last active December 29, 2015 05:49
php 5.5 + opcache (opcache.revalidate_freq=2)
Server Hostname: blog.vaduz.tk
Server Port: 80
Document Path: /
Document Length: 19762 bytes
Concurrency Level: 10
Time taken for tests: 51.984 seconds
Complete requests: 1000
Failed requests: 0
@Vaduz
Vaduz / gist:7624826
Last active December 29, 2015 05:49
php 5.5 + opcache (opcache.revalidate_freq=600)
Server Software: nginx
Server Hostname: blog.vaduz.tk
Server Port: 80
Document Path: /
Document Length: 19762 bytes
Concurrency Level: 10
Time taken for tests: 52.567 seconds
Complete requests: 1000
@Vaduz
Vaduz / remi.repo
Created November 24, 2013 08:49
remi-php55 repo
[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/php55/mirror
# WARNING: If you enable this repository, you must also enable "remi"
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
@Vaduz
Vaduz / gist:7654009
Created November 26, 2013 05:54
Upgrading ruby 2.0.0-p353 from p247 on Mac OS 10.9
brew unlink ruby-build
brew link autoconf
brew install ruby-build
rbenv install 2.0.0-p353
@Vaduz
Vaduz / gist:7867773
Created December 9, 2013 05:40
remove control char
sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g"
@Vaduz
Vaduz / gist:d4dd4cac6374dcb50cbc
Last active June 5, 2018 19:06
CSGO Dedicated server setup
# set up host
# execute following commands by root
adduser deploy -g wheel
echo 'deploy ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy
# Connect with deploy
# prerequisite
yum install ld-linux.so.2 glibc.i686 libstdc++.i686 wget unzip
# CentOS 7 oriented
yum install net-tools
#!/usr/bin/env ruby
while line = STDIN.gets
#puts line
fields = line.split(' ')
if fields[4].to_f < 0
fields[4] = fields[4].to_f + 180.0
elsif fields[4].to_f > 0
fields[4] = fields[4].to_f - 180.0
end