Skip to content

Instantly share code, notes, and snippets.

View guodongxiaren's full-sized avatar
🎯
Focusing

果冻虾仁 guodongxiaren

🎯
Focusing
View GitHub Profile
@guodongxiaren
guodongxiaren / .gdbinit
Created June 11, 2023 04:29
GDB coredump调试美化输出
# 保存到 ~/.gdbinit
python
import sys
sys.path.insert(0, '/usr/share/gcc-4.8.2/python') # 这个路径以实际情况为准
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
#
# STL GDB evaluators/views/utilities - 1.03
@guodongxiaren
guodongxiaren / iocp_demo.cpp
Last active March 19, 2019 15:33
copy from iocp
void IOCP_main()
{
    DWORD Ret;
    WSADATA wsaData;   
  //WSAStartup 调用Socket前必须指定版本
    if ((Ret = WSAStartup(0x0202, &wsaData)) != 0)                                               
    {
        printf("WSAStartup failed with error %d\n", Ret);
        return ;
    }
@guodongxiaren
guodongxiaren / 0_reuse_code.js
Created August 13, 2017 03:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

今天在阿里云买了一个便宜的主机¥49.5。暂时买了一个月的,先用着试试。

  • 地域:青岛
  • 可用区:青岛可用区A
  • CPU:1核
  • 内存:512MB
  • 带宽:1Mbps
  • 操作系统:CentOS 6.5 64位
  • 云盾:是
@guodongxiaren
guodongxiaren / $每天一道笔试题$.md
Last active June 17, 2018 06:23
每天一道笔试题

每天一道笔试题系列
部分解释来源于网络

##当前更新 ###2014年3月阿里巴巴暑期实习生笔试题

通配符

  • [a-z]或[12]:匹配方括号中指定范围内的单个字符或方括号列出的其中一个字符。
  • [!9]:不匹配方括号中所列字符或指定范围内的单个字符。
  • *:匹配的是数量。0个或多个。
  • ?:匹配的是数量。1个。