好好爱自己!

上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 179 下一页
摘要: 原文: https://blog.mariusschulz.com/2016/05/25/the-andand-and-operator-in-javascript The && and || Operator in JavaScript Similar to other C-like progra 阅读全文
posted @ 2018-08-03 13:41 立志做一个好的程序员 阅读(245) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/2802055/what-does-the-construct-x-x-y-mean What is the double pipe operator (||)? The double pipe operator (||) is 阅读全文
posted @ 2018-08-03 09:28 立志做一个好的程序员 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Git branching and tagging best practices I am currently learning to use Git by reading Pro Git. Right now I'm learning about branching and tags. My qu 阅读全文
posted @ 2018-08-02 13:05 立志做一个好的程序员 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 切换到远程repository 所在的服务器, 再次提交,就是可以了的 :) Git Push error: refusing to update checked out branch here are two types of repositories: bare and non-bare Bar 阅读全文
posted @ 2018-08-02 12:13 立志做一个好的程序员 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 稍微再研究一下vim的命令使用。 q: 进入命令历史编辑。类似的还有 q/ 可以进入搜索历史编辑。注意 q 后面如果跟随其它字母,是进入命令记录。可以像编辑缓冲区一样编辑某个命令,然后回车执行。也可以用 ctrl-c 退出历史编辑,但此时历史编辑窗口不关闭,可以参照之前的命令再自己输入。用 :x 关 阅读全文
posted @ 2018-08-02 11:18 立志做一个好的程序员 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.linuxquestions.org/questions/linux-software-2/multiply-floats-in-bash-script-618691/ 1.方法一: 用awk 来 Quote: Originally Posted by mkrems 阅读全文
posted @ 2018-08-01 12:37 立志做一个好的程序员 阅读(302) 评论(0) 推荐(0) 编辑
摘要: https://serverfault.com/questions/587696/how-to-restart-php-fpm-from-cron 我也遇到了这个问题,想用cron 来启动php-fpm进程(当检测到php-fpm 进程挂掉的时候) 把service php5.6-fpm 这句改为 阅读全文
posted @ 2018-07-31 16:30 立志做一个好的程序员 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Atong介绍的这个工具,挺好用的。supervise 官方网站: https://cr.yp.to/daemontools.html cd /data/test cat test.c cat run 执行命令 svstat /data/test,结果如下: pstree -p: 自动监控并重启服务 阅读全文
posted @ 2018-07-31 14:25 立志做一个好的程序员 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 原文: http://man.linuxde.net/tee tee命令用于将数据重定向到文件,另一方面还可以提供一份重定向数据的副本作为后续命令的stdin。简单的说就是把数据重定向到给定文件和屏幕上。 存在缓存机制,每1024个字节将输出一次。若从管道接收输入数据,应该是缓冲区满,才将数据转存到 阅读全文
posted @ 2018-07-31 09:54 立志做一个好的程序员 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 修改ubuntu的启动级别 runlevel 37down voteaccepted 37down voteaccepted Ubuntu 16.04 uses systemd instead of init and hence the concept of runlevels is replace 阅读全文
posted @ 2018-07-30 14:15 立志做一个好的程序员 阅读(339) 评论(0) 推荐(0) 编辑
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 179 下一页

不断学习创作,与自己快乐相处