- linux可以使用Upstart和Systemd进行进程管理
- 当然也可以使用一些知名软件服务 Monit和Supervisor
vim /etc/inittab
SU:2345:respawn:/usr/bin/supervisord -c /etc/supervisord.conf
#使其生效
init q
{ | |
"tags": [ | |
{ | |
"text": "GoCN出品", | |
"color": "rgb(255, 255, 255)", | |
"background": "rgb(99, 171, 247)" | |
} | |
], | |
"id": "root", | |
"title": "Go知识图谱", |
vim /etc/inittab
SU:2345:respawn:/usr/bin/supervisord -c /etc/supervisord.conf
#使其生效
init q
# git stash 讲当前修改隐藏起来
# 查看隐藏
git stash list
git stash pop
git stash pop --index stash@{0}
git stash drop --index stash@{0}
# 清除隐藏
git stash clear
-- 快速复制一个表,添加limit 0可以只保留结构
CREATE TABLE copy_table AS SELECT * FROM original_table
-- 将sql语句的查询结果保存到文件中
pager cat > /tmp/sql_result_file
-- 设置上述命令之后执行的sql结果将不在屏幕缓冲区显示,直接写入文件
-- explain 查询计划
-- type指标的排序
// 生成随机颜色代码
(~~(Math.random()*(1<<24))).toString(16)
// 给所有元素添加随机色的外边框线
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
});
- [ ] Be awesome
- [ ] Do stuff