上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页
摘要: Keyboard shortcuts Keyboard shortcuts Keyboard shortcuts are combinations of keys that allow you to perform actions, such as opening the settings dial 阅读全文
posted @ 2017-05-13 02:16 cdongyang 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Google Chrome快捷键大全 Chrome窗口和标签页快捷键:Ctrl+N 打开新窗口 Ctrl+T 打开新标签页 Ctrl+Shift+N 在隐身模式下打开新窗口 Ctrl+O,然后选择文件 在谷歌浏览器中打开计算机上的文件 按住 Ctrl 键,然后点击链接 从后台在新标签页中打开链接,但 阅读全文
posted @ 2017-05-13 01:50 cdongyang 阅读(189) 评论(0) 推荐(0) 编辑
摘要: golang的select典型用法 golang 的 select 的功能和 select, poll, epoll 相似, 就是监听 IO 操作,当 IO 操作发生时,触发相应的动作。 示例: 注意到 select 的代码形式和 switch 非常相似, 不过 select 的 case 里的操作 阅读全文
posted @ 2017-05-13 00:57 cdongyang 阅读(369) 评论(0) 推荐(0) 编辑
摘要: chrome浏览器更换favicon.ico后不更新缓存 1、按ctrl+F5强制刷新或网页上右键重新载入。2、再不行就删除缓存。3、但这样太讨厌了,还有个小窍门屡试不爽,那就是直接在浏览器地址栏访问favicon文件。4、如果访问还是原先的ico文件,在浏览图片时刷新一下,再回到网站看一下,已经解 阅读全文
posted @ 2017-05-13 00:27 cdongyang 阅读(3301) 评论(0) 推荐(0) 编辑
摘要: ssh -p port user@ip "rm -r filePath" 直接远程执行删除命令 ssh -p port user@ip rm -r filePath 同上 scp -r -P 23456 localFilePath user@ip:remoteFilePath 将本地的文件复制到远程 阅读全文
posted @ 2017-05-12 18:38 cdongyang 阅读(252) 评论(0) 推荐(0) 编辑
摘要: go cmd 的命令里不能ssh user@ip "rm /home/public" 最后的参数”/home/public"不要写引号("),不然会执行命令失败,但命令行里不加引号可以执行,所以尽量不要加引号 要注意的是一个fsnotify.Watcher能watch多个文件和文件夹,不要一个Wat 阅读全文
posted @ 2017-05-12 18:07 cdongyang 阅读(1923) 评论(0) 推荐(0) 编辑
摘要: c++封装编写线程池 可以模拟go 的postgresql连接池,但要自己模拟实现c++的channal 阅读全文
posted @ 2017-05-11 10:51 cdongyang 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 自动挂载配置文件: /etc/fstab 先手动将所有磁盘打开,再用ps -ef | grep mount.ntfs查出所有磁盘的mount状态,粘贴到/etc/fstab改一下,重启就看到效果了 参考自 ubuntu14.04开机自动挂载windows磁盘的配置方法 阅读全文
posted @ 2017-05-11 10:25 cdongyang 阅读(1766) 评论(0) 推荐(0) 编辑
摘要: 查看日志:journalctl -xe 重新加载更新了的service:systemctl daemon-reload 设置ssh.service自启:systemctl enable ssh.service 关闭ssh.service自启:systemctl disable ssh.service 阅读全文
posted @ 2017-05-11 00:42 cdongyang 阅读(7358) 评论(0) 推荐(0) 编辑
摘要: 客户端访问的ip写错或者服务端的listen ip写错 listen(":8080") == listen("0.0.0.0:8080”) 可以用127.0.0.1:8080访问,也可以用网卡ip:8080访问 listen("127.0.0.1:8080")只能通过127.0.0.1:8080访问 阅读全文
posted @ 2017-05-10 23:30 cdongyang 阅读(14752) 评论(0) 推荐(1) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页