日常骚操作

1,332 阅读2分钟

lookdiv激活码获取

lookdiv.com 秘钥:www.lookdiv.com

共享鼠标键盘

post.smzdm.com/p/343668/

手机微信清除缓存

debugx5.qq.com

安装node

www.cnblogs.com/chenhaoyu/p…

pycharm永久激活

wwx.lanzoux.com/b00o5o22d

navicat永久激活

www.360doc.com/content/20/…

linux安装nginx

blog.csdn.net/t8116189520…

linux安装视频教程

www.bilibili.com/video/BV17b…

靠谱的nginx

blog.csdn.net/zx1323/arti…

微信支付

blog.csdn.net/youand_me/a…

安装yapi

www.cnblogs.com/straycats/p…

yapi

初始化管理员账号成功,账号名:"admin@admin.com",密码:"ymfe.org" 部署成功,请切换到部署目录,输入: "node vendors/server/app.js" 指令启动服务器, 然后在浏览器打开 http://127.0.0.1:3000 访问

启动mongo--systemctl start mongod

Django ORM操作

www.django.cn/article/sho…

思否--一个非常好用的网站

segmentfault.com/t/django

Django博客开发

www.zmrenwu.com/

胡杨Django博客

www.the5fire.com/

Django官网

docs.djangoproject.com/zh-hans/3.0…

掘金

juejin.im/timeline

大力盘

www.dalipan.com

Django cookiecutter

git@github.com:pydanny/cookiecutter-django.git

/root/.local/share/virtualenvs/root-BuDEOXnJ Authorization

阿里云centos7升级python3.6.3

www.jianshu.com/p/a619baaf7…

安装python3.7 pip3.7 去哪里了?

www.jianshu.com/p/0d0c6f021…

Django REST framework中文文档

q1mi.github.io/Django-REST…

值得关注的10个Python语言博客

www.imooc.com/article/126…

python知识点github

github.com/yongxinz/te…

Default server or group of servers is not configured.Nothing would be uploaded automatically

Centos 7 Nginx安装与配置

docsxyz.com/wiki/nginx/…

查看端口

netstat -ltunp

mysql为表加上创建时间和更新时间(表存在)

ALTER TABLE tiku_zhiye ADD COLUMN create_time timestamp NULL DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER create_time;

建表时加上create_time和update_time(表不存在)

-- 创建用户

CREATE TABLE `user`(
`id` INT UNSIGNED AUTO_INCREMENT,
PRIMARY KEY (id),
`name` VARCHAR(100) NOT NULL,
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP on update current_timestamp
)ENGINE=INNODB DEFAULT CHARSET=utf8;

表存在而且字段也存在的时候让create_time和update_time实现自增

alter table user modify column create_time timestamp not null default current_timestamp;
alter table t_user modify column update_time timestamp not null default current_timestamp on update current_timestamp;

图床

imgchr.com/i/GyJEuD

启动yapi

node /home/project/yapi/my-yapi/vendors/server/app.js nohup &

测试api

yapi.demo.qunar.com/add-project username: andy password; andy

车亮亮Django博客系统

gitee.com/lylinux/Dja…

Flask使用原生sql

from CarApp.model.base import db
db.session.execute('sql语句')

Django使用原生sql

from django.db import connection
sql = """select count(company_id) as num from customer_service_comment where company_id={}"""
cursor = connection.cursor()
cursor.execute(sql.format(company_id))
return cursor.fetchone()[0]

go博客

cnblogs.com/qicun/

npm,node升级

# 先安装模块n
npm install n -g
# 将 node 升级到最新稳定版
n stable

# 将 npm 升级到最新版
npm install npm -g
# 如果要指定版本,可以通过@指定版本
# npm install npm@3.10.10 -g 


安装python3

安装node

Python 之 asyncio

vvl.me/2015/10/201…

jets激活

idea.cxyroad.com/jets/

python弹框操作

import  tkinter
import tkinter.messagebox
tkinter.message.showinfo("人生苦短,勇哥牛X")

python文件打包成可执行文件

pip install pyinstaller

# 安装完成之后,我们就可以在命令行界面直接调用
pyinstaller 
#命令来对 Python 代码程序进行打包。Pyinstaller 中有很多的参数可以供我们使用,但是最常用的还是以下几个:

-F:生成单个 exe 可执行文件;
-w:去除控制台窗口;
-i:指定程序的图标;
pyinstaller -F -w mainUI.py

当我们在装Python虚拟环境的时候出现workon:command not found

vim ~/.bashrc

# 添加下面这段代码
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
# 然后esc+:wq
# 在外层输入
source .bashrc  # 实现资源的刷新