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
% sudo apt-get install aptitude | |
% sudo apt-get install virtualbox-guest-utils | |
% sudo apt-get purge unity-lens-music unity-lens-photos unity-lens-video | |
% sudo apt-get purge unity-scope-gdrive unity-scope-musicstores unity-scope-video-remote | |
% sudo apt-get purge unity-webapps-common | |
% sudo apt-get purge xul-ext-ubufox xul-ext-unity xul-ext-webaccounts xul-ext-websites-integration | |
% sudo apt-get purge ubuntuone-client python-ubuntuone-client python-ubuntuone-storageprotocol | |
% sudo vi /etc/default/ntpdate | |
% sudo apt-get install ntp | |
% sudo vi /etc/ntp.conf |
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
/* | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
# | |
# Copyright (C) 2013 Yoshihiro TSUBOI <ytsuboi-at-gmail.com> | |
# | |
# Everyone is permitted to copy and distribute verbatim or modified | |
# copies of this license document, and changing it is allowed as long | |
# as the name is changed. | |
# |
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
import sys | |
from gevent import server | |
from gevent.baseserver import _tcp_listener | |
from gevent import pywsgi | |
from gevent.monkey import patch_all; patch_all() | |
from multiprocessing import Process, current_process, cpu_count | |
def hello_world(env, start_response): | |
if env['PATH_INFO'] == '/': | |
start_response('200 OK', [('Content-Type', 'text/html')]) |
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
#vim:fileencoding=utf-8 | |
# | |
# 古いMP3エンコードソフトを使った時、 | |
# ID3タグにSJIS文字列が入っているのを修正する。 | |
# | |
# エンコーディングがLatin-1なのにSJISらしき物を修正。 | |
# | |
# 2011-3-31 Shigeru KANEMOTO | |
# Public Domain | |
# |