Skip to content

Instantly share code, notes, and snippets.

@honda0510
honda0510 / gist:854188
Created March 4, 2011 04:54
お気に入りのFirefoxアドオン
KeySnail
Copy Fixer
FireGestures
IE Tab 2
@honda0510
honda0510 / gist:863418
Created March 10, 2011 01:40
GitHub上で編集して中央リポジトリにプッシュする
1. 中央リポジトリをフォーク
2. フォークしたリポジトリをGitHub上で編集してコミット
3.
○中央リポジトリに直接プッシュできる場合
git clone 中央リポジトリのURL ※既にクローンしてあれば不要
git pull フォークしたリポジトリのURL
git push
@honda0510
honda0510 / reinstall.sh
Created March 10, 2011 01:49
vanilla 再インストール
cd /opt/lampp/htdocs/
rm -rf Garden/
git clone [email protected]:yu-tang/Garden.git
chmod -R 777 Garden/conf/
chmod -R 777 Garden/uploads/
chmod -R 777 Garden/cache/
@honda0510
honda0510 / gist:863579
Created March 10, 2011 04:35
SmartGitをインストール
■ Ubuntu 10.04.1 編
○ sun-java6-jre パッケージをインストールする
1. Synaptic パッケージ・マネージャ > 設定 > リポジトリ で ソフトウェア・ソース ダイアログを開く
2. [他のソフトウェア]タブで
http://archive.canonical.com/ubuntu lucid partner
http://archive.canonical.com/ubuntu lucid partner (ソースコード)
にチェックをつける。
3. sun-java6-jre パッケージをインストールする。
@honda0510
honda0510 / gist:865497
Created March 11, 2011 05:38
PHPメモ
// 全ての定義済の変数を表示する
exit( var_dump( get_defined_vars() ) );
// 全ての定義済みの定数の名前と値を表示する
exit( var_dump( get_defined_constants(true) ) );
// スーパーグローバル変数を表示する
phpinfo(INFO_VARIABLES);
@honda0510
honda0510 / gist:923947
Created April 17, 2011 11:07
sudoをつけると失敗することがある
ログインユーザーがオーナーのディレクトリで、sshプロトコルで git clone する場合、git clone に sudo をつけて実行すると失敗し、sudo をつけずに git clone したら成功した。
@honda0510
honda0510 / gist:951216
Created May 2, 2011 05:51
ObjectLister
1. Tlbinf32.dllを準備
Tlbinf32.dllはVisual Basic 6.0のCDに付属しているらしい?
ファイル: Tlbinf32.exe: Tlbinf32.dll のファイルのヘルプ
http://support.microsoft.com/kb/224331/ja
もしくは、Tlbinf32.dllを配布しているWebサイトからダウンロード
2. レジストリに登録
@honda0510
honda0510 / キー名を指定してレジストリエディタを開く.vbs
Created May 6, 2011 02:04
キー名を指定してレジストリエディタを開く
Option Explicit
Const REG_LAST_KEY = "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey"
Dim reg_key_path
Dim ws
reg_key_path = InputBox("レジストリエディタで開くキーをフルパスで入力して下さい")
reg_key_path = trim(reg_key_path)
if reg_key_path = "" then Wscript.Quit
@honda0510
honda0510 / gist:974035
Created May 16, 2011 07:21
gedit プラグイン
Advanced Editing
http://live.gnome.org/Gedit/AdvancedEditingPlugin
Edit Shortcuts
http://empty.23inch.de/pmwiki.php/Main/EditShortcuts
Regex Search and Replace
TabSwitch
@honda0510
honda0510 / gist:998801
Created May 30, 2011 11:57
メール通知設定
登場人物:moon, sun, mars
■アカウント作成時
状況:
sunがアカウントを作成した。
結果:
宛先:sun
件名:[Vanilla 2] Welcome Aboard!
本文:EmailWelcome