Skip to content

Instantly share code, notes, and snippets.

Before

command1
command2
command3.1
command3.2

After

@nishina555
nishina555 / procedure-example1.md
Last active April 21, 2017 13:56
きれいな手順書の例

Before

command1
command2
command3
su

rootcommand1
rootcommand2
@nishina555
nishina555 / sample-procedure.md
Last active April 23, 2017 12:49
綺麗な手順書を作るための自分ルール

Dockerイメージのビルド・コンテナ起動@localhost

------------------------------
■雛形の作成
------------------------------

### アプリのディレクトリ作成・移動
$ mkdir rails-docker-starter
@nishina555
nishina555 / MyHybrid.itermcolors
Last active February 13, 2017 13:03
Color scheme for iTerm.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.20179691910743713</real>
@nishina555
nishina555 / .zshrc
Last active April 23, 2017 13:08
Showing the git branch name with the color
# prompt
if [ $UID -eq 0 ];then
PROMPT="%F{red}%n:%f%F{green}%d%f [%m] %%
"
PROMPT2="%F{red}%n:%f%F{green}%_%f [%m] %%
"
else
# mac
PROMPT="%F{cyan}%n:%f%F{green}%d%f [%m] %%
"
@nishina555
nishina555 / file0.txt
Last active March 30, 2018 02:14
こんな時どうする? MongoDBクエリ逆引きリファレンス ref: https://qiita.com/nishina555/items/9e20211e8d6f12fdb7b7
{
"no": 1,
"firstName": "Taro",
"lastName": "Tanaka",
"age": 15,
"body": { "height": 165, "weight": 60 },
"grades": [
{ "semester": "first", "grade": 90 },
{ "semester": "second", "grade": 80 }
],