Skip to content

Instantly share code, notes, and snippets.

💭
writing bugs

mtianyan

💭
writing bugs
Block or report user

Report or block mtianyan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mtianyan
mtianyan / falsk_blue.py
Created Jan 14, 2019
[flask] Flask Restless 20 行代码搞定服务器 CURD 接口
View falsk_blue.py
blueprint = manager.create_api_blueprint(Person, methods=['GET', 'POST'])
app.register_blueprint(blueprint)
@mtianyan
mtianyan / help.txt
Created Jan 4, 2019
[xadmin] ueditor Error
View help.txt
在xadmin2+Django2.1+Python3.6.6中,出现render() got an unexpected keyword argument 'renderer'错误
找到UEditor/widgets.py,167行
def render(self, name, value, attrs=None):
# 修改为
def render(self, name, value, attrs=None, renderer=None):
@mtianyan
mtianyan / form_data_to_dict_json.py
Created Jan 3, 2019
[python] form_data_to_dict
View form_data_to_dict_json.py
import re
import json
post_data = """
utf8: ✓
authenticity_token: +3wLsKUPfQGQyMyTuJbJFmdIZZtaoS2QgB9NgSOr0rtoqE1/lmx0WOXpGRh3v+yoXeHeWCtA==
session[email_or_mobile_number]: 1147727180@qq.com
session[password]: 123456
session[oversea]: false
captcha[validation][challenge]: 763dc07fa62749901039eead5a8211cf
captcha[validation][gt]: ec47641997d5292180681a247db3c92e
@mtianyan
mtianyan / mysql8.bat
Created Jan 3, 2019
[mysql8] init root password
View mysql8.bat
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
@mtianyan
mtianyan / win-proxy.bat
Created Dec 26, 2018
[windows] cmd->proxy
View win-proxy.bat
set http_proxy=socks5://127.0.0.1:1080
set https_proxy=socks5://127.0.0.1:1080
set ftp_proxy=socks5://127.0.0.1:1080
curl ifconfig.me
You can’t perform that action at this time.