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/bash | |
# | |
# supervisord This scripts turns supervisord on | |
# | |
# chkconfig: 2345 95 04 | |
# | |
# description: supervisor is a process control utility. It has a web based | |
# xmlrpc interface as well as a few other nifty features. | |
# processname: supervisord | |
# config: /etc/supervisord.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
akazora:歌って踊れるデザイナー/Pasraの秩序 | |
sora_h:ドヤ顔Rubyコミッター/最も協調性のないメンバー | |
tnk:常識人担当/納期をお知らせするお姉様 | |
chihirow:Pasraのスパイス/常識人時々エスパー | |
pastak:Pasraの料理長/一途 | |
moccai:アイドル担当/安定したカラオケボイス | |
Glass_saga:hiの人/sora_hの弟子 | |
Pasra:おいしいレストランなのに一切料理の話題ない。/ゲームしかしてなくてすいません |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA749Cy0R836zA/v5e1umyqGESmJQ0mnpB4UajUcKr4FmZdmSVTAQlBP7/JrrsEdky7Nbs15HNH0lyQYU9qDsUxsknCDRbDqsO8a4sI6pUZYxF8hCSpaye+Z9w+se/IIpTRzIZ74gkV9CRYP3GFxQ24GX+vHrgFJoknMiXszIf4q/UVwOeKAZ+Jldx4s3PMqO1ld4rdIwhgnmk+s03fyAZ1UbWwhsm1TvQUClBzg1XBcPXtWym0GHRkQRM/6k1diOl6cj5LrBtmBofv3MQhcfPmSgLhQv613JEEHXeOFyRxZ7d4qRt0z1vgSNH0r4iKGbH4UkuL7ecfKyMnjbyCMFUWQ== [email protected] |
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
PYTHON_EXECUTABLE /Users/mactkg/.pythonbrew/pythons/Python-2.7.2/bin/python | |
PYTHON_INCLUDE_DIR /Users/mactkg/.pythonbrew/pythons/Python-2.7.2/include/python2.7 | |
PYTHON_LIBRARY /Users/mactkg/.pythonbrew/pythons/Python-2.7.2/lib/libpython2.7.dylib | |
PYTHON_PACKAGES_PATH /Users/mactkg/.pythonbrew/pythons/Python-2.7.2/lib/python2.7/site-packages |
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
今日、中学の友人三人と会った。最近ハマってるアイドルの話をしたり、年末の予定について話したりしたのだが、迷惑メールの話題 | |
になった時、少し考えたことがあったので此処に記述する。なお、今から書く内容はあくまでも考察レベルで、確実にそうだとは言え | |
ないので注意して欲しい。もしこの事が本当になったならば、また報告の記事を書こうと思う。「ふーん」程度で読んでもらって構わ | |
ない。 | |
友人三人はメールアドレスを幾ら変えても、迷惑メールが止まらないという問題に悩まされていた。どこかに登録したりだとか、そう | |
いったことは特に無いのだという。もしそれが事実なのであれば、以下の事が考えられた。 | |
1.新しいメールアドレスを教えた友人の中に、悪意を持った人間が居る | |
2.新しいメールアドレスを教えた友人のスマートフォンの中に、悪意を持ったアプリケーションがインストールされている |
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
def make_counter(x): | |
print('entering make_counter') | |
while True: | |
yield x | |
x = x + 1 | |
counter = make_counter(0) | |
counter #=> <generator object at *pointer*> | |
next(counter) #=> 0 | |
next(counter) #=> 1 | |
next(counter) #=> 2 |
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
#フィボナッチ数列のジェネレータ | |
def fib(max): | |
a, b, = 0, 1 #こういう代入も出来ます | |
while a < max | |
yield a | |
a, b = b, a + b | |
f = fib(6) | |
next(f) #=> 0 |
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
#イテレータの実装 | |
class Fib: | |
'''iterator that yields numbers in the Fibonacci sequence''' | |
def __init__(self, max): | |
self.max = max | |
def __iter__(self): | |
self.a = 0 |
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://ftp.jp.debian.org/debian stable main contrib non-free | |
deb http://security.debian.org/ stable/updates main contrib non-free |
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 | |
set -e | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
DESC="nginx daemon" | |
NAME=nginx | |
DAEMON=/usr/local/nginx-1.0.9/sbin/$NAME | |
SCRIPTNAME=/etc/init.d/$NAME | |
test -x $DAEMON || exit 0 |