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
$ git svn clone svn+ssh://host/path/to/repo1 |
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
var obj = { ... } | |
Object.keys(obj).sort().reduce(function(d, k){ d[k] = obj[k]; return d;}, {}) |
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
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
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 | |
echo "Clean Services" | |
echo "Clean User" | |
dscl localhost -delete /Local/Default/Users/firebird | |
echo "Clean Group" | |
dscl localhost -delete /Local/Default/Groups/firebird | |
if [ -f "/Library/StartupItems/Firebird" ]; then | |
echo "Remove SuperServer StartupItem" | |
rm -fr /Library/StartupItems/Firebird | |
fi |
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
#!/usr/bin/env ruby | |
# https://developer.github.com/v3/auth/#working-with-two-factor-authentication | |
# https://developer.github.com/v3/orgs/teams/ | |
require 'json' | |
require 'httpclient' | |
class GithubRepoMatrix |
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
irb(main):034:0> [[1,2,3]].to_java(Java::byte[]) | |
=> [B[[B@436a4e4b]@f2f2cc1 | |
irb(main):035:0> [[[1,2,3]]].to_java(Java::byte[][]) | |
=> [[B[[[B@3b2cf7ab]@2aa5fe93 |
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
hbase(main):041:0* org.apache.hadoop.hbase.mapreduce.Export.main(["foo", "/tmp/foo.dump"]) | |
2015-11-19 03:28:11,249 INFO [main] Configuration.deprecation: session.id is deprecated. Instead, use dfs.metrics.session-id | |
(snip) | |
2015-11-19 03:16:44,307 INFO [main] mapreduce.Job: Job job_local2087152213_0001 completed successfully | |
2015-11-19 03:16:44,327 INFO [main] mapreduce.Job: Counters: 18 | |
File System Counters | |
FILE: Number of bytes read=74629416 | |
FILE: Number of bytes written=843785016 | |
FILE: Number of read operations=0 | |
FILE: Number of large read operations=0 |
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 'logger' | |
require 'github_api' | |
require 'active_support/core_ext/object' | |
class IssueApi | |
attr_accessor :org, :repo | |
attr_reader :logger | |
def initialize |
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
The original is https://about.gitlab.com/2015/04/08/the-remote-manifesto/ | |
We all have been greatly helped by Scrum and the Agile manifesto. | |
It freed us from waterfall planning and excessive process. But working | |
remotely and continuous delivery need something more. | |
私達は皆Scrumとアジャイルマニフェストに救われてきました。 | |
それはウォーターフォールの計画ややり過ぎたのプロセスから私達を開放してくれました。 | |
しかし、リモートでの働き方や継続的デリバリにはまだ何か必要なのです。 |
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
def sq_escape(str) | |
str.split(/\'/).map{|s| "'#{s}'"}.join("\\'") | |
end | |
sq_escape {"breakfast"=>"Bill's"}.to_json | |
#=> "'{\"breakfast\":\"Bill'\\''s\"}'" | |
puts sq_escape {"breakfast"=>"Bill's"}.to_json | |
#=> '{"breakfast":"Bill'\''s"}' | |
# # on bash | |
# $ echo '{"breakfast":"Bill'\''s"}' |