Skip to content

Instantly share code, notes, and snippets.

View yano3's full-sized avatar
❄️
NO SNOW, NO LIFE.

Teppei Yano yano3

❄️
NO SNOW, NO LIFE.
View GitHub Profile
$ brew upgrade cmake
Warning: Your Xcode (3.2.5) is outdated
Please install Xcode 3.2.6.
==> Upgrading cmake
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cmake-2.8.9.snowleopard.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cmake-2.8.9.snowleopard.bottle.tar.gz
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
@yano3
yano3 / Vim_2012-08-21-221817_xxxx.crash
Created August 21, 2012 13:20
Saved crash report for Vim
Process: Vim [47588]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: MacVim [47584]
Date/Time: 2012-08-21 22:18:14.404 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@yano3
yano3 / Vim_2012-08-21-103439_xxxx.crash
Created August 21, 2012 01:36
Saved crash report for Vim
Process: Vim [43760]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: MacVim [43756]
Date/Time: 2012-08-21 10:34:37.061 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@yano3
yano3 / Vim_2012-08-21-094712_xxxx.crash
Created August 21, 2012 01:11
Saved crash report for Vim
Process: Vim [43417]
Path: /Applications/MacVim.app/Contents/MacOS/Vim
Identifier: Vim
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: MacVim [43414]
Date/Time: 2012-08-21 09:47:11.709 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@yano3
yano3 / gist:2863455
Created June 3, 2012 13:19
Ubuntu 10.04 setup / JDK Installation
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/jvm/jdk1.7.0_04/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/jvm/jdk1.7.0_04/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/jvm/jdk1.7.0_04/bin/javaws" 1
@yano3
yano3 / gist:2862547
Created June 3, 2012 08:17
Ubuntu 10.04 setup / installed packages
$ sudo apt-get install vim
$ sudo apt-get install zsh
$ sudo apt-get install git-core
$ sudo apt-get install tmux
@yano3
yano3 / gist:2862478
Created June 3, 2012 07:39
sshd_config diff
$ diff /etc/ssh/sshd_config /etc/ssh/sshd_config.dist
26c26
< PermitRootLogin no
---
> PermitRootLogin yes
50c50
< PasswordAuthentication no
---
> #PasswordAuthentication yes
@yano3
yano3 / gist:2862354
Created June 3, 2012 07:07
ufw setting
$ sudo ufw status
Status: inactive
$ sudo ufw default deny
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
$ sudo ufw allow ssh
Rules updated
$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
$ sudo update-locale LC_ALL=en_US.UTF-8
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
@yano3
yano3 / gist:2862006
Created June 3, 2012 05:10
Sakura VPS Ubuntu 10.04 amd64 Manual
$ sudo fdisk -l
Disk /dev/vda: 214.7 GB, 214748364800 bytes
16 heads, 63 sectors/track, 416101 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00080477
Device Boot Start End Blocks Id System