- 博客(9)
- 资源 (2)
- 收藏
- 关注
转载 Memory Reordering Caught in the Act
http://preshing.com/20120515/memory-reordering-caught-in-the-act/#define WIN32_LEAN_AND_MEAN#include #include #include // Set either of these to 1 to prevent CPU reordering#define USE_CPU_FE
2015-09-21 22:45:41 522
转载 [memory fence] Memory Reordering Caught in the Act
http://preshing.com/20120515/memory-reordering-caught-in-the-act/#include #include #include // Set either of these to 1 to prevent CPU reordering#define USE_CPU_FENCE 0#define USE
2015-09-21 22:31:06 560
原创 gcc原子化操作
#include#include#includestatic int count1=0;static int count2=0;void *test_func(void* arg){ int i=0; for(i=0;i<2000;++i) { ++count1; __sync_fetch_and_add(&count2,1); } return 0;}in
2015-09-14 23:12:11 567
原创 [linux]原子化的写文件操作writev
http://linux.die.net/man/2/writevThe data transfers performed by readv() and writev() are atomic: the data written bywritev() is written as a single block that is notintermingled with output from
2015-09-09 22:38:22 1321
转载 Linux Advanced Routing & Traffic Control HOWTO
http://lartc.org/lartc.htmlLinux Advanced Routing & Traffic Control HOWTOBert HubertNetherlabs BVbert.hubert@netherlabs.nl>Thomas Graf (Section Author)tgraf%suug.ch>
2015-09-05 10:20:19 10288
原创 [python]http_server
#!/usr/bin/env python'''http_server.pyprint the input arguments and set cookies'''from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServerfrom urlparse import urlparse, parse_qsimport rand
2015-09-04 09:59:41 671
原创 using public key to decrypt data
openssl rsautl -pubin -in encrypted-data -inkey pub.key > decrypt-data
2015-09-01 23:16:51 603
转载 extract the x509 ssl certificate from a pcap file
https://www.wireshark.org/lists/wireshark-users/201003/msg00080.html1) type "ssl.handshake.certificate" in the filter.2) make sure the setting "Allow subdissector to reassemble TCP streams" is o
2015-09-01 23:13:13 918
原创 12306根证书的HASH计算
http://security.stackexchange.com/questions/14330/what-is-the-actual-value-of-a-certificate-fingerprint#!/bin/bash#!12306.cert.shrm srca*wget http://www.12306.cn/mormhweb/ggxxfw/wbyyzj/201106/src
2015-09-01 00:11:01 961
lq51--自己写的基于51单片机的嵌入式实时操作系统
2009-04-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人