This file contains hidden or 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
# ps ax | grep 3306 | |
28723 pts/1 Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-external-locking --port=3306 --socket=/var/lib/mysql/mysql.sock | |
28930 pts/1 Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/lib/mysql/mysql.sock | |
29096 pts/1 R+ 0:00 grep 3306 | |
# ls /var/lib/mysql/mysql.sock | |
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory | |
# service mysql stop | |
Shutting down service MySQL done | |
# ps ax | grep 3306 |
This file contains hidden or 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
#!/bin/sh | |
### BEGIN INIT INFO | |
# mongod - Startup script for mongod | |
# chkconfig: 35 85 15 | |
# description: Mongo is a scalable, document-oriented database. | |
# processname: mongod | |
# config: /etc/mongod.conf | |
# pidfile: /var/run/mongo/mongod.pid | |
### END INIT INFO |
This file contains hidden or 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
Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3 |
This file contains hidden or 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
MIT license | |
MOBILE APP | |
Feature: First play | |
As a first time user | |
I want to learn about the game | |
So that I can start playing | |
Scenario: Load/home screen |
This file contains hidden or 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 Date | |
def to_gm_time | |
to_real_time(new_offset, :gm) | |
end | |
def to_local_time | |
to_real_time(new_offset(DateTime.now.offset-offset), :local) | |
end | |
def to_real_time(dest=new_offset, method=:utc) # don't use to_time because it could be overridden by ActiveSupport if it's required after this file |
This file contains hidden or 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
require "bundler/capistrano" | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require "rvm/capistrano" | |
set :rvm_ruby_string, '1.9.2@sinatroxy' | |
set :rvm_type, :system | |
set :bundle_flags, "--deployment" | |
set :application, "sinatroxy" | |
set :repository, "xxx@yyy:sinatroxy" |
This file contains hidden or 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
# env.rb | |
require 'bbc-cucumber-steps' | |
require 'capybara/cucumber' | |
require 'culerity' | |
require 'capybara/culerity' | |
require 'ruby-debug' | |
Culerity.jruby_invocation = File.expand_path("~/.rvm/bin/celerity_jruby") | |
Capybara.register_driver :culerity do |app| |
This file contains hidden or 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
$ cucumber --tags @current | |
@current @javascript | |
Scenario: test # features/f01.feature:8 | |
env: bash: No such file or directory |
This file contains hidden or 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
$ bundle | |
Fetching source index for http://rubygems.org/ | |
Using rake (0.9.2) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/rake-0.9.2.gemspec | |
Using multi_json (1.0.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/multi_json-1.0.3.gemspec | |
Using activesupport (3.1.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/activesupport-3.1.0.gemspec | |
Using bouncy-castle-java (1.5.0146.1) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/bouncy-castle-java-1.5.0146.1.gemspec | |
Using builder (3.0.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/builder-3.0.0.gemspec | |
Using columnize (0.3.4) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/columnize-0.3.4.gemspec | |
Using diff-lcs (1.1.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/diff-lcs-1.1.3.gemspec | |
Installing json (1.6.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. |
This file contains hidden or 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
/Users/ale/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb | |
WARNING: JRuby does not support native extensions or the `mkmf' library very well. | |
Check http://kenai.com/projects/jruby/pages/Home for alternatives. | |
checking for re.h... yes | |
checking for ruby/st.h... yes | |
creating Makefile |