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
| # name = "SSR" | |
| # author = "Jesson" | |
| # website = "https://www.huaqing.org/" | |
| [RULESET.SSR] | |
| name = "SSR" | |
| rules = [ | |
| "DOMAIN-SUFFIX,0rz.tw,PROXY", | |
| "DOMAIN-SUFFIX,0to255.com,PROXY", | |
| "DOMAIN-SUFFIX,12bet.com,PROXY", |
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
| # name = "BlockAD" | |
| # author = "Jesson" | |
| # website = "https://www.huaqing.org/" | |
| [RULESET.BLOCKAD] | |
| name = "blockad Rules" | |
| rules = [ | |
| "DOMAIN-SUFFIX,00oo00.com,REJECT", | |
| "DOMAIN-SUFFIX,0563d.com,REJECT", | |
| "DOMAIN-SUFFIX,0311zs.net,REJECT", |
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
| import tornado | |
| class RequestContextHandler(tornado.web.RequestHandler): | |
| def _execute(self, transforms, *args, **kwargs): | |
| # following the example of: | |
| # https://github.com/bdarnell/tornado_tracing/blob/master/tornado_tracing/recording.py | |
| global_data = {} # add whatever here, e.g. self.request |
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
| from rq import Queue, Worker, Connection | |
| if __name__ == '__main__': | |
| with Connection(): | |
| q = Queue() | |
| Worker(q).work() |