VMware12中CentOS7网络设置
VMware提供了三种将虚拟网卡和物理网卡捆绑起来的方式,即桥接(Bridge)模式,网络地址转换(Network Address Transformation, NAT)模式和主机(Host Only)模式。 三种模式区别,参见...
View ArticleWhy switch to emacs with evil mode
Emacs ... What ? Without a doubt one of the best things i did for the last couple of years was learning vim, although we are programmers and we always try to find the smart way to solve dumb problems,...
View ArticleUploading to Strava from Arch Linux
I’ve had a MBP for work for the last year or so, so had side-stepped themisery of getting GPS data from my Forerunner 305 on to Strava . Now I’m back on Arch full time, and the plugin I was using no...
View ArticleSecurity Reseacher explains security issues related to Windows 10 Linux...
windows 10 includes a new linux subsystemwhich allows advanced windows users to access some of the automation features Linux users take for granted. Security company CrowdStrike has already noted that...
View ArticleLinux正则表达式及grep练习题
linux正则表达式及grep练习题 1、找出ifconfig命令结果中本机的所有IPv4地址 # ifconfig|grep -E -o "(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])" 2、查出分区空间使用率的最大百分比值 #...
View ArticleHow to use Gource to visualize your code repos (and more)
Why settle for boring numbers and static graphs to describe your open source project when you can dynamically display the movements and activity within your project? Gource is an amazing and flexible...
View ArticleProcess Substitution - Linux Expert Tip
Have you ever written a pipeline of linux commands, sat back marveled at the beauty of the elegant philosophy behind Unix design and thought, "wouldn't it be great if I could just branch the pipeline...
View ArticleDebian Code Search: improving client-side latency
Michael Stapelberg’s Debian Blog Debian Code Search: improving client-side latency (2016-08-08) A while ago, it occurred to me that querying Debian Code Search seemed slow, which surprised me because I...
View Article马哥教育网络班21期+第5周课程练习
1、显示/boot/grub/grub.conf中以至少一个空白字符开头的行; [root@localhost ~]#grep "^[[:space:]]\+" /boot/grub/grub.conf 2、显示/etc/rc.d/rc.sysinit文件中以#开头,后面跟至少一个空白字符,而后又有至少一个非空白字符的行; [root@localhost ~]#grep...
View ArticleM20 1- 第三周(1):课堂练习与作业
课堂练习: 1、创建用户gentoo,附加组为bin和root,默认shell为/bin/csh,注释信息为"Gentoo Distribution" [root@localhost ~]# useradd -G bin,root -s /bin/csh -c "Gentoo Distribution" gentoo[root@localhost ~]# id...
View ArticleLinux中Varnish基础应用
http cache的实现方式有两种: Squid、Varnish;一般被称为缓存服务器 Squid:支持正向和反向代理、是一款重量级的缓存服务器,在高负载的情况下,性能非常的稳定 Varnish:支持反向代理;相比于Squid是非常轻量级的缓存服务器,在高负载情况下,性能较差,没有Squid稳定;一般被称为http加速器; Varnish的特点: 一、组成部分...
View Articlersync+inotify实现数据同步及常见问题
rsync:Remote Sync,是类Unix系统下的数据镜像备份工具。通过rsync可以解决对实时性要求不高的数据进行备份需求;例如:指定的备份文件服务器数据到指定的远端服务器,对本地磁盘定期做数据镜像等。 inotify:inotify是一种文件变化通知机制;通过inotify可以在监控文件系统中添加、删除、修改、移动等各种操作。 准备环境: 主服务器(inotify-Master)...
View ArticleLinux on Windows might be a giant bug
While the world cheered at the prospect of linux running on windows, security experts were less sure and fear that it might have bought a new way to hack a Windows machine. Alex Ionescu, chief...
View ArticleTwo ways to batch-correct file Created and Modified times
It’s often useful to know when a file was created or modified, but as it’s copied, moved, processed, maybe imported from one PC to another, there’s a chance this vital information may be lost. Even...
View ArticleEmacs停止响应或崩溃了该怎么办.org
Emacs停止响应或崩溃了该怎么办 Emacs停止响应了怎么办 Emacs停止响应,通常是因为陷入循环中了,这时你需要按下 C-g 来挑出死循环. 若 C-g 不起作用则很可能是因为你用同步的方式调用了外部程序,而该外部程序由于某些原因一直卡着没有退出. 这种情况下,你只需要杀掉这个外部进程就可以了. 在MS windows中你可以通过任务管理器来杀掉进程. 如果我不知道要杀掉哪个外部进程怎么办?...
View ArticleTips & Tricks : CentOS firewalld : open port
Once you install CentOS 7 , by default firewalld will block almost all network traffic. In order to open ports for certain services you can easily reconfigure firewall using firewall-cmd command....
View Article星云测试发布针对开放式Linux操作系统的嵌入式精准测试平台Shell
星云测试发布针对开放式linux操作系统的嵌入式精准测试平台Shell 昨天来源:极客网 如 今,嵌入式系统被广泛引用于国防、航天、金融、通信等重要领域,随着物联网、智能硬件、机器人以及智能移动设备在各行业、家庭的快速普及和应用,逐渐出现 了取代PC的势头。而当软件的载体由PC转入特定的嵌入式硬件环境,这种系统的可靠性和安全性就显得越发重要。在诸多企业正对此进行相关研究之际,星云测...
View ArticleLinux系统服务――Daemon
linux系统服务――Daemon 昨天来源:CSDN博客 Linux入门讲解(12)什么是Daemon?Daemon是Linux的一些系统服务,它们是一些常驻内存的进程。Daemon分类Daemon拥有两种分类方式,按照“daemon是否可以在内存中独立启动”可以分为:stand alone和super...
View ArticleAI Linux
AI linux is a Linux distribution that comes complete withartificial intelligence libraries, tool and languages.A proof of concept alpha version is now available, suitable for test-driving in a virtual...
View Article在 Vim 中优雅地查找和替换
总有人问我 Vim 中能不能查找,当然能!而且是超级强的查找! 这篇文章来详细介绍 Vim 中查找相关的设置和使用方法。 包括查找与替换、查找光标所在词、高亮前景/背景色、切换高亮状态、大小写敏感查找等。 查找 在normal模式下按下 / 即可进入查找模式,输入要查找的字符串并按下回车。 Vim会跳转到第一个匹配。按下 n 查找下一个,按下 N 查找上一个。 Vim查找支持正则表达式,例如...
View Article