This file contains 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
# PROMPT | |
PS1="[@${HOST%%.*} %1~]%(!.#.$) " | |
# 便利なプロント | |
setopt prompt_subst | |
# emacsライクなキーバインド | |
bindkey -e | |
#日本語環境 | |
export LANG=ja_JP.UTF-8 | |
# エディタはemacs |
This file contains 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/sh | |
# ---------- 設定 ---------- | |
# バックアップ元のデータベース | |
b_name=xxxxxxxx | |
b_user=xxxxxxxx | |
b_pass=xxxxxxxx | |
# バックアップ先のディレクトリ・ファイル | |
bk_dir=/backup/database/ |
This file contains 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
<DirectoryMatch "/*/\.svn"> | |
deny from all | |
</DirectoryMatch> |
This file contains 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
sphinx-build -a -b html . _build/html |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'twitter' | |
require 'time' | |
#Twitter OAuth認証情報 | |
consumer_key = '**********' | |
consumer_secret = '**********' |
This file contains 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
sudo vi /etc/yum.repos.d/CentOS-Base.repo | |
[10gen] | |
name=10gen Repository | |
baseurl=http://downloads.mongodb.org/distros/centos/5.4/os/$basearch/ | |
gpgcheck=0 | |
enabled=1 | |
yum search mongo-stable* | |
yum --enablerepo=10gen search mongo |
This file contains 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/local/bin/ruby | |
# -*- coding: utf-8 -*- | |
# 日本郵便の郵便番号データをMySQLのテーブルにINSERTするSQL文を生成する | |
# http://www.post.japanpost.jp/zipcode/dl/kogaki.html | |
# | |
require 'csv' | |
require 'fileutils' | |
require 'nkf' |
This file contains 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/sh | |
# PostgreSQL database backup script | |
# Version 1.1 [Apr. 17, 2002] Add routine: deleting exipired files. | |
# Version 1.0 [Sep. 10, 2002] First release. | |
# * Feature | |
# Dump to DATABASE_NAME_YYMMDD.pgdmp. | |
# Delete expired pgdmp file. | |
# Output log. |
This file contains 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/sh | |
# ---------- 設定 ---------- | |
# バックアップ元のデータベース | |
db_name=dbname | |
db_user=username | |
db_pass=password | |
# バックアップ先のディレクトリ・ファイル | |
bk_dir=/backup/database/ |
This file contains 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
wget ftp://ftp.ring.gr.jp/pub/GNU/emacs/emacs-23.3b.tar.bz2 | |
tar xjf emacs-23.3b.tar.bz2 | |
curl -o xcode_1.patch http://repo.or.cz/w/emacs.git/commitdiff_plain/c8bba48c5889c4773c62a10f7c3d4383881f11c1 | |
curl -o xcode_2.patch https://raw.github.com/gist/1098107 | |
curl -o fullscreen.patch https://raw.github.com/gist/1012927 | |
curl -o lion.patch https://raw.github.com/gist/1101856 | |
svn co http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk inline_patch-svn | |
cd emacs-23.3 | |
patch -p1 < ../xcode_1.patch | |
patch -p1 < ../xcode_2.patch |
OlderNewer