N25第五周作业
1、显示/boot/grub/grub.conf中以至少一个空白字符开头的行; ]# grep -E '^[[:space:]]+.*' /boot/grub/grub.conf 2、显示/etc/rc.d/rc.sysinit文件中以#开头,后面跟至少一个空白字符,而后又有至少一个非空白字符的行; ]# grep -E '^#[[:space:]]+[^[:space:]]+'...
View ArticleNginx日志归档logrotate配置失效不执行的问题排查记录
某天晚上刚躺好准备去和周公欢谈,报警短信伴随着”悦耳“的铃声来到了。打开手机一看,竟然是某台Web服务器的磁盘使用率超过90%了,只好爬起来打开电脑、上线VPN、登录机器,开始处理问题。 首先看看是哪个分区有问题: [tabalt@localhost ~]$ df -lh Filesystem Size Used Avail Use% Mounted on...
View ArticlePatching scp and other updates.
I use openssh every day, be it the ssh command for connecting to remote hosts, or the scp command for uploading/downloading files. Once a day, or more, I forget that scp uses the non-obvious -P flag...
View ArticleCentOS7+Hadoop2.5.2+Spark1.5.2环境搭建
本文介绍在VMware下建立3台CentOS7系统虚拟机,搭建Hadoop+Spark的全过程。这里三台CentOS主机分别为Mars、Phobos、Deimos。 CentOS最小化安装 CentOS网络设置 防火墙配置 JDK安装 ssh免密登陆 NTP服务搭建 Hadoop搭建 Spark搭建 Scala安装 Spark安装 CentOS最小化安装...
View ArticleWe Never Said Ubuntu Phone Is Dead. Here’s What We Actually Wrote Line-by-Line
Inever said Ubuntu Phone is dead. But from the way a handful ofpeople in the Ubuntu community have reacted to our recent article, which relays word from a Canonical engineer thatUbuntu Phone is, for...
View ArticleRandomness in GNU/Linux
end of TL;DR so now go and read… Sources of randomness Randomness is the lack of pattern or predictability in events. - Wikipedia There are three generally accepted sources of randomness: * environment...
View ArticleRMS 宣布 Libreboot 不再是 GNU 的一部分
去年9月, GNU Libreboot 项目的维护者 Leah Rowe 在 GNU 邮件列表上 发表声明 ,单方面宣布脱离 GNU 项目和自由软件基金会(FSF),声称自由软件基金会搞性别歧视,解雇了一位跨性别雇员,她作为一位跨性别者对此无法接受。当时 FSF 主席 Richard Stallman(RMS) 和 FSF...
View Article如何在vim中搜索项目代码
如何在vim中搜索项目代码 这里使用的工具分别是Ag和Ack Ag和Ack都是一个全局搜索工具,但是Ag会更快,比Ack和Grep都要快 通过网络搜索后:http://harttle.com/2015/12/21/vim-search.html 使用方式是用Ag来进行搜索,使用Ack用来展示结果。 现在来进行安装步骤总结 安装Ag # OSXbrew install...
View ArticleEmerald Simple, Clean and Fresh Icon Theme For Linux
Emerald icon theme based on Breeze icon theme, it looks Simple, Clean and Fresh. It comes with two variants Emerald light & Emerald dark. So it suites for dark & light GTK themes. It contains...
View ArticleElisp Text Processing Idioms
The hard part of learning Elisp is not the syntax. Being Lisp, the syntax is trivial and takes about 10 minutes to learn. The real problem is learning the library and, perhaps even more difficult, the...
View ArticleChakraCore on Linux
The latest version of ChakraCore, an open-source javascript engine from Microsoft, finally supports JIT compilation on platforms such as linux and macOS. Abouta year ago, I played with the initial port...
View ArticleCES2017: Complete Register Documentation For The C.H.I.P.
Last October, Next Thing Co., makers of the popular C.H.I.P. platform unleashed the C.H.I.P. Pro , a very capable linux system on a tiny board. The goal of the C.H.I.P. Pro is to be the brains of a...
View ArticleVidar’s Blog Swearing in the Linux kernel: now interactive
If you’ve followed discussions on linux, you may at some point have bumped intoa funny graph showing how many times frustrated Linux kernel developers have put four letter words into the source code....
View ArticlePreparing Vim for Apple’s Touch Bar
Written by Harry Roberts on CSS Wizardry . Apple recently announced their updated MacBook line, introducing the Touch Bar that would be replacing the physical function row, including the escape key....
View ArticleCinnamon 3.2.8 Desktop Out Now for Linux Mint 18.1 with Menu Applet Improvements
Clement Lefebvre has published a new update of the beautiful, modern and responsive Cinnamon desktop environment, for the latest 3.2 stable series, of course, versioned 3.2.8. It's been a little over...
View ArticleDirected graph shell (dgsh)
dgsh ― directed graph shell The directed graph shell, dgsh , provides an expressive way to construct sophisticated and efficient big data set and stream processing pipelines using existing Unix tools...
View ArticleRed Hat Enterprise Linux 6.9 beta out now
Yes, Red Hat' s forthcoming Red Hat Enterprise linux (RHEL) 6.9 will come with stability and security improvements. That's not the real news. The big story is it supports the next generation of...
View ArticlePragmatic Emacs: How I view my google calendar agenda in Emacs
JCS over on Irreal describes a couple of ways of syncing a google calendar with yourorg-mode agenda. I prefer to keep my google calendar separate from my agenda, as I use the latter to track tasks...
View ArticleRed Hat Enterprise Linux 6.9 beta 发布
Red Hat Enterprise linux 6.9 beta 发布了。新版本会在稳定性和安全性有所改进,而且它通过更新的Red Hat Enterprise Linux 6基础映像支持下一代云本机应用程序。 红帽的基础是Linux,但它的未来在于云。这个测试版是红帽对未来愿景的又一个例子。 从这个测试版开始,开发人员和运营商可以开始将RHEL...
View Articleawk 语法深入-判断循环语句
awk 判断与循环语句 awk 作为一门语言,支持顺序、判断、循环三种语句。a wk的这三种语句借鉴了C语言,可以控制程序的流程。 条件语句有if/esle,循环语句有for循环、while循环、do/while循环。 - if 语句 语法格式: { if(expression) { statement;statement;... # statement之间以分号隔开 } } eg. awk...
View Article