Vitecho.comVitecho.com
<< >>

Git revert deleted branch

$ git fsck --lost-found

dangling commit 9e08b611c88152b46892b4aa2e4f65ac6b1f647d
dangling commit 3848d9a41573139637d507e78cb5ac020f195ede
dangling commit c69a71697c551f63979234373f8f0eb986faf52c

$ git rebase 9e08b611c88152b46892b4aa2e4f65ac6b1f647d

binary-dec-hex-base64-ascii converter/translator

解决iMac装XP不能语聊问题(声卡驱动)

OSx86 64Bit 升级 10.6.5 后 AppleACPIPlatform kernel panic

安装方式: myHack

主板: Gigabyte X58-Extreme

升级前版本: 10.6.4

原因: 老版本的 SleepEnabler 和升级有冲突

解决: 更新 SleepEnabler 替换在 /Extra/Extensions 下的相同kext 记得替换后用 myHack 带的 pfix 修复权限 SleepEnabler下载地址 原文

测试: 休眠到硬盘和之前一样很稳定

Gentoo SNMP 监控宝

1. 为 net-snmp 添加磁盘IO支持:

$ echo "net-analyzer/net-snmp diskio" >> /etc/portage/package.use

2. 安装 net-snmp

$ emerge net-snmp

3. 配置

添加用户:

$ snmpconf

I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)

1:  snmpd.conf
2:  snmptrapd.conf
3:  snmp.conf

选择 1, 后面按照提示操作加入用户jiankongbao 验证模式选 auth

为上面添加的用户设置密码和权限:

$ net-snmp-config --create-snmpv3-user -a SHA -ro jiankongbao

4. 监控宝

监控宝具体设置请参照监控宝提供的wiki: 在Linux服务器上开启安全的SNMP代理 以及 安全指引

mongodb 不支持128个字符以上的命名空间

Wed Sep 29 16:41:45 [conn14415] building new index on { place: 1, date: -1, recorded: -1, overload: 1, overlimit: 1, track: 1, direction: 1, gross: -1, number: 1, photo_big: 1, color: 1 } for cars.recent_cars

Wed Sep 29 16:41:46 [conn14415] insert cars.system.indexes exception 10080 ns name too long, max size is 128 1116ms

你不能像入秋的蚊子, 有欲望, 却没有力气.

凡战者, 以正合, 以奇胜

TDD - 一切皆释然

Gentoo limits.conf example for nginx

Edit file

/etc/security/limits.conf

*       soft    nofile  8192
*       hard    nofile  16384
nginx   soft    nofile  8192
nginx   hard    nofile  8192

rsync with ssh

rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/

Using Rsync and SSH

rsync 和 ssh 备份笔记

Gentoo + Ganglia + RRDTool 输出图片里面的字是方块

新装的机器, 缺少字体文件, 装一个就好了:

emerge ttf-fonts

make a 64M swapfile

dd if=/dev/zero of=/swapfile bs=1024 count=65536

© Copyright 2010-2011
Web Analytics