- リザルト
http://tour-de-okinawa.jp/2012/005_results1.pdf
- 市民140kmゴール 優勝は遠藤庫央(中央、チームCB)
#! /bin/sh | |
## | |
## /sbin/iptables-save -c > /etc/iptables.rules | |
## | |
trusthost='10.0.3.101' | |
internal_ip='10.0.3.0/24' | |
my_internet_ip='xxx.xxx.xxx.xxx' |
#!/usr/bin/env python | |
import os | |
import snappy | |
import struct | |
import snappy | |
import binascii | |
SNAPPY_JAVA_MAGIC = '\x82SNAPPY\x00\x00\x00\x00\x01' |
#!/usr/bin/env python | |
import threading | |
import memcache | |
import Queue | |
import inspect | |
import uuid | |
import time | |
http://tour-de-okinawa.jp/2012/005_results1.pdf
- v3 | |
sudo apt-get install \ | |
bison flex \ | |
libboost-dev \ | |
libqt4-dev \ | |
libical-dev \ | |
libvlc-dev \ | |
libclucene-dev |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import simplejson | |
import json | |
t1 = unichr(12345) | |
t2 = u"a" | |
print type(simplejson.loads(simplejson.dumps(t1))) |
>>> import tornado.template | |
>>> t = tornado.template.Template("<html>{{myvalue}}</html>") | |
>>> d['myvalue']='hoge' | |
>>> t.generate(**d) | |
'<html>hoge</html>' | |
>>> t.generate(myvalue='ika') | |
'<html>ika</html>' |
# usage: . `var.py config1 config2.py ....` | |
import re | |
import sys | |
if __name__ == "__main__": | |
re_shellvar = re.compile('^[a-z][a-z0-9_]*$', re.IGNORECASE) | |
for v in sys.argv[1:]: | |
if v.endswith('.py'): |
#!/bin/env python | |
""" | |
-- | |
#/bin/sh | |
. `./config.py` | |
.... |
#!/usr/bin/env python | |
import subprocess, shlex | |
from datetime import datetime | |
import os, stat, sys | |
class rsync_link(object): | |
base_cmd = "rsync -atv --out-format='%i;%f' --log-file=hoge.log" | |
def __init__(self, org, to): |