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
import os | |
import time | |
pid = os.fork() | |
if pid==0: | |
exit(0) | |
while 1: | |
time.sleep(1) |
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
ServerRoot "/usr" | |
LoadModule dir_module libexec/apache2/mod_dir.so | |
LoadModule authz_host_module libexec/apache2/mod_authz_host.so | |
LoadModule autoindex_module libexec/apache2/mod_autoindex.so | |
LoadModule alias_module libexec/apache2/mod_alias.so | |
LoadModule rewrite_module libexec/apache2/mod_rewrite.so | |
LoadModule log_config_module libexec/apache2/mod_log_config.so | |
LoadModule mime_module libexec/apache2/mod_mime.so | |
LoadModule setenvif_module libexec/apache2/mod_setenvif.so |
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
# encoding: utf-8 | |
import re | |
pattern = re.compile(r""" | |
{0}(?: | |
(?P<escaped>{0}) | # Escape sequence of two delimiters | |
(?P<tab>t) | # Escape sequence of tab-code | |
(?P<cr>r) | # Escape sequence of cr-code | |
(?P<lf>n) | # Escape sequence of lf-code |
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 | |
sudo apt-get install --yes git git-flow etckeeper | |
sudo nano /etc/etckeeper/etckeeper.conf # VCS="git" | |
sudo etckeeper init | |
sudo etckeeper commit -m "first" | |
LANG=C; xdg-user-dirs-gtk-update | |
sudo apt-get install --yes fcitx-mozc # 再ログイン必要 | |
# - 言語サポートのインストール(設定ダイアログ開くと更新) |
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 chmod 777 /dev/disk#* | |
sudo VBoxManage internalcommands createrawvmdk -filename RealHDD.vmdk -rawdisk /dev/disk# | |
sudo chmod 766 RealHDD.vmdk |
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 python | |
# encoding: utf-8 | |
import sys | |
import os | |
import time | |
import urllib | |
import urllib2 | |
import tempfile |
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 python | |
# encoding: utf-8 | |
import sys | |
import os | |
import atexit | |
import time | |
import numpy as np | |
import pyaudio |
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 python | |
# encoding: utf-8 | |
import sys | |
import time | |
import urllib | |
import urllib2 | |
import tempfile | |
from PySide import QtCore |
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 python | |
# encoding: utf-8 | |
import sys | |
import os | |
import atexit | |
import time | |
import json | |
import traceback |
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 python | |
# encoding: utf-8 | |
import os | |
import sys | |
import atexit | |
import json | |
import time | |
import tempfile | |
import wave |