by shigemk2

当面は技術的なことしか書かない

GitHub

contributing peco

Issueを立てるときにテンプレートが自動で出てくるのはありがたいので、あとで試してみたい。 github.com

GitHubのユーザー規約を読んでみる

GitHubのユーザー規約はこちら。 GitHub Terms of Service - User Documentation 構成としては以下のようになっている。 Account Terms(アカウントの資格) API Terms(APIについて) Payment, Refunds, Upgrading and Downgrading Terms(支払いなど) Cancellat…

apiからgithubのリポジトリ名を変更する

curl \ -H "Authorization: Token [token]" \ -H "Content-Type:application/json" \ -H "Accept: application/json" \ -X PATCH \ --data '{ "name": "new-repo-name" }' \ https://api.github.com/repos/:owner/old-repo-name だいたいこんな感じ。 PATCH…

リリースをいち早く知りたい人生だった

SlackのRSSアプリと、GitHubのRSSフィードのコンボでいけます。 GitHubのRSSフィードは、だいたいこのような形式になっており、 https://github.com/{user}/{repo_name}/releases.atom 例としてはこんな感じ。 https://github.com/akka/akka/releases.atom …

ghqで複数アカウントを使い分ける

qiita.com このように書いてあって、このスクリプトは、 private-ghq get git@github.com:hogehgoe/fugafuga を実行したときに、cloneしたリポジトリ直下に.gitconfigを自動的に作成してくれるもの。つまり、複数アカウントに対応するためには別のことをする…

memo: github notification api

Notifications | GitHub Developer Guide こういうのとか。 curl -u user:personaltoken https://api.github.com/repos/:owner/:repo/notifications こういうのとか。 curl -u user:personaltoken https://api.github.com/notifications

Fluentd workerとFluend aggregatorをVagrantとdocker-composeでごにょごにょする

サンプル。 github.com Vagrantでapacheサーバを立ち上げる Vagrant仮想マシン上でFluentd wokerとなるdockerコンテナを立ち上げる ローカルではdocker-composeでFluentd aggregatorとElastic SearchとKibanaを立ち上げる VagrantのapacheログをKibanaで見る…

peco pr 296

fix makefile by lestrrat · Pull Request #296 · peco/peco · GitHub makefileの修正

なんとなく今の自分のリポジトリ数とか

確か認証はいらなかったはずです。 $ curl https://api.github.com/users/shigemk2 ... "public_repos": 315, "public_gists": 697, ... もう何がなんだか。

GitHubで自分の出したIssueとかPullRequestとかを調べる

画面の上のPull RequestsとかIssuesをポチるとこんな感じでサーチしてくれます。 また、リポジトリベースでも、自分の出したプルリクとかイシューとか調べられて便利です。 ふと思ったのですが、自分そんなにOSS活動してなかったね…っていう悲しみが生まれま…

hub pull-request

ブランチで以下のコマンドを打つと、エディタが開き、そこで適当な文章を入れると、ブランチからmasterへpull requestが出せます。 $ hub pull-request hub/pull_request.go at aa4611dd9add76b1facda9906fcdf8078a2e89e6 · github/hub · GitHub しかも、も…

GitHub APIでユーザー情報とか

この手の情報ってコロコロ変わるので、github apiでググッてしらべたほうが早いです。サンプルも充実していますし。 Repositories | GitHub Developer Guide Search | GitHub Developer Guide いまいまでしたら、 $ curl -XGET https://api.github.com/searc…

ghsから自分リポジトリをサーチしたかったのだけれど

こんな感じ。毎回ghq getってやるのはつらいんです。ので、ちょっと改造してみました。 function gps () { ghs -u shigemk2 | peco | awk '{print $1}' | ghq import } でもなんでしょう。自分のリポジトリが全部取れていません。 qiita.com

GitHubのステータスを確認するだけの簡単なシェル芸

GitHubのstatusを確認するだけの簡単なシェル芸。 $ curl https://status.github.com/api/status.json api自体はこちらを参照しました。 GitHub System Status 毎回このページにアクセスするのはすごく面倒なんです。 GitHub System Status

