Skip to content

ongaeshi/mygithub

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

MyGithub

自分のGithubレポジトリのソースコードをオフラインで高速に検索。

mygithub

  • OAuthでGithubにログイン
  • 全てのレポジトリをチェックアウト
  • 検索用のインデックスを貼る
  • Milkodeをバックエンドに使用

Install

$ gem install mygithub

Usage

$ mygithub
Tasks:
  mygithub help [TASK]  # Describe available tasks or one specific task
  mygithub init         # Init setting
  mygithub update       # Pull repositories
  mygithub web          # Startup web interface

Setup

$ mygithub web

webアプリが起動したらGithubへの認証を通しましょう。

login

ログイン後、レポジトリをチェックアウトするのでしばらく時間がかかります・・

mygithub

この画面になればチェックアウト完了です、おめでとう!

  • 自分が過去に書いた全てのソースからいつでも情報を引き出すことが可能です
  • Milkodeベースの検索はとっても高速です 100000ファイル 位なら1秒もかかりません。
  • レポジトリをGithubに追加した時は 新しいレポジトリを取り込む ボタンを押せば取り込めます
  • github-button ボタンを押せば関連するGithubページにジャンプすることが出来ます

Setup (Use command line)

Webアプリからの認証が上手く行かない時に。

$ mygithub init
Create -> /Users/ongaeshi/.mygithub/mygithub.yaml
Please edit YAML settings!

.yamlファイルにユーザー名と自身のGithubトークンを入力。

---
username: ongaeshi
token: 12345678abcdefghijklmnopqrstuvwxyzj90909

updateコマンドを実行。

$ mygithub update
create     : /Users/ongaeshi/.mygithub/database/milkode.yaml
create     : /Users/ongaeshi/.mygithub/database/db/milkode.db created.
git        : git://github.com/ongaeshi/HideFileToggle.git
Cloning into '/Users/ongaeshi/.mygithub/database/packages/git/HideFileToggle'...
.
.

webアプリ起動。

$ mygithub web

Pow

一度認証が終わればPow経由で使うことが出来ます。例えば http://mygithub.dev でアクセス出来るようにするには以下をどうぞ。

ln -s /opt/local/lib/ruby1.9/gems/1.9.1/gems/mygithub-0.1.0/lib/mygithub/web mygithub

Memo

  • 認証時は必ず http://127.0.0.1:9295 でアクセスするようにして下さい
  • opensslが正しくインストールされていてもSSL証明書が設置されていないとダウンロードに失敗します → 対策

About

Fast search my Github source code in offline

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages