Skip to content

Instantly share code, notes, and snippets.

@youmuyou
youmuyou / main.py
Created October 16, 2016 03:56 — forked from littlecodersh/main.py
Main script behind itchat robot
#!python3
import itchat
# tuling plugin can be get here:
# https://github.com/littlecodersh/EasierLife/tree/master/Plugins/Tuling
from tuling import get_response
@itchat.msg_register('Text')
def text_reply(msg):
if '作者' in msg['Text'] or '主人' in msg['Text']:
return '你可以在这里了解他:https://github.com/littlecodersh'
@youmuyou
youmuyou / xnsCloud_v3.py
Created June 16, 2016 01:42 — forked from p0we7/xnsCloud_v3.py
Cloudxns DDNS Script v3.1 [ 代码末尾有安装方法 ]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: p0we7
# Email : [email protected]
def handle_import_error():
print '\n' + "Import Error:"
print 'Please install the required 3rd-party modules ' + '\033[4;95m' + 'requests' + '\033[0m' + '\n'
import sys
sys.exit()
#!/usr/bin/python
# Filename s5.py
# Python Dynamic Socks5 Proxy
# Usage: python s5.py 1080
# Background Run: nohup python s5.py 1080 &
# Email: [email protected]
import socket, sys, select, SocketServer, struct, time
class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): pass