Linux Hacks
sed
sed是Unix常见的命令行程序。sed用来把文档或字符串里面的文字经过一系列编辑命令转换为另一种格式输出。sed通常用来匹配一个或多个正则表达式的文本进行处理。 分号可以用作分隔命令的指示符。尽管sed脚本固有的很多限制,一连串的sed指令加起来可以编程像仓库番、快打砖块、甚至俄罗斯方块等电脑游戏的复杂程序
应用示例
获取csrf对应value值 <input name=”csrf” value=”slkajfdklasjdflkajsdflka”/>
echo '<input name="csrf" value="slkajfdklasjdflkajsdflka"/>' | grep "csrf" | sed 's/...
Jekyll for github page
Install Jekyll on Windows 7
Installation via RubyInstaller
RubyInstaller is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important documentation, and more.
Download and Install a package manager version from RubyInstaller Downloads.
Install Jekyll and Bundler via a command prompt window:
...
18 post articles, 3 pages.