Skip to content

Instantly share code, notes, and snippets.

View daipresents's full-sized avatar

Dai Fujihara daipresents

View GitHub Profile
@daipresents
daipresents / gist:9a25d6b406cd3f3deb09f80616a54f02
Created May 11, 2016 06:13
WebDriverでChromeを起動するとUnable to find the chromedriver executableと怒られた
@driver = Selenium::WebDriver.for :chrome
@daipresents
daipresents / gist:bf4893486b189496d414c7636410bd14
Last active May 11, 2016 06:16
WebDriverがMacに壮絶に入らなかったのでRVMにしたこと
192:~ daipresents$ sudo gem install selenium-webdriver
Password:
Building native extensions. This could take a while...
ERROR: Error installing selenium-webdriver:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ffi-1.0.11 for inspection.
@daipresents
daipresents / gist:05c7c4667d7e80a280a229b2b33b872c
Created May 11, 2016 06:19
4コマでわかるSVNからgitへの移行
$ bash
$ export SVN_URL=http://daipresents.googlecode.com/svn
@daipresents
daipresents / gist:ba39482b0b774b1ef216fce79fbb8f72
Created May 11, 2016 06:23
Rails3+herokuで開発はsqlite3、heroku上はPostgreSQLを使う設定
$ git push heroku master
Counting objects: 85, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (58/58), done.
Writing objects: 100% (68/68), 160.05 KiB | 141 KiB/s, done.
Total 68 (delta 24), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Ruby/Rails app detected
@daipresents
daipresents / gist:36c79ed3d4814c01dd7d60a9464a8523
Created May 11, 2016 06:25
herokuでpushしようとしたらPermission deniedとなってしまう
$ git push heroku master
Warning: Permanently added the RSA host key for IP address 'XX.XX.XX.XX' to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
@daipresents
daipresents / gist:cd40c68092ab014cf9a3d0dd4a218dae
Created May 11, 2016 06:28
Macでrvm pkg install readlineやlibyamlするとSSL証明書問題で失敗する
$ rvm pkg install libyaml
Fetching yaml-0.1.4.tar.gz to /Users/yourname/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
@daipresents
daipresents / gist:9c605590d3c6bac93fd0d5a02988ca4c
Created May 11, 2016 06:30
TextMateがオープンソースになったのでMountain Lionに入れてみた
git clone https://github.com/textmate/textmate.git
cd textmate
git submodule update --init
./configure && ninja
@daipresents
daipresents / gist:cd8c75cbe343487bfa7968ee231b6589
Last active May 11, 2016 06:42
Redmineプラグインを作るなら読むべき本家チュートリアルの日本語訳
$ export RAILS_ENV="production"
@daipresents
daipresents / gist:68309216a979a68d30d5b39a5fef2270
Created May 11, 2016 06:45
Redmine+OSXでMysql::ProtocolError: invalid packet
ActionView::TemplateError (Mysql::ProtocolError: invalid packet: sequence number mismatch(98 != 1(expected)): SELECT * FROM `settings` WHERE (`settings`.`name` = 'app_title') LIMIT 1) on line #5 of app/views/layouts/base.rhtml:
@daipresents
daipresents / gist:89f68759e13c72ce2702529c1183976c
Created May 11, 2016 06:48
BacklogsプラグインをMac上のRedmineにインストール
sudo gem install rubygems-update -v=1.3.7
sudo gem uninstall rubygems-update # ここで古いrubygemsを消す
sudo sudo update_rubygems