Archive for category 学习笔记

字符串与16进制转换脚本

发个脚本上来耍耍,也许会对你有用。

功能:实现字符串和16进制之间的转换。

只要有python基础的人都能写出来。

发出来是只是为了需要的时候,能快速找到,君以为如何?
Read the rest of this entry »

Tags: , ,

No Comments

Linux下登录3389

黑色的夜里,用windows上未知服务器的3389怕中马,我们用Linux来登录.

命令:

# rdesktop -u administrator -p the_password -a 8 -r disk:haha=/root/Desktop/win_bin/ xx.yy.zz.aa

参数说明: Read the rest of this entry »

Tags: ,

2 Comments

automake创建Makefile

autoconf/automake主要用于创建makefile,本文主要介绍一下automake的简单用法。

Ubuntu下安装automake:

sudo apt-get install automake

即可安装automake的相关工具。
Read the rest of this entry »

2 Comments

Linux下各种buffer的比较

类型 默认大小[1] 存储位置 操作函数 备注
标准I/O流[2] File BUFSIZ[3] (8192) 或者 st_blksize[4] (4096) User Space stat(2), setvbuf(), fflush() 每一个标准I/O流都有一个buffer
stdin stdin->_IO_buf_end[5] - stdin->_IO_buf_base (1024)
stdout stdout->_IO_buf_end - stdout->_IO_buf_base (1024)
stderr 1
TCP Receive Buffer SO_RCVBUF[6] (87380) Kernel Space getsockopt(), setsockopt() 每一个socket都有两个buffer
Send Buffer SO_SNDBUF (16384)
UDP[7] Receive Buffer SO_RCVBUF (114688)
Send Buffer SO_SNDBUF (114688)

Read the rest of this entry »

Tags: , ,

No Comments

Bash command line shortcuts

I have ever fond it somewhere, this is EMACS style, If you like emacs, it it very useful.

ctrl-l — clear screen.

ctrl-r — does a search in the previously given commands so that you don’t have to repeat long command.

ctrl-u — clears the typing before the hotkey.

Read the rest of this entry »

Tags: ,

2 Comments

在Ubuntu中配置可供Windows主机共享上网的VPN服务器

原文发表于我的博客: http://xiaogaozi.blogspot.com/2010/01/ubuntuwindowsvpn.html

VPN (Virtual Private Network, 虚拟专用网) 是一种在现有网络基础上建立的虚拟网络, 主要用于帮助两个网络通过VPN隧道 (tunnel) 进行通信. VPN的好处在于网络A中的电脑A1通过隧道与网络B中的电脑连接上后, A1将能够使用网络B的网络环境. VPN分为加密与不加密两种, 通常我们使用的都是加密VPN. 加密VPN常用的协议有SSL、PPTP等, 其中PPTP是Windows系统内置的协议, 因此如果想要搭建一个支持Windows电脑接入的VPN服务器, 最好是使用PPTP服务器软件. 当前VPN的主要用途有在异地接入一个内部网络, 以及翻越功夫网.
Read the rest of this entry »

Tags: , ,

3 Comments

让vim支持c++代码自动补全功能。

vim在默认情况下是没有这个功能的,我们需要下载一个插件和一个软件来实现这个功能。

插件:omnicppcomplete

软件:ctags

ctags一般系统默认就有。

下载并安装插件 omnicppcomplete:

Read the rest of this entry »

Tags:

3 Comments

wireless cracking

好久没有写东西了。发篇自己的博客止来吧。完全没有技术含量。
因为接触上bt4后,开始了对wireless cracking有点兴趣了。

最近搞了张TP-WN322G+ v1.0 的USB无线网卡(曲折的过程啊,汗)
root@bt:~/dormitory# lsusb
Bus 002 Device 004: ID 0ace:1215 ZyDAS WLA-54L WiFi
在经过多次的尝试后,终于小有成功。

测试是在虚拟机里面进行的,用的bt4-bata版本。

Read the rest of this entry »

Tags: , ,

4 Comments

编译2.6.31内核兼打BFS补丁

        

         对于大多数用户来说,编译内核是一件轻松而又高兴的事。通过编译安装新的内核可以提高系统的性能,一定程度上增强安全性。而对于新手来说,编译内核似乎似乎又是很高深的事,是高手与菜鸟的门槛。这几乎是每个爱好者都经过的历程。前不久Con Kolivas发布了Brain Fuck Scheduler ,在某种程度上说这个patch对Linux的桌面带来了重大的变革。它对桌面环境的提速受到了大家的好评。具体内容参考http://linuxtoy.org/archives/bfs-intro-future-of-linux-desktop-kernel.html,本文旨在介绍在Fedora 11环境下,在标准2.6.31内核的基础上安装BFS补丁。 Read the rest of this entry »

Tags: ,

7 Comments