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 | |
import datetime | |
import time | |
end = datetime.datetime(2010,11,6,11,30) | |
while 1: | |
time.sleep(0.8) | |
print '\r\n' * 30 |
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 | |
# -*- coding: utf-8 -*- | |
# 抓取最近上市或是上櫃公司資料 | |
# By Toomore | |
class iiqy(object): | |
def __init__(self, t, page): | |
''' | |
t: |
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/python | |
# encoding:utf8 | |
# vlshow.py | |
# Copyright (C) 2006 Joachim Breitner | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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
# 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 |
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
package main | |
import ( | |
"fmt" | |
"net/mail" | |
"github.com/goamz/goamz/aws" | |
"github.com/goamz/goamz/exp/ses" | |
//"github.com/kr/pretty" | |
) |
NewerOlder