Skip to content

Instantly share code, notes, and snippets.

View hdemon's full-sized avatar

Masami Yonehara hdemon

  • LINE
  • Fukuoka, Japan
  • 19:45 (UTC +09:00)
View GitHub Profile
@hdemon
hdemon / .xmodmaprc
Created September 5, 2011 04:31
~/.xmodmaprc linux key-bind
# 変換キーを半角/全角へ
keycode 100 = Zenkaku_Hankaku
# 無変換をメタキーへ
keycode 102 = Escape
@hdemon
hdemon / dropbox
Created September 6, 2011 06:01
DropBox起動公式スクリプト ubuntu用
#!/bin/sh
# dropbox service
# /etc/init.d/dropbox
# From http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall/UbuntuStartup
DROPBOX_USERS="root hdemon"
DAEMON=.dropbox-dist/dropbox
@hdemon
hdemon / dropbox-install-ubuntu.sh
Created September 6, 2011 06:19
DropBox設定スクリプト ubuntu用
#!/usr/bin/bash
# install
cd ~
# wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86"
wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64"
tar xvzf dropbox.tar.gz
rm dropbox.tar.gz
# 起動スクリプトと自動起動の設定
@hdemon
hdemon / e
Created September 6, 2011 09:31
Emacs settings
#!/bin/bash
cd ~
git clone git@github.com:hdemon/my-emacs.git
### 一から構築する場合 ################################
# cd ~/.emacs.d
@hdemon
hdemon / init.sh
Created September 6, 2011 09:34
Ubuntu initialize
# install with English
# Language Setting
# VMwareToolsは/tmpを作業ディレクトリにしない。再起動時に消えるので、上手くインストールが完了していない気がする。
### basic package
sudo apt-get update
sudo apt-get install --yes aptitude
sudo aptitude -y install \
zsh \
@hdemon
hdemon / mysql-install.sh
Created September 6, 2011 12:07
MySQL5.5 install
#!/bin/bash
# http://namakesugi.blog42.fc2.com/blog-entry-98.htmlを参考に。
#
sudo aptitude install -y \
cmake \
paco \
bison \
g++ \
libncurses5-dev \
@hdemon
hdemon / ruby-install.sh
Created September 6, 2011 12:10
Ruby 1.9.2 install script
#!/bin/bash
### rvm
# rvmをシングルユーザで入れることがオフィシャルで推奨されているので、sudoは付けない。
# 以下全て同様。
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.zshrc
### Ruby 1.9.2
sudo aptitude -y install \
@hdemon
hdemon / eclipse-install.sh
Created September 7, 2011 02:28
Eclipseのインストールと設定
# 参照: http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/
wget http://www.ring.gr.jp/pub/misc/eclipse/downloads/drops/R-3.7-201106131736/eclipse-SDK-3.7-linux-gtk-x86_64.tar.gz
@hdemon
hdemon / easystroke.desktop
Created September 7, 2011 02:29
Easystrokeのデスクトップ設定ファイル
# /usr/share/applications
[Desktop Entry]
Encoding = UTF-8
Name = Easystroke
Comment = Easystroke
Exec = easystroke
Icon =
Terminal = false
Type = Application
Categories = GNOME;Application;
@hdemon
hdemon / my.cnf
Created September 8, 2011 04:03
my.cnf / 5.5
[client]
#password = your_password
port = 3306
#socket = /tmp/mysql.sock
socket = /var/run/mysqld/mysqld.sock
default-character-set = utf8
[mysqld]
port = 3306