- iostat - 输出CPU的统计信息和所有I/O设备的输入输出(I/O)统计信息
- mpstat - 关于CPU的详细信息(单独输出或者分组输出)
- pidstat - 关于运行中的进程/任务、CPU、内存等的统计信息
- vmstat - 获得UNIX系统有关进程、虚存、页面交换空间及CPU活动的信息
- sar - 保存并输出不同系统资源(CPU、内存、IO、网络、内核等)的详细信息
- sadc - 系统活动数据收集器,用于收集sar工具的后端数据.
- sa1 - 系统收集并存储sadc数据文件的二进制数据,与sadc工具配合使用
- sa2 - 配合sar工具使用,产生每日的摘要报告
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local crypt = require "crypt" | |
crypt.sm2keygen("pri.pem", "pub.pem") | |
--[[ | |
# pkcs8格式 | |
pri.pem - 私钥文件名 | |
pub.pem - 公钥文件名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "utils" | |
local function merge(t1, t2, comp) | |
local tab = {} | |
local index, i1, i2 = 1, 1, 1 | |
local len1, len2 = #t1, #t2 | |
while i1 <= len1 and i2 <= len2 do | |
local a, b = t1[i1], t2[i2] | |
if comp(a, b) then | |
tab[index] = a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local cf = require "cf" | |
local cf_wait = cf.wait | |
local cf_wakeup = cf.wakeup | |
local co = cf.self() | |
local co1 = cf.fork(function() | |
while 1 do | |
cf_wait() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 汉字表 | |
local to_pingyin ={ | |
["飕"] = { "sou" }, | |
["诀"] = { "jue" }, | |
["悔"] = { "hui" }, | |
["壕"] = { "hao" }, | |
["裕"] = { "yu" }, | |
["磕"] = { "ke" }, | |
["傩"] = { "nuo" }, | |
["蟪"] = { "hui" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- AES 测试用例 | |
local crypt = require "crypt" | |
local hexencode = crypt.hexencode | |
local b64enc = crypt.base64encode | |
-- ECB | |
local aes_128_ecb_encrypt = crypt.aes_128_ecb_encrypt | |
local aes_192_ecb_encrypt = crypt.aes_192_ecb_encrypt | |
local aes_256_ecb_encrypt = crypt.aes_256_ecb_encrypt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver import ChromeOptions | |
from selenium.webdriver.common.action_chains import ActionChains | |
username = "你的账号" | |
password = "你的密码" | |
from time import sleep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
LICENSE: BSD | |
Author: CandyMi[https://github.com/candymi] | |
]] | |
local type = type | |
local assert = assert | |
local httpc = require "httpc" |