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
all: | |
gcc intel-avx-test.c -O3 -o a.out | |
gcc intel-avx-test.c -O3 -S | |
./a.out | |
nosse: | |
gcc intel-avx-test.c -O3 -mno-sse -o a.out | |
gcc intel-avx-test.c -O3 -S -mno-sse | |
./a.out | |
std: | |
gcc intel-avx-test.c -O3 -std=c99 -o a.out |
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
class Zaru | |
@residues = [] | |
attr_reader :hole_size, :residues | |
def initialize(hole_size) | |
@hole_size = hole_size | |
end | |
def put(objects) | |
passes = [] |
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
Nginx: 秒間1万~8000リクエスト程度 | |
0.1ms | |
1リクエスト 0.2ms | |
これ以上はサーバ台数を増やすしか・・・(なお並列数にはほぼ依存しない) | |
Nginx + Sinatrao (Socket File IO): | |
800 req ~ 1200 req = 1ms程度 | |
C言語: 秒間1万4千req |
sudo aptitude update
sudo aptitude -y install gcc g++ openssl-devel git tmux gem lv
sudo aptitude -y install ruby-dev libxml2-dev libxslt-dev
\curl -sSL https://get.rvm.io | bash
source /home/myun2_nw/.rvm/scripts/rvm
rvm install ruby --latest
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
cd | |
mkdir .ssh | |
chmod 700 .ssh | |
cd .ssh | |
echo ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA63FXwA2Jyo4jYId5kt2JDjvw8Jjlq6EoJF/lUJX9x0WV++DtDfvDW7fBsO41cDmkYrD3LlFZKfD/CPNr1HMJTtlZ/Lb9v7D9XEKjmn8cEP+Y2y4KMVpRNt+mY+zL2byTTLovZve/Pi4I7edvggVcpCM0Fd3fJGdEJsKdiLFk5C/3n5uipdRU+zenVaJPZGwkADBBC8GYhRiorMLPpepHjXocR16sXt7v9xL7JEfPilyOEo0u6EcxonSymV8mZGNzXVqjRvK9RN8yLLSlNQ7w0ZQfDgIvMT+X1ZnDjT2QfwDb+xYJgWpWNy5H4QPTSWIeeZACp7cWovGofbIzb2eWuw== tomoaki@OVERISK > authorized_keys | |
chmod 600 authorized_keys |
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
# Add Authorized Keys | |
curl https://gist.githubusercontent.com/myun2/519ca5caf97273f0b590/raw/6709fb4098f254ad0ea6e10052d599885f466b7a/ak.sh | bash | |
ssh-keygen -f ~/.ssh/id_rsa -t rsa -N "" | |
# Install Packages | |
sudo yum update | |
sudo yum -y install gcc gcc-c++ g++ wget | |
sudo yum -y install git tmux | |
sudo yum -y install openssl-devel gem lv ruby-devel libxml2-devel libxslt-devel | |
sudo yum -y install libyaml-devel readline-devel libffi-devel sqlite-devel |
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
a.out |
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
rails g model <name> <attributes> |
memo