GitHubのラベルと作成など

azunobu.hatenablog.com githubのissueのlabel - jabropt.com コメント欄が地味に役立ちます。 bug meaning: bug. After correcting it closed. duplicate meaning: it is a duplicate of another issue. Close links to duplicate destination of issue. en…

GitHubリポジトリの複製

一応こんな風には書いてあります。 $ git clone --bare https://github.com/exampleuser/old-repository.git # Make a bare clone of the repository $ cd old-repository.git $ git push --mirror https://github.com/exampleuser/new-repository.git # Mir…

Gitのrefの応用: pull requestの情報をローカルに持ってくる

職場でGitのrefについてお話があって、同僚がこんなコマンドを紹介していました。 $ git fetch git@github.com:sample-user/sample-repo.git '+refs/pull/*:refs/remotes/pr/*' これで、GitHubのPRの情報をローカルに持ってこれます。PRの内容をローカルでチ…

ghq pr 70

実行時エラーにログを出すアレ warn if executable was not found when RunCommand by motemen · Pull Request #70 · motemen/ghq · GitHub

LGTM editorでできること

概要 作者 cfe.jp - uzulla ページ LGTM Editor できること こんなの。 LGTM/拝承などの選択 文字サイズ、位置の調整 文字色の変更 などなど。

心なしかGoogle検索結果でGitHubのリポジトリの見え方が変わっている気がする

何を言っているのかわからないかもしれません。 たとえばなんですけども、「emacs javascript refactoring」でググるとトップにこれがでてきますが、 github.com 今まではユーザー名/リポジトリ名で表示されていたのが、DescriptionがGoogleの検索結果に出て…

current gitter iphone

mark all as read

gitter issue 1080

Disable notification for @/all mention · Issue #1080 · gitterHQ/gitter · GitHub allのメンション通知やめたいって話。設定でどうにかできればいいけど。って話。

gitter issue 520

@/all pings lurkers · Issue #520 · gitterHQ/gitter · GitHub @all でlurk modeの人には通知がいかないようにしたいって話でしょうか。 Lurk mode – Gitter slackみたいに通知を細かく設定出来ないですし。

PRやIssueについてのちょっとしたやり取りと願掛け

最近心がけていることを、少しだけやっています。 「こんな機能を追加したい」旨のIssueを投げる OKが出たら、実装してPull Requestを投げる といいつつ、すぐに反応が来なかったらもう勝手にやっちゃうんですが。 はてなブログに投稿しました #はてなブログ…

GitterのWikipedia

Gitter - Wikipedia, the free encyclopedia 特徴 Gitter is similar to IRC and HipChat. Unlike IRC, and like HipChat, it automatically logs all messages in the cloud. 他と比べて The fact that messages posted to Gitter chat rooms are preserved…

Gitterのチャットメッセージを埋め込みたい

例。見た目が非常に微妙。 gitter.im URLはこんな感じ。 https://gitter.im/scala/scala?at=5688d0da0199d70069e0ab53 チャットの時間のところをaltを押しつつクリックすると、こんな感じになる。

Gitter issue 1044

Windowsのアプリで、ロード、というか通知が無茶遅くなる問題。

去年と今年のGitHub緑化部分

去年。表示がバグっていた。と思ったら、1時間後くらいには改善されていた。 GitHubの草原の表示がいよいよわけがわからなくなってきています。 pic.twitter.com/83cAZCFGX4— shigemk2 (@shigemk2) January 1, 2015 今年はどうだろうと思ったけど、直後でも…

Gitter Issue 886

そういえば今も消そうとすると問答無用だよね。削除前のポップアップ確認機能は、結構ありがたい。 github.com

同一端末で、複数のGitHubアカウントを使い分ける方法 についての雑感

この方法を使えば、複数アカウントを使い分けることが出来る。 同一端末で、複数のGitHubアカウントを使い分ける方法 · youkinjoh/TrainingWebSocket Wiki · GitHub 要約すると、 ssh-keygen -f で別々の違う鍵を作り、アカウントに登録する .ssh/configに同…