-
名前(任意)
- 田中 光一
-
Twitter
-
@tanaka51
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
$ gem install mysql2 -v '0.3.11' git:master* | |
Building native extensions. This could take a while... | |
ERROR: Error installing mysql2: | |
ERROR: Failed to build gem native extension. | |
/Users/koichi/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb | |
checking for rb_thread_blocking_region()... yes | |
checking for rb_wait_for_single_fd()... yes | |
checking for mysql.h... yes | |
checking for errmsg.h... yes |
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
[Wed Jan 11 01:59:59 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog: it seems to have crashed during startup for an unknown reason, with exit code 1 | |
[Wed Jan 11 01:59:59 2012] [notice] Digest: generating secret for digest authentication ... | |
[Wed Jan 11 01:59:59 2012] [notice] Digest: done | |
[ pid=16082 thr=3086060128 file=ext/apache2/Hooks.cpp:1378 time=2012-01-11 01:59:59.922 ]: Initializing Phusion Passenger... | |
[ pid=16084 thr=3086673616 file=ext/common/Watchdog.cpp:1073 time=2012-01-11 01:59:59.927 ]: Cannot change the directory '/tmp/passenger.1.0.16082/generation-0/buffered_uploads' its UID to 48 and GID to 48: Operation not permitted (1) | |
in 'void Passenger::ServerInstanceDir::Generation::create(bool, const std::string&, const std::string&, uid_t, gid_t)' (ServerInstanceDir.h:76) |
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
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
module Player | |
describe MovieList, "with optional description" do | |
it "is pending example, so that you can write ones quickly" | |
it "is already working example that we want to suspend from failing temporarily" do | |
pending("working on another feature that temporarily breaks this one") |
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
var emojis = ""; | |
$('span.emoji').each(function(){ | |
emojis = emojis + " " + $(this).parent().text(); | |
}); | |
alert(emojis); |
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
var url = "http://www.emoji-cheat-sheet.com/" | |
var imgs_code = ""; | |
$('span.emoji').each(function(){ | |
imgs_code = imgs_code + "\n" + url + $(this).data('src') + " - " + $(this).parent().text(); | |
}); | |
alert(imgs_code); |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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
#!/usr/bin/env ruby | |
require 'fileutils'; include FileUtils | |
require 'optparse' | |
dest_path = "" | |
noop = "" | |
opt = OptionParser.new | |
opt.on('-o VAL') {|v| dest_path = v } | |
opt.on('-d', '--dry-run') {|v| noop = v } |
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 fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x0000000101585181, pid=636, tid=3871 | |
# | |
# JRE version: 7.0_25-b15 | |
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.25-b01 mixed mode bsd-amd64 compressed oops) | |
# Problematic frame: | |
# V [libjvm.dylib+0x2a7181] | |
# |
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
;;; mugicha.el --- Emacs meets tmux! | |
;; Author: Koichi TANAKA <[email protected]> | |
;; This file is *NOT* part of GNU Emacs. | |
;;; Code: | |
(eval-when-compile (require 'cl)) | |
(defgroup mugicha nil |
OlderNewer