makepass.py from random import choice import string def GenPasswd(length=8, chars=string.letters+string.digits): return ”.join([ choice(chars) for i in range(length) ]) ahiliation:~$python Python 2.5.5 (r255:77872, Mar 20 2010, 05:19:32) [GCC 4.4.3] on linux2 Type “help”, “copyright”, “credits” or “license” for more information. >>> import makepass >>> for i in range(6): … print makepass.GenPasswd(12) … BSxqLK9mpq4R FRlppP7K2Che YBkz0QZMJojC JjTQlcHzDsC3 …
Monthly Archives: April 2010
fopen64 programming
fopen64(“/home/jeffrin/.netrc”, “r”) = 0 The fopen64() function is identical to the fopen() function except that the underlying file descriptor is created with the O_LARGEFILE flag set. The fopen64() function is a part of the large-file extensions. http://coding.derkeiler.com/Archive/C_CPP/comp.lang.c/2008-07/msg00256.html
getservbyname programming
The getservbyname() function returns a servent structure for the entry from the database that matches the service name using protocol proto. If proto is NULL, any protocol will be matched. A connection is opened to the database if necessary. getservbyname(“ftp”, “tcp”) = 0x7fcc5248b8c0 The servent structure is defined in as follows: struct servent { char …
wcwidth – determine columns needed for a wide character
UNIX API wcwidth – determine columns needed for a wide character API Explanation Code #define _XOPEN_SOURCE #include <wchar.h> #include<stdio.h> main() { int value; wchar_t cr; cr=’H’; value=wcwidth(cr); printf(“n %d n”,value); } http://gcc.gnu.org/ml/gcc-bugs/2000-10/msg00540.html
wcwidth programming
wcwidth – determine columns needed for a wide character #define _XOPEN_SOURCE #include <wchar.h> #include<stdio.h> main() { int value; wchar_t cr; cr=’H’; value=wcwidth(cr); printf(“\n %d \n”,value); } http://gcc.gnu.org/ml/gcc-bugs/2000-10/msg00540.html
tic compiler
tic – the terminfo entry-description compiler The command tic translates a terminfo file from source format into compiled format. The compiled format is necessary for use with the library routines in ncurses(3NCURSES). http://tldp.org/HOWTO/Text-Terminal-HOWTO.html
__errno_location binary standard
__errno_location() = 0x7f631c659698 __errno_location — address of errno variable snapshot from the binary file /bin/ls ^@strstr^@__errno_location^@mempcpy^@_setjmp^ http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/baselib-errno-location-1.html
__fpending programming
The __fpending() function returns the number of bytes in the output buffer. For wide-oriented streams the unit is wide characters. This function is undefined on buffers in reading mode, or opened read-only. On POSIX-compliant platforms, SIGSEGV is the signal sent to a process when it makes an invalid memory reference, or segmentation fault. #include<stdio.h> #include<stdio_ext.h> …
BCM4311 802.11b/g WLAN
-[0000:00]-+-1c.1-[04]—-00.0 Broadcom Corporation BCM4311 802.11b/g WLAN command : lspci -n 00:1c.1 0604: 8086:2841 (rev 03) http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
SMBus controller
SMBus is the System Management Bus defined by Intel in 1995. It is used in personal computers and servers for low-speed system management communications. An SMBus controller is integrated into most IntelĀ® chipsets. The SMBus Controller (or system bus controller) is part of the Intel chipset. It monitors your system board’s temperature and voltage. Programs …