Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
@shigeya
shigeya / Makefile
Created August 6, 2012 03:54 — forked from anonymous/Makefile
Makefile
INCLUDEPATH = /opt/local/include
CXXFLAGS = -I${INCLUDEPATH}
LIBS += -lopencv_core -lopencv_imgproc -lopencv_highgui
slic: main.cpp slic.cpp
g++ ${CXXFLAGS} main.cpp slic.cpp -o slic
@shigeya
shigeya / gist:3057167
Created July 5, 2012 23:46
OpenSSL speed bench on MacBookAir5,1 - Intel Core i5-3317U (@1.7Ghz)
Model Name: MacBook Air
Model Identifier: MacBookAir5,1
Processor Name: Intel Core i5
Processor Speed: 1.7 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB
Memory: 8 GB
Type: DDR3
@shigeya
shigeya / gist:3052177
Created July 5, 2012 08:01
OpenSSL speed bench on iMac11,1 - Intel Core i5 750 (@2.66Ghz)
Model Name: iMac
Model Identifier: iMac11,1
Processor Name: Intel Core i5
Processor Speed: 2.66 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 8 MB
Memory: 12 GB
Type: DDR3
@shigeya
shigeya / gist:2903174
Created June 10, 2012 00:08
rvm get stable --trace output on zsh 4.3.12
% rvm get stable --trace
rvm 1.14.1 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 185 100 185 0 0 346 0 --:--:-- --:--:-- --:--:-- 1761
100 185 100 185 0 0 345 0 --:--:-- --:--:-- --:--:-- 1761
100 9249 100 9249 0 0 5898 0 0:00:01 0:00:01 --:--:-- 5898
% rvm get stable --trace
rvm 1.14.1 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 185 100 185 0 0 323 0 --:--:-- --:--:-- --:--:-- 1412
0 185 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 9249 100 9249 0 0 5822 0 0:00:01 0:00:01 --:--:-- 49459
sh2 28% rvm get latest ~
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 519 0 --:--:-- --:--:-- --:--:-- 1637
100 9249 100 9249 0 0 6702 0 0:00:01 0:00:01 --:--:-- 11251
Downloading RVM version 1.14.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 117 0 0:00:01 0:00:01 --:--:-- 145
100 1045k 100 1045k 0 0 193k 0 0:00:05 0:00:05 --:--:-- 252k
@shigeya
shigeya / Gemfile
Created March 14, 2012 12:30
Current Working Gemfile
source 'http://rubygems.org'
gem 'rails', '3.2.1'
gem 'rake', '~> 0.9.2.2'
group :production do
gem 'pg'
end
group :production_jsmbo3 do
@shigeya
shigeya / create_postgres_user.sh
Created March 13, 2012 03:10
Creating postgres user on Snow Leopard,
# Creating postgres user on Snow Leopard, same as Lion does.
# hint gotten: http://zanshin.net/2009/09/07/installing-postgresql-on-mac-10-6-snow-leopard/
/usr/sbin/dseditgroup -o create -i 216 -r "PostgreSQL Users" postgres
dscl . -create /Users/postgres
dscl . -create /Users/postgres UniqueID 216
dscl . -create /Users/postgres UserShell /bin/bash
dscl . -create /Users/postgres RealName "Postgres Administrator"
dscl . -create /Users/postgres NFSHomeDirectory /opt/local/share/postgresql84
dscl . -create /Users/postgres PrimaryGroupID 216
@shigeya
shigeya / gist:1982768
Created March 6, 2012 01:37
Current Gemfile
source 'http://rubygems.org'
gem 'rails', '3.2.1'
gem 'rake', '~> 0.9.2.2'
group :production do
gem 'pg'
end
group :production_jsmbo3 do
@shigeya
shigeya / gist:1982761
Created March 6, 2012 01:36
debug log on spec with debugging enabled
/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "/Applications/RubyMine 4.0.1.app/rb/testing/runner/specs_in_folder_runner.rb"
Testing started at 10:32 ...
Searching files....
=========================================
1. /Users/shigeya/Documents/work/aimm3/spec/controllers/elems/supervisor_controller_spec.rb:1
2. /Users/shigeya/Documents/work/aimm3/spec/controllers/elems/variable_controller_spec.rb:1/Users/shigeya/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide --port 63032 -- /Users/shigeya/.rvm/gems/ruby-1.9.3-p125@aimm3/bin/rspec --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter
<<SPEC FILE PATHS...>>