Skip to content

Instantly share code, notes, and snippets.

View gutchom's full-sized avatar

gutchom gutchom

View GitHub Profile
@gutchom
gutchom / gist:0b93f8765cbe43f1ec23
Last active November 5, 2015 08:22
rails bundle installation error
$ bundle install --path vendor/bundle
/usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method (LoadError)
Referenced from: /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
in /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle - /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
from /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/openssl.rb:17:in `<top (required)>'
from /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cellar/ruby/2.1.2_2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/Cella
gulp = require 'gulp'
jade = require 'gulp-jade'
sass = require 'gulp-sass'
coffee = require 'gulp-coffee'
plumber = require 'gulp-plumber'
webserver = require 'gulp-webserver'
csscomb = require 'gulp-csscomb'
cssmin = require 'gulp-cssmin'
@gutchom
gutchom / package.json
Created May 13, 2015 12:08
packege.json
{
"name": "mitoe-browser",
"version": "1.0.0",
"description": "MITOE client side",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
chomBookPro:~ gutchom$ php-build 5.3.19 ~/.phpenv/versions/5.3.19
[Info]: Loaded apc Plugin.
[Info]: Loaded pyrus Plugin.
[Info]: Loaded xdebug Plugin.
[Info]: Loaded xhprof Plugin.
[Info]: php.ini-production gets used as php.ini
[Info]: Building 5.3.19 into /Users/gutchom/.phpenv/versions/5.3.19
[Skipping]: Already downloaded and extracted http://downloads.php.net/johannes/php-5.3.19.tar.bz2
[Preparing]: /var/tmp/php-build/source/5.3.19
[Compiling]: /var/tmp/php-build/source/5.3.19
configure: warning: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none).
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
/var/tmp/php-build/source/5.3.19/ext/date/php_date.c:2133:6: warning: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
abs(utc_offset / 60),
^
/var/tmp/php-build/source/5.3.19/ext/date/php_date.c:2133:6: note: use function 'llabs' instead
abs(utc_offset / 60),
^~~
llabs
/var/tmp/php-build/source/5.3.19/ext/date/php_date.c:2134:6: warning: absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
$ apachectl configtest
httpd: Syntax error on line 116 of /usr/local/etc/apache2/2.2/httpd.conf: Cannot load /usr/local/Cellar/php53/5.3.29/libexec/apache2/libphp5.so into server: dlopen(/usr/local/Cellar/php53/5.3.29/libexec/apache2/libphp5.so, 10): Symbol not found: _ap_unixd_config\n Referenced from: /usr/local/Cellar/php53/5.3.29/libexec/apache2/libphp5.so\n Expected in: /usr/local/Cellar/httpd22/2.2.29/bin/httpd\n in /usr/local/Cellar/php53/5.3.29/libexec/apache2/libphp5.so
@gutchom
gutchom / xdebug.sh
Created June 8, 2015 09:48
/usr/local/Cellar/php-build/0.10.0/share/php-build/plugins.d/xdebug.sh
#!/usr/bin/env bash
# PHP.next Development releases depend on current XDebug development
# snapshots.
function install_xdebug_master {
local source_dir="$TMP/source/xdebug-master"
local cwd=$(pwd)
local revision=$1
if [ -d "$source_dir" ] && [ -d "$source_dir/.git" ]; then
@gutchom
gutchom / tatsu.html
Created August 30, 2015 13:26
尊師の勉強教材の途中。
<doctype html>
<html>
<head>
<meta charset="utf-8">
<title>hell</title>
</head>
<body>
<h1>sonshi world</h1>
</body>
<script>
@gutchom
gutchom / gist:e8eaf44750d0ceafe868
Created September 13, 2015 11:03
`$ padrino g admin` error
$ bundle exec padrino g admin
/Users/gutchom/Sites/katsu/gutchomonster/vendor/bundler/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:177:in `rescue in spec': Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
from /Users/gutchom/Sites/katsu/gutchomonster/vendor/bundler/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/connection_specification.rb:174:in `spec'
from /Users/gutchom/Sites/katsu/gutchomonster/vendor/bundler/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:50:in `establish_connection'
from /Users/gutchom/Sites/katsu/gutchomonster/config/database.rb:81:in `<top (required)>'
from /Users/gutchom/Sites/katsu/gutchomonster/vendor/bundler/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
from /Users/gutchom/Sites/katsu/gutch
@gutchom
gutchom / Gemfile
Created September 13, 2015 11:10
padrino gemfile
source 'https://rubygems.org'
# Distribute your app as a gem
# gemspec
# Server requirements
gem 'unicorn'
gem 'foreman'
# Optional JSON codec (faster performance)