This file contains 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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# Bench delete gitee repos | |
# 批量删除 gitee 代码仓库 | |
# Author: TianLun Song <tianlun.song at foxmail.com> | |
# License: MIT | |
# Path: bench-delete-gitee-repo.py | |
# require: requests | |
# usage: python3 delete.py | |
# install requests: pip3 install requests |
This file contains 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
#!/usr/bin/python | |
# coding=utf8 | |
""" | |
# Author: songtianlun | |
# mail: songtianlun@frytea.com | |
# Created Time : 2022-01-18 16:49:58 | |
# License: GPL-2.0-only | |
# File Name: errno.py | |
# Description: |
This file contains 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
#!/usr/bin/python | |
# coding=utf8 | |
""" | |
# Author: songtianlun | |
# mail: songtianlun@frytea.com | |
# Created Time : 2022-01-07 15:06:17 | |
# License: GPL-2.0-only | |
# Description: | |
使用 selector 实现 I/O 多路复用,可并行向不同虚拟机发送 qmp,qga 命令; | |
注: QEMU 只能处理一条连接,因此我们应当尽快关闭连接。 |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am songtianlun on github. | |
* I am songtianlun (https://keybase.io/songtianlun) on keybase. | |
* I have a public key ASBbXBmIaHVahL6q4H-ADMsMtNKvjscru0oiIAP0FqFMaQo | |
To claim this, I am signing this object: |
This file contains 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
# $language = "python" | |
# $interface = "1.0" | |
# This automatically generated script may need to be | |
# edited in order to work correctly. | |
import time | |
import math | |
import random |
This file contains 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
# Batch Single C file MakeFile | |
# 指定CPU架构 Architecture -> ARCH | |
ARCH ?= | |
CC = $(ARCH)gcc | |
SUFFIX = .c | |
CFLAGS += -Wall -g | |
LD = | |
CUR_SOURCE = $(wildcard *$(SUFFIX)) |
This file contains 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
/************************************************************************* | |
> Function : Generate random string of specified length. | |
> Author : TL Song | |
> EMail : songtianlun@frytea.com | |
> Created Time : Fri 18 Sep 2020 11:52:32 AM CST | |
************************************************************************/ | |
void RandomString(char * str, int len) | |
{ | |
int RandomAscii; |