Skip to content

Instantly share code, notes, and snippets.

View PharaohKJ's full-sized avatar
👺
Ten-goods come on! Working from home

ふぁらお加藤 PharaohKJ

👺
Ten-goods come on! Working from home
View GitHub Profile
[pharaohkj]$ defaults write com.apple.dock expose-animation-duration -float 0.15; killall Dock
[pharaohkj]$ defaults write com.apple.dock expose-animation-duration -int 0; killall Dock
git checkout --orphan <new_branch>
git rm -rf .
<create document files>
git add .
git commit
@PharaohKJ
PharaohKJ / gist:ceb2081a94f2066dcfe8
Created May 28, 2015 03:41
show_md_style_link_bookmarklet
javascript:(function(){window.prompt('選択してコピーしてください','['+document.title+']'+'('+document.URL+')');})();
def ensure_em
unless EventMachine.reactor_running? && EventMachine.reactor_thread.alive?
Thread.new { EventMachine.run }
sleep 1
end
end
@PharaohKJ
PharaohKJ / boolean_spec.rb
Created January 25, 2016 00:41
rspecでboolean値をテストする
RSpec::Matchers.define :be_boolean do
match do |actual|
expect(actual).to satisfy { |x| x == true || x == false }
end
end
it 'is boolean' do
expect(true).to be_boolean
end

トップ

自己紹介

CIツールの歴史

http://itpro.nikkeibp.co.jp/article/COLUMN/20130619/486173/?rt=nocnt http://www.atmarkit.co.jp/ait/articles/1104/07/news111.html

CIツールには今、大きな追い風が吹いている。アプリケーションの開発、テスト、展開、運用といった「アプリケーションライフサイクル」の自動化を図る「DevOps(デブオプス、DevelopmentとOperationの合成語)」が話題になる中で、CIツールがDevOpsの実践に不可欠な存在だと見なされているからだ。

DevOpsにおけるCIツールの役割

2009年のイベントで DevOps とかはじめて言われたらしい

host="target-hostname"
ssh-keygen -R $host
ssh-keyscan -H $host >> ~/.ssh/known_hosts
@PharaohKJ
PharaohKJ / init.el
Created June 14, 2016 08:02
textlint for emacs flycheck
;; ref https://github.com/amperser/proselint/issues/37
;; textlint
(flycheck-define-checker textlint
"A linter for prose."
:command ("textlint" "--format" "unix" "--rule" "no-mix-dearu-desumasu" "--rule" "max-ten" "--rule" "spellcheck-tech-word" source-inplace)
:error-patterns
((warning line-start (file-name) ":" line ":" column ": "
(id (one-or-more (not (any " "))))
(message (one-or-more not-newline)
(zero-or-more "\n" (any " ") (one-or-more not-newline)))
@PharaohKJ
PharaohKJ / md2slide_test.md
Last active June 18, 2016 04:16
md2slide_test

AWS-Summitいってきた

AWS Summit Tokyo 2016 - クラウド活用の最適解、ここに集結。- 2016年6月1~3日 グランドプリンスホテル新高輪にて開催

JAWS-UG金沢 第11回 Meetup! - JAWS-UG 金沢

先日、出席した「AWS Summit Tokyo 2016」の報告会を、立ち飲みイタリアンバルで飲みながらやるという会である。

バスで行ってガッツリ呑みながら話しようと考えていたのだが、バスが2本続けて、満車のため乗車拒否というメにあい、しょうがなく、自宅に戻って車で移動。何かあったのかな?

TARGET=`echo -n 直線 | ruby -ne '$_.codepoints { |cp| $stdout << "\\\\\\\\u" << cp.to_s(16) }'` ; find . -name '*.properties'|xargs grep $TARGET