いろいろチートシート
MySQL
レプリ周り
- binlogのON/OFF
- SET global sql_log_bin={0 || 1}
- binlog表示
- show binary logs;
- binlogパージ
- PURGE BINARY LOGS TO 'mysql-bin.hogehoge';
- master status
- show master status
- スレーブ側のリセット
- reset slave;
- change master構文
change master to
master_host='xxx',
master_user='xxx',
master_password='xxx',
master_port=3306,
master_log_file='xxx',
master_log_pos=xxx,
master_connect_retry=10;
;
ansibleのめも
ansibleのBest Practiceなディレクトリをshellで作る
http://qiita.com/kuni-nakaji/items/4ffbc723f2d7cf529479
エージェントレスでシンプルな構成管理ツール「Ansible」入門
http://knowledge.sakura.ad.jp/tech/3124/
Ansible にて、ssh の接続情報を記述する方法
http://blog.k11i.biz/2014/04/ansible-ssh.html
Ansible を Homebrew で Mac OS X にインストールする手順
http://weblabo.oscasierra.net/ansible-homebrew-install-1/
実践!Ansibleベストプラクティス(前編)
http://knowledge.sakura.ad.jp/tech/3084/
HiveQLのチートシート
Hadoop利用者ならきっと知ってる、Hive/Prestoクエリ関数の挙動の違い
http://qiita.com/y-ken/items/400b7c70c324ac67af02
LanguageManual UDF
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF
HiveQLで誕生日から年齢を計算する方法
http://hivecolor.com/id/96
んーこれは...
JavaConfig and SpringBoot and SpringBatch
Without XML Configuration for Spring MVC
http://d.hatena.ne.jp/tatsu-no-toshigo/20140526/1401113194
Spring Bootで実行環境ごとに設定を切り替える
http://area-b.com/blog/2015/01/30/2316/
bootのproperties
http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
Spring Bootで実行環境ごとに設定を切り替える
http://area-b.com/blog/2015/01/30/2316/
Spring Boot のビルド方法あれこれ
http://yo1000.hateblo.jp/entry/2015/05/12/143008
Spring Batch 3.0うごかす
http://kagamihoge.hatenablog.com/entry/2015/02/14/144238
Spring Batch - Modular Batch Processing scoping rules
http://stackoverflow.com/questions/25332568/spring-batch-modular-batch-processing-scoping-rules
Use of multiple DataSources in Spring Batch
http://stackoverflow.com/questions/25540502/use-of-multiple-datasources-in-spring-batch
Spring Batchでリーダーもライターもいらない処理をステップにする
http://m12i.hatenablog.com/entry/2015/01/03/095352
Spring Bootでコマンドラインアプリを作る時の注意点
http://qiita.com/tag1216/items/898348a7fc3465148bc8
sample project
Spring Batch Samples
https://github.com/spring-projects/spring-batch/tree/master/spring-batch-samples
Spring Boot Batch Sample
https://github.com/muumin/spring-boot-batch-sample
dbアクセス
第4回 Spring環境におけるDBアクセス(1) 〜 JdbcTemplate篇
http://dev.classmethod.jp/server-side/java/db-access-in-spring-jdbctemplate/
第5回 Spring環境におけるDBアクセス(2) 〜 Spring Data篇
http://dev.classmethod.jp/server-side/java/db-access-in-spring-data-mirage/
第6回 Spring環境におけるトランザクション処理
http://dev.classmethod.jp/server-side/transaction-management-in-spring/
第7回 Springの宣言的トランザクションのしくみ【AOP】
http://dev.classmethod.jp/server-side/declarative-trasaction-by-spring-aop/
yamlで設定
Spring Bootで設定のプロファイル分けをする
http://qiita.com/mas0061/items/4dd9c54a6bc69b564a02
goのめも
環境選定資料
Golang でのウェブ開発を考えてみる
http://qiita.com/voluntas/items/7af2f06d2688f649576f
[Go] IntelliJ IDEAの初期設定
http://qiita.com/dorayaki_kun/items/6762a452010d42e38bd9
依存解決
Go言語のDependency/Vendoringの問題と今後.gbあるいはGo1.5
http://deeeet.com/writing/2015/06/26/golang-dependency-vendoring/
Golang1.5のvendoringが期待と少し違ったという感想
http://shinofara.hateblo.jp/entry/2015/08/22/034824
Golang1.5で試験追加になったvendoringの使い方
http://qiita.com/shinofara/items/7dbc486138e6949c7a54
gin関連
REST Microservices in Go with Gin
http://txt.fliglio.com/2014/07/restful-microservices-in-go-with-gin/
A Simple API in Go
http://phalt.co/a-simple-api-in-go/
Sinatraライクなgin-gonicで手軽にGolangを試す。
http://blog.oretachino.com/entry/2014/12/10/171648
Golang周辺のツールをいろいろ使いながらGin Web FrameworkでAPIを作る
http://takasing104.hateblo.jp/entry/2015/05/14/150000
Gin: POST リクエストを扱う
http://blog.sarabande.jp/post/98870006733
事例的なもの
Gunosy APIチームGo開発フロー
https://speakerdeck.com/kyokomi/gunosy-apitimugokai-fa-huro
開発環境
Intellij IDEA でのGo言語開発環境セットアップ
http://qiita.com/MakoTano/items/8e25a4aacc8ec7f95b48
IntelliJ IDEAでGoLangの環境構築 2015春
http://stormcat.hatenablog.com/entry/2015/04/13/123000
dockerとgolang
Dockerを使ったGolang開発環境
http://unknownplace.org/archives/golang-development-enviroment-with-docker.html
本番環境想定
Goでgraceful restartに対応したデーモンプロセスをつくる
http://kohkimakimoto.hatenablog.com/entry/2015/07/24/102011
12.3 アプリケーションのデプロイ
http://astaxie.gitbooks.io/build-web-application-with-golang/content/ja/12.3.html
Supervisor を利用して Go アプリケーションをデーモン化する
http://qiita.com/macococo/items/71a007ecd3c176cc3529
Nginx + Golang でWebアプリケーション開発を試してみた
http://umegusa.hatenablog.jp/entry/2015/02/22/025832
supervisord を起動する init スクリプト
https://gist.github.com/inokappa/090dbd88a26d6d85e01d
例外処理
panicはともかくrecoverに使いどころはほとんどない
http://qiita.com/ruiu/items/ff98ded599d97cf6646e
DB接続
Go言語でMySQLに接続する
http://157.7.203.87/2015/08/26/golang-with-mysql/
gorp を使ってみた
http://blog.masu-mi.me/2015/06/06/beginning_gorp.html
Day 11 - Index creation and primary keys in gorp, gorp with indexes
http://intogooglego.blogspot.jp/2015/05/day-11-index-creation-and-primary-keys.html
未整理
Goのデバッグに便利なpretty printライブラリ「pp」を作った
http://qiita.com/k0kubun/items/5150fcb5d0740309d1eb
LinuxとIntelliJを使ったWindowsでのプログラミング環境
http://ota42y.com/blog/2015/04/24/go-windows-development/
golangちょいテク
http://qiita.com/kroton/items/e0abb3b43ded8762318e
Go言語に継承は無いんですか【golang】
http://otiai10.hatenablog.com/entry/2014/01/15/220136
まとまった参考資料
A Tour of Go
https://go-tour-jp.appspot.com/#1