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
wget 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.7/tmux-1.7.tar.gz?r=http%3A%2F%2Ftmux.sourceforge.net%2F&ts=1360409958&use_mirror=jaist' -O tmux-1.7.tar.gz | |
tar xf tmux-1.7.tar.gz | |
cd tmux-1.7 | |
./configure | |
make | |
sudo make install |
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
# Default configuration file for tmux-powerline. | |
# Modeline { | |
# vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh | |
# } | |
# General { | |
# Show which segment fails and its exit code. | |
export TMUX_POWERLINE_DEBUG_MODE_ENABLED="false" | |
# Use patched font symbols. | |
export TMUX_POWERLINE_PATCHED_FONT_IN_USE="true" |
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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import datetime | |
import time | |
import os | |
from stat import * | |
import commands | |
import fnmatch |
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/env ruby | |
require 'net/http' | |
require 'uri' | |
# | |
t = [] | |
10.times() { |i| | |
t << Thread.new do |
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
% php -v | |
PHP 5.3.15 with Suhosin-Patch (cli) (built: Aug 24 2012 17:45:44) | |
% php loop.php | |
0.019730806350708 | |
0.14999198913574 | |
7.6 times faster than range. |
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
deb http://mirrors.teraren.com/dotdeb/ stable all | |
deb-src http://mirrors.teraren.com/dotdeb/ stable all |
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
deb http://packages.dotdeb.org squeeze all | |
deb-src http://packages.dotdeb.org squeeze all | |
deb http://packages.dotdeb.org squeeze-php54 all | |
deb-src http://packages.dotdeb.org squeeze-php54 all |
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/sh | |
sudo apt-get update | |
sudo apt-get install mercurial libncurses5-dev -y | |
src_dir=~/archive/ | |
if [ ! -d $src_dir ];then | |
mkdir $src_dir | |
fi |
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
deb http://mirrors.teraren.com/dotdeb/ stable all | |
deb-src http://mirrors.teraren.com/dotdeb/ stable all | |
deb http://packages.dotdeb.org squeeze-php54 all | |
deb-src http://packages.dotdeb.org squeeze-php54 all |
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
-- | |
-- Table structure for table `prefectures` | |
-- | |
CREATE TABLE IF NOT EXISTS `prefectures` ( | |
`prefectures_id` tinyint(3) unsigned NOT NULL auto_increment, | |
`region_id` int(11) NOT NULL, | |
`prefectures_name` varchar(20) NOT NULL, | |
`prefectures_priority` tinyint(3) unsigned NOT NULL default '0', | |
`prefectures_sort` tinyint(3) unsigned NOT NULL default '0', |