原创 No BUILD ID 問題解決

在編譯linux內核的rpm包時候,如果需要debuginfo信息,會在spec中調用rpm下的find-debuginfo.sh腳本,如果指定了strict-build-id選項,那麼會檢查linux中間obj文件的build id。

原创 ultraedit帶標註替換

目標字符串爲A+B,替換爲A+C,A、B、C可以是表達式before = ^(A^)B after  = ^1C

原创 Docker 容器使用 cgroups 限制資源使用

https://www.cnblogs.com/sammyliu/p/5886833.html

原创 bbit0和dext指令

mips的兩個指令bbit0 是指對某一位檢測是否爲0,檢測後進行跳轉,其他bbit指令類似ex bbit0 s4, 0xd, address; 檢測s4寄存器的數值的13位是否爲0,是九跳轉address執行dext,不確定是不是64上

原创 OVS的CT action

詳細內容傳送門:官方:http://docs.openvswitch.org/en/latest/tutorials/ovs-conntrack/                            知乎:https://zhuanla

原创 內核IS_ENABLE

轉自此處https://www.cnblogs.com/pengdonglin137/p/5960412.html

原创 shell腳本,對指定目錄下C文件,替換和刪除字符串

#!/bin/shecho -e "file patch"read file_pathfind $file_path -name "*.c" > path.txtdos2unix -q path.txtline_number=$(cat

原创 文檔按固定格式字符串排序

#!/bin/shecho -e "original file name"read fileecho -e "target file name"read file cat "$file" | grep "xxx" -n > index.t

原创 python合併已經存在的sheet數據到新sheet

簡單的合併,本例是橫向合併,縱向合並可以自行調整。import xlrd  import xlwtimport shutil  from xlutils.copy import copy  import datetime  # 打開要使用