仮想ディスクを圧縮する 仮想ディスクの空き領域を0で埋める OSがファイルを削除する場合、実際にはファイルのインデックス情報を削除するだけで、ファイルの実体は削除されません。 圧縮する前に仮想ディスクの空き領域を0で埋める必要があります。 Windowsではマイクロソフトから空き領域を0で上書きするsdeleteツールが無料で提供されているので、これを利用します。 コマンドプロンプトを起動し-zオプションでsdeleteを実行します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This update hook enforces the following policies | |
# 1) release and master branches are fast-forward only | |
# 2) feature branches cannot contain merges | |
$refname = ARGV[0] | |
$oldrev = ARGV[1] | |
$newrev = ARGV[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change IP range for NAT | |
VBoxManage modifyvm "YOUR_VM_NAME" --natnet1 "192.168.0/24" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 固定サイズ → 可変サイズに変換 | |
% VBoxManage clonehd <FIXED_VDI> <DYNAMIC_VDI> --format VDI --variant Standard | |
# 仮想ディスクを拡張 | |
% VBoxManage modifyhd <DYNAMIC_VDI> --resize <NEW_SIZE> ← サイズは MB で指定 (例: 10GB = 10240) | |
# 可変サイズ → 固定サイズに変換 | |
% VBoxManage clonehd <DYNAMIC_VDI> <NEW_FIXED_VDI> --format VDI --variant Fixed | |
# hide menu and status bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FindBugs | |
http://findbugs.cs.umd.edu/eclipse | |
CheckStyle | |
http://eclipse-cs.sourceforge.net/update | |
PMD | |
http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/ | |
JAutodoc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C-S-l ショートカット一覧を表示 | |
F12 Cmd+F12 エディタへ | |
Ctrl+E Cmd+E エディタ切替・一覧から | |
Ctrl+PageUp Ctrl+Fn+↑ エディタ切替・前 | |
Ctrl+PageDown Ctrl+Fn+↓ エディタ切替・後 | |
Ctrl+M Ctrl+M エディタ最大化 | |
Ctrl+W Cmd+W エディタ閉じる | |
Ctrl+Shift+T Cmd+Shift+T クラスを開く |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install xcode | |
install xcode command tools from Preference -> Download | |
# https://github.com/byplayer/docs/blob/master/git/git_config.txt | |
# install macports | |
# $ sudo port install パッケージ名 | |
# $ sudo port uninstall パッケージ名 | |
# $ port variants パッケージ名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function install(){ | |
REPO=$1 | |
DIR=$2 | |
TARGET=$3 | |
BUILD_DIR=~/buildxcodeplugins/work | |
mkdir -p ${BUILD_DIR} | |
rm -rf ${BUILD_DIR}/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBoxManage modifyvm "Debian 6" --natdnspassdomain1 off --natdnshostresolver1 on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shiftを押して、ubuntuを起動 | |
Ctrl + e で編集 | |
linux /boot/vmlinuz... で始まる行の quiet splash の後に single と追記する | |
Ctrl + x キーを押して single user mode で起動する | |
gpasswd -a user_name adm | |
gpasswd -a user_name sudo |