LinkedIn Reddit icon

Jingnan Si's Blog

Programming, Graphics Rendering and Life

日常lvm和便宜硬件

使用便宜ssd引发的问题以及修复过程

闲聊在家办公的装备(三) – 我的DAS来了

在家办公装备,爱折腾的石头折腾的DAS系统

闲聊在家办公的装备(二) – 存储之NAS VS. DAS

在家办公装备,NAS和DAS共享到底重要不

闲聊在家办公的装备(一) – 存储及服务器系统

在家办公装备必须跟上啊,存储和服务器是有需求的

最新版本未必好,记两个需要降级的问题

最新的kernel和软件版本不一定适合

Enable .local doman suffix on Linux

add .local doman suffix

Fix mdadm unable to activate array after upgrade kernel

mdadm soft raid fails after kernel upgrade

How to compare version string in a better way from shell command line

In shell command, compare version string in a better way

Some interesting blog about security needs to be checkout

http://www.darkreading.com/ http://securityweekly.com/ http://www.technewsworld.com/perl/section/tech-security/ http://ddosattackprotection.org/blog/cyber-security-blogs/ https://heimdalsecurity.com/blog/best-internet-security-blogs/ http://www.rasmussen.edu/degrees/technology/blog/top-cyber-security-blogs/ http://www.veracode.com/blog/2012/02/top-20-security-blogs http://www.marblesecurity.com/2014/01/22/top-10-security-blogs/

Build your own render farm

To Build your own render farm Render Manager: http://cgru.info/home A blog page talking about how to built your own Render Farm: http://arstechnica.com/information-technology/2014/05/how-to-network-lots-of-dumb-computing-muscle-in-a-fast-efficient-render-farm/1/ a maya script for v-ray http://www.creativecrash.com/maya/script/v-ray-tuner-for-maya

How (and Why) to Assign the .local Domain to Your Raspberry Pi

Original URL:How (and Why) to Assign the .local Domain to Your Raspberry Pi

How the wifi adapter or automatically wifi configuration for device works?

It is very interesting technology. Basically the device to be configured put the wifi device in “monitoring” mode, and the app will send udp wifi packet with different length, which different length indicate different “character”. http://depletionregion.blogspot.ch/2013/10/cc3000-smart-config-transmitting-ssid.html http://electronics.stackexchange.com/questions/61704/how-does-ti-cc3000-wifi-smart-config-work

How to protect your cloud storage files with EncFS

Original Post URL:https://www.bestvpn.com/blog/11385/protect-cloud-storage-files-encfs/

Virus Bulletin : Dylib hijacking on OS X

Original Post URL:https://www.virusbtn.com/virusbulletin/archive/2015/03/vb201503-dylib-hijacking

Introducing RancherVM: Package and Run Virtual Machines as Docker Containers | Rancher Labs

http://rancher.com/introducing-ranchervm-package-and-run-virtual-machines-as-docker-containers/

Client Certificate Authentication With Apache

Original Post URL:http://www.impetus.us/~rjmooney/projects/misc/clientcertauth.html

重温一下const char *和char * const

今天写代码的时候突然不能肯定const char * d; d++; 是不是对的了,就重温了一下经典的c++定义 结论: char * const p 定义一个指向字符的指针常数,即const指针 const char * p 定义一个指向字符常数的指针 char const*p 等同于const char* p 普通的指针d,进行d++肯定没问题了 http://blog.163.com/pei%5Fhua100/blog/static/805697592009550281616/

How to convert OpenSSH key to GnuPG

First we need to create a certificate (self-signed) for our ssh key: openssl req -new -x509 -key ~/.ssh/id_rsa -out ssh-cert.pem We can now import it in GnuPG openssl pkcs12 -export -in ssh-certs.pem -inkey ~/.ssh/id_rsa -out ssh-key.p12 gpgsm --import ssh-key.p12 Notice you cannot import/export DSA ssh keys to/from GnuPG The more key conversions, please refer to http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG,-OpenSsh-and-OpenSSL

命令行ssh桥接

通过一些ssh的客户端,可以很方便的做ssh forward,也就是通过一台主机上ssh连接到另一台主机,那么命令行可不可以呢? 只要在~/.ssh/config中加入如下指令即可 host serverB.example.com serverB ProxyCommand ssh -W %h:%p gateway serverB是最终的目的主机,gateway是中间转发的主机,gateway上需要配置无密码登录。 或者暴力一点 ssh -t usergateway@gateway ssh user1@serverb

screen 和 reptyr 远程工作的利器

在unix,maxosx或者linux下工作的时候,经常需要长时间运行一个程序,通常会把程序放到后台,然后通过日志来监控。 如果使用screen的话,可以让程序保持前台运行,又能通过detach放到后台。 如果在公司机器上用screen运行一个程序,然后detach,回家后通过ssh连接公司机器,用screen restore就可以继续观察程序运行了。 可是如果一开始没有用screen运行,直接放置到后台怎么办呢。reptyr就派上用场了,以下是reptyr的说明 reparent a orphan background process, means background a process in a terminal and bring it back to foreground to another terminal reptyr - A tool for "re-ptying" programs. ----------------------------------------- reptyr is a utility for taking an existing running program and attaching it to a new terminal. Started a long-running process over ssh, but have to leave and don't want to interrupt it? Just start a screen, use reptyr to grab it, and then kill the ssh session and head on home.