- 博客(440)
- 资源 (16)
- 收藏
- 关注
原创 判断IP是否为搜索引擎蜘蛛或爬虫
判断IP是否为搜索引擎蜘蛛或爬虫主要是通过向DNS服务器发送反向域名解析查询,获取指定ip的相关域名信息来判断是否为相应搜索引擎或爬虫. 通过 dig 或者 host 工具皆可查询.Example:> dig -x 8.8.8.8 +shortgoogle-public-dns-a.google.com.> dig google-public-dns-a
2016-03-31 12:36:35 7331
原创 Lighttpd 启用 HTTPS 并重定向 HTTP 为 HTTPS 访问配置
使用openssl生成自签名证书openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -sha256 -keyout /etc/lighttpd/server.pem -out /etc/lighttpd/server.pem配置 https 支持ssl.engine = "enable"ssl.pemfile = "/etc/li
2016-02-29 10:17:33 9193
原创 RHEL6/7 下安装 devtoolset-3/4
copr.fedoraproject.org 提供了第三方构建的 devtoolset-3/4 的仓库, 可直接添加yum源repo后体验 devtoolset-3(gcc-4.9.2) devtoolset-4(gcc-5.2.1),免去自己构建编译 gcc 麻烦 :)devtoolset-3CentOS 6https://copr.fedoraproject.org/coprs/r
2016-01-07 10:32:15 9919
原创 VMware Fusion 启动物理磁盘及U盘的方法
OSX下vmware fusion 跟windows下vmware workstation 差不多,都是利用vm工具生成一个物理硬盘/USB的vmdk映射文件,然后加载这个vmdk启动即可.首先查看磁盘bash-3.2$ diskutil list/dev/disk0 #: TYPE NAME SI
2015-09-15 01:57:23 17969 1
原创 VMware Funsion 修改vmnet1/vmnet8默认网络地址及DHCP地址
vmnet1 & vmnet8 的配置文件位于 "/Applications/Vmware Fusion.app/Contents/Library" , 可修改默认地址也,vmnet8 还可以添加映射端口。VMware Funsion 版本为 8.
2015-09-13 19:14:13 14073 4
原创 VMware Fusion使用共享模式下虚拟机断网的解决方案
VMware Fusion 下虚拟机使用NAT共享网络时时常不间断断网,每次都需要把虚拟机关掉,重新启动VMware Funsion才可以打开网络。研究了下,发现实际也可以通过命令行来重启NAT,无需退出VMware Funsion.NAT 启动命令 sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-nat
2015-09-13 19:01:51 9367
原创 PatchELF 修改linux下elf文件library搜索路径
http://nixos.org/patchelf.htmlwget http://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.bz2tar -zxf patchelf-0.8.tar.bz2cd patchelf-0.8./configure --prefix=/usrmake && make install
2015-09-07 11:34:52 17333 2
原创 编译cloog for gcc 4.8.5 问题
./configure --with-isl=system --with-isl-prefix=/opt/gcc-4.8.5/builddir/isl-install --prefix=/opt/gcc-4.8.5/builddir/cloog-install编译cloog时遇到一个链接错误make[1]: Entering directory `/mnt/gcc/cloog-0.18.0
2015-09-07 08:14:31 4875
原创 putty GB2312 & BIG5 中文字符集补丁
putty 中如果一种不支持中文字符集的 monospace 字体,一般选择了就没法输入中文了。UTF8编码倒是配置字符集,但是ANSI的 GB2312 & BIG5 字符集一直不支持,除非选择支持GB2312&BIG5字符集的字体,比如 "Fixedsys" “NSimSun” 与其他中文字体。以下这个补丁就是给putty添加 GB2312 & BIG5 字符集支持,用VC编译后选择其中所需的字
2015-08-21 11:24:11 8017 1
原创 搭建 Mellanox ConnectX-3 EN 10/40 Gbps 网卡 DPDK 运行环境
搭建 Mellanox ConnectX-3 EN 10/40 Gbps 网卡 DPDK 运行环境
2015-07-02 17:01:02 11633 8
原创 升级 Mellanox ConnectX-3 EN 10/40 Gbps 网卡固件
升级 Mellanox ConnectX-3 EN 10/40 Gbps 网卡固件
2015-07-02 16:57:50 20210
转载 TCP/IP 问答
转自奔流杂志其中几个期刊中的《TCP/IP》问答,感觉总结的比较好,这里做一个归并.问:处于 syn-received状态中再收到 syn报文时该如何处理?答:为确保可能发生的客户机SYN重传,各种实现及实验环境下处理机制各不相同,基本流程思路如下:1. syn-received状态的服务器在 SYN+ACK重传定时未超时并未收到客户机 ACK时,再
2015-07-02 16:41:42 2806 1
转载 增量式修改检验和(IP, TCP, UDP)算法的研究和实现
/** Author: Godbach * E-mail:nylzhaowei@163.com* 本文可以自由转载,但请标明出处,并保证本文的完整性。*/对于数据包中检验和的计算,很多讲TCP/IP协议的书中都讲过,RFC1071是讨论计算检验和的文档。传统的计算方法都是需要将整个数据报文的数据(IP报文是计算IP头部的数据)进行反码求和。 但在实际的应用中,存在对收到
2014-08-13 23:31:40 9796
转载 How to mount HDFS using FUSE
How to mount HDFS using FUSEPosted on June 3, 2012 by Dan Nanni 6 CommentsHadoop Distributed File System (HDFS) is a distributed, scalable filesystem developed as the back-end stor
2014-01-04 21:39:54 4278
转载 building a centos docker base image
http://failshell.io/docker/building-a-centos-docker-base-image/There’s been a lot of buzz lately around the Go programming language. A lot of cool tools have been written using it. One in part
2014-01-04 21:33:11 6375
转载 Linux内核源码特殊用法
Linux内核源码特殊用法1 前言Linux内核源码主要以C语言为主,有一小部分涉及汇编语言,编译器使用的是Gcc。初次看内核源码,会遇到一些难以理解、晦涩的代码;而恰恰是这些晦涩的代码,在内核源码中经常出现。把一些晦涩、常见的代码看懂后,大家会发现看内核代码越来越顺利。本文以x86_64架构中的Linux 2.6.32-71.el6(RHEL 6)源码为例,选择一些经常出现
2013-12-30 23:08:18 5858
转载 RedHat RealTime Kernel
http://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/RHEMRG/SRPMS/
2013-12-22 12:56:24 3254
转载 GiraffeOS
GiraffeOS=========GiraffeOS,Run with Windows,side by side,and Run in x86,another CPU of Mulit-PorcesserGiraffeLoader:A task loader,for load a task to run.GiraffeBoot:the OS's boot loader,Star
2013-12-17 11:51:54 2506
转载 QUIC简介
QUIC,即Quick UDP Internet Connection,类似于SPDY,同样也是由Google公司在现有已存协议之上进行了扩展设计,而旨在减少网络延迟。之前我曾介绍过SPDY的相关信息,SPDY工作在应用层,而这里的QUIC工作在传输层。虽然QUIC的名字暗示着它类似于一个被修改过的UDP协议,但它的目标却是优化或替换那些需要使用面向链接的应用程序中所采用的TCP协议。因为
2013-12-15 17:12:26 15224
原创 PFQ: a Linux kernel module for packet capturing on multi-core architectures
PFQ: a Linux kernel module for packet capturing on multi-core architecturesPFQ 是一个基于多核架构的Linux内核的数据包抓取模块,与PF_RING&NETMAP有点类似。看官方性能数据(http://netgroup.iet.unipi.it/software/pfq/performance.html)
2013-12-07 23:11:16 2694
转载 Kernel Memory Allocation
KernelMemoryAllocationhttp://kernelnewbies.org/KernelMemoryAllocationby Arnout Vandecappelle, MindIn the kernel, malloc() is not available. Instead, the kernel has to define its own memo
2013-12-07 23:05:17 3291
转载 Kernel space DMA and User space DMA
Author: Joseph(Honggang Yang) Contents: Kernel space DMA and User space DMADate: 11-02-2011Last modified: 11-02-2011=======================================================1. The general step
2013-12-07 22:36:57 3155
原创 关于内核中断线程化
很久没看内核代码,才发现RT中的中断线程早已合并到主线中,而且远在2009年2.6.29就已经合并了。Moving interrupts to threadsBy Jake EdgeOctober 8, 2008Processing interrupts from the hardware is a major source of latency in the
2013-12-04 16:40:18 3227
转载 软中断上下文能够睡眠吗?
转载自:tiloog的博客——沙漠绿洲——Alan's Blog for technologyhttp://bbs.ednchina.com/BLOG_ARTICLE_182873.HTM 这个问题实际上是一个老生常谈的问题,答案也很简单,Linux在软中断上下文中是不能睡眠的,原因在于Linux的软中断实现上下文有可能是中断上下文,如果在中断上下文中睡眠,那么会
2013-12-03 09:05:44 6516
转载 Inotify: Efficient, Real-Time Linux File System Event Monitoring
Summary - or why should I monitor the filesystem at all?The need to scan a given filesystem for changes is a fairly common one, and there are a variety of common tasks which require this, includin
2013-11-19 13:28:02 3140
原创 Zadig
Zadig 是用于安装WinUSB、libusb、libusbK驱动的一个工具软件,并包含一个libwdi驱动安装库。http://zadig.akeo.ie/
2013-10-31 14:16:30 5863
转载 WinUSB Component for .Net WinForm
http://www.asyncop.com/MTnPDirEnum.aspx?treeviewPath=%5bo%5d+Open-Source%5cWinUSB+Component
2013-10-30 16:49:53 2726
转载 WinUsbNet: A managed interface to WinUSB.sys
WinUsbNet: A managed interface to WinUSB.syshttp://winusbnet.codeplex.com/
2013-10-30 16:37:45 3594
原创 libusbK
Libusbk是libusb的超集。同时支持libusb, winusb, libusbk三种驱动模式。官网:http://libusbk.sourceforge.net/UsbK3/index.html
2013-10-30 16:32:49 6720
转载 MS RDP协议
Remote Desktop Protocol: Basic Connectivity and Graphics Remotinghttp://msdn.microsoft.com/en-us/library/cc240445.aspx
2013-10-28 14:25:27 2525
转载 Visual Studio 2012 Predefined Macros
Predefined MacrosVisual Studio 2012 Other Versions Visual Studio 2010Visual Studio 2008Visual Studio 2005Visual Studio .NET 2003Visual Studio 2013 RC4 out of 8 ra
2013-09-24 11:45:20 3623
转载 如何通过 WinUSB 功能访问 USB 设备
http://msdn.microsoft.com/zh-cn/subscriptions/downloads/ff540174.aspx
2013-09-11 09:52:44 4715
转载 WinUSB
WinUSB本节介绍 Microsoft 为所有 USB 设备提供的常规 WinUSB 驱动程序 (Winusb.sys) 及其用户模式组件。在早于 Windows XP Service Pack 2 (SP2) 的 Windows 版本中,所有 USB 设备驱动程序都必须在内核模式下运行。如果所创建的 USB 设备的操作系统没有本机类驱动程序,则需要为该设备编写内核模式设备驱动程
2013-09-11 09:49:19 10804
原创 libusb-win32
libusb-win32 是基于 libusb-0.1 的windows版本 , 可运行与Windows 2000, Windows XP, Windows Vista , Windows 7; Windows 98 SE W indows ME. 并可支持 Vista/7/2008/2008R2 64位系统. 官网地址: http://sourceforge.net/apps/tra
2013-09-11 09:45:25 2362
原创 libusbx
libusbx 是在用户空间模式下访问USB设备的一个library. 可在Linux,Window, OS X, FreeBSD多个平台使用.官网地址: http://libusbx.org/
2013-09-11 09:40:20 2627
转载 SSE4 128bit TEST指令
Test IntrinsicsThese Intel® Streaming SIMD Extensions (Intel® SSE4) intrinsics perform packed integer 128-bit comparisons. The prototypes for these instrinsics are in the smmintrin.h file.
2013-09-07 16:05:17 2831
Performance Analysis of IP Routing Lookup Algorithms
2012-01-06
How to Optimize Software Applications Using Intel IPP
2009-06-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人