I hereby claim:
- I am toomore on github.
- I am toomore (https://keybase.io/toomore) on keybase.
- I have a public key whose fingerprint is 422B 779C D894 982B C41E 85EE 3624 CAD7 8AFC 3169
To claim this, I am signing this object:
week | start | end | |
---|---|---|---|
W53 | 2020-12-28 | 2021-01-03 | |
W01 | 2021-01-04 | 2021-01-10 | |
W02 | 2021-01-11 | 2021-01-17 | |
W03 | 2021-01-18 | 2021-01-24 | |
W04 | 2021-01-25 | 2021-01-31 | |
W05 | 2021-02-01 | 2021-02-07 | |
W06 | 2021-02-08 | 2021-02-14 | |
W07 | 2021-02-15 | 2021-02-21 | |
W08 | 2021-02-22 | 2021-02-28 |
import csv | |
import arrow | |
def range_week(year): | |
fmt = 'YYYY-MM-DD' | |
span = arrow.Arrow.span_range('week', arrow.get( | |
'%s-01-01' % year), arrow.get('%s-12-31' % year)) | |
with open('./weeks.csv', 'w+') as files: |
I hereby claim:
To claim this, I am signing this object:
# Set pid of nginx master process here | |
pid=4629 | |
# generate gdb commands from the process's memory mappings using awk | |
cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory mem_" addrs[1] " 0x" addrs[1] " 0x" addrs[2] ;}END{print "quit"}' > gdb-commands | |
# use gdb with the -x option to dump these memory regions to mem_* files | |
gdb -p $pid -x gdb-commands | |
# look for some (any) nginx.conf text |
package main | |
import ( | |
"fmt" | |
"net/mail" | |
"github.com/goamz/goamz/aws" | |
"github.com/goamz/goamz/exp/ses" | |
//"github.com/kr/pretty" | |
) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
import re | |
import sys | |
if __name__ == '__main__': | |
''' How to use. | |
python ./plurkbot.py {username} {password} {saysomething} | |
''' |
from pymongo import Connection | |
from pymongo.master_slave_connection import MasterSlaveConnection | |
Master = Connection() | |
Slaves = [Connection('127.0.0.1', 27018), Connection('127.0.0.1', 27019)] | |
db = MasterSlaveConnection(Master, Slaves).YOUR_dbs | |
print db.collection_names() |
2012/12/15 | |
修正 上傳檔案名稱 | |
2012/12/08 | |
修正 同步上傳作品到 Facebook 相簿 | |
2012/11/30 | |
新增 建立 攝影活動 服務 | |
2012/11/11 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
text = u'這是一封測試簡訊 This a test SMS.' | |
endpoint = 'https://rest.nexmo.com/sms/json' | |
data = { | |
'username': '{yours}', | |
'password': '{yours}', |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
try: | |
import gtk, pygtk, os, os.path, pynotify | |
pygtk.require('2.0') | |
except: | |
print "Error: need python-notify, python-gtk2 and gtk" | |
from datetime import datetime |