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
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y software-properties-common python-software-properties | |
RUN add-apt-repository -y ppa:brightbox/ruby-ng | |
RUN apt-get -y update | |
RUN apt-get install -y git ruby2.2 rake curl wget gcc make bison libssl-dev libcurl4-openssl-dev libpcre3 libpcre3-dev | |
WORKDIR /usr/local/src/ |
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
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y software-properties-common python-software-properties | |
RUN add-apt-repository -y ppa:brightbox/ruby-ng | |
RUN apt-get -y update | |
RUN apt-get install -y git ruby2.2 rake curl wget gcc make bison libssl-dev libcurl4-openssl-dev libpcre3 libpcre3-dev | |
WORKDIR /usr/local/src/ |
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
#!/bin/sh | |
if [ -d $HOME/.ndenv ] | |
then | |
echo "$HOME/.ndenv already exists." | |
exit 1 | |
fi | |
git clone git@github.com:riywo/ndenv.git $HOME/.ndenv | |
mkdir -p $HOME/.ndenv/plugins |
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
source "https://rubygems.org" | |
gem 'sinatra' |
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
highlight: | |
enable: true | |
line_number: true | |
auto_detect: true | |
tab_replace: true | |
# detial https://github.com/hexojs/hexo-util#highlightstr-options |
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
boot2docker up | |
Waiting for VM and Docker daemon to start... | |
.........ooo | |
Started. | |
Writing /Users/HOME/.boot2docker/certs/boot2docker-vm/ca.pem | |
Writing /Users/HOME/.boot2docker/certs/boot2docker-vm/cert.pem | |
Writing /Users/HOME/.boot2docker/certs/boot2docker-vm/key.pem | |
To connect the Docker client to the Docker daemon, please set: | |
export DOCKER_HOST=tcp://192.168.59.103:2376 |
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
{ | |
"features": { | |
"customProperties": { | |
"preserve": true | |
}, | |
"calc": true, | |
"customMedia": true, | |
"mediaQueriesRange": true, | |
"customSelectors": true, | |
"colorRebeccapurple": true, |
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
source 'https://rubygems.org' | |
gem 'itamae' | |
gem 'rake' | |
gem 'serverspec' | |
gem 'highline' |
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
# http://d.hatena.ne.jp/mrgoofy33/20101019/1287500809 | |
# http://d.hatena.ne.jp/kanonji/20110222/1298341934 | |
# ファイル差分を取る | |
diff -c(or -u) file.origin file.new > diff.patch | |
# git で差分を取る | |
git diff --no-prefix > diff.patch | |
# HEADで差分を指定 |
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 Immutable = require('immutable'); | |
var x = { foo: "bar" }; | |
var y = x; | |
y.foo = "baz"; | |
x === y; | |
console.log(x === y) | |
// true |