Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Kiwi VM Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="./style.css?ver=2">
<script type="text/javascript" src="common.js.php"></script>
<script type="text/javascript" src="jquery.blockUI.js"></script>
<script type="text/javascript">
function displayWaitForm () {
@hnuzhoulin
hnuzhoulin / nginx.conf
Created July 25, 2023 07:55 — forked from morhekil/nginx.conf
Full request/response body logging in nginx
http {
log_format bodylog '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time '
'<"$request_body" >"$resp_body"';
lua_need_request_body on;
set $resp_body "";
body_filter_by_lua '
  1. 通过 pip install pandora-chatgpt 安装依赖。
  2. 保存以下代码到auto_pool_token.py文件。
  3. 同目录新建文件credentials.txt一行一个账号密码。
  4. 账号和密码之间用,分隔,不需要额外的引号。
  5. 如果需要修改代理,unique_name等,自行修改再运行。
  6. 运行这个auto_pool_token.py
  7. 你会看到运行进度,运行完成可看到pool token
  8. 运行中间结果分别保存在同目录tokens.txtshare_tokens.txt中。
@hnuzhoulin
hnuzhoulin / README.md
Created July 24, 2022 14:34 — forked from engalar/README.md
mendix offline install

使用方法

运行效果

Active code page: 65001
已经存在 listing.txt

请选择一个你想要安装的Studio Pro版本号?
[162] 9.9.2.35886
40.899 <30>Nov 27 10:09:40 lzyh[6041]: Full thread dump OpenJDK 64-Bit Server VM (11.0.3+7 mixed mode):
<30>Nov 27 10:09:40 lzyh[6041]: Threads class SMR info:
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0cac011800, 0x00007f0cacd59000, 0x00007f0cacd5b000, 0x00007f0cacd6f800,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0cacd71800, 0x00007f0cacd73800, 0x00007f0cacd76800, 0x00007f0cacde4000,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0cacded800, 0x00007f0caf997800, 0x00007f0caf999800, 0x00007f0caf99b000,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00000000017c0000, 0x00007f0c640a5000, 0x00007f0c68a44800, 0x00007f0c68a47800,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0c68a4a000, 0x00007f0c68ddb800, 0x00007f0c68e7d000, 0x00007f0c68f5c800,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0c68617000, 0x00007f0c68618000, 0x00007f0c68622000, 0x00007f0c68624000,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0c68625800, 0x00007f0c68628000, 0x00007f0c6862b800, 0x00007f0c6862d000,
<30>Nov 27 10:09:40 lzyh[6041]: 0x00007f0c6862f000, 0x00007f0c68630800, 0x00007f
@hnuzhoulin
hnuzhoulin / dump_blocked_ops.list
Last active September 26, 2019 04:21
slow requests after rocksdb delete wal or table_file_deletion
{
"ops": [
{
"description": "osd_op(client.119102.0:115049874 33.2c5b 33.3e3aac5b (undecoded) ondisk+write+known_if_redirected e11236)",
"initiated_at": "2019-09-26 11:47:54.832534",
"age": 43.123887,
"duration": 43.123905,
"type_data": {
"flag_point": "queued for pg",
"client_info": {
@hnuzhoulin
hnuzhoulin / crush-reweight-0.txt
Created February 18, 2019 02:43
diff about out osd.132 and osd crush reweight osd.132 0.0
40.1ff3 [138,295,376,67,424,177] | 40.1ff3 [135,295,376,67,424,177]
40.1fda [197,463,302,386,126,52] | 40.1fda [197,463,386,126,52,302]
40.1fd5 [425,133,396,9,293,218] | 40.1fd5 [425,136,396,9,293,218]
40.1fd3 [161,426,350,44,296,183] | 40.1fd3 [44,426,350,161,296,183]
40.1fc5 [50,168,252,482,138,353] | 40.1fc5 [50,168,252,482,127,353]
40.1fa0 [235,137,332,40,352,423] | 40.1fa0 [235,133,332,40,352,423]
40.1f86 [233,0,136,408,291,477] | 40.1f86 [233,0,115,408,291,477]
40.1f6f [184,487,256,133,369,51] | 40.1f6f [184,487,256,110,369,51]
40.1f5d [448,308,417,196,140,69] | 40.1f5d [448,308,417,196,141,69]
40.1f55 [135,61,273,368,201,476] | 40.1f55 [141,61,273,368,201,476]
@hnuzhoulin
hnuzhoulin / osd-df-tree.txt
Last active February 18, 2019 02:12
ceph osd df tree
ID WEIGHT REWEIGHT SIZE USE AVAIL %USE VAR PGS TYPE NAME
-1 504.00000 - 3065T 235G 3065T 0.01 1.00 0 root default
-2 504.00000 - 3065T 235G 3065T 0.01 1.00 0 unit site1
-5 420.00000 - 3041T 203G 3040T 0.01 0.87 0 mediagroup site1-sata
-11 70.00000 - 509T 34979M 509T 0.01 0.87 0 media site1-rack1-sata
-101 10.23599 - 74500G 5092M 74495G 0.01 0.89 0 ctnr cld-osd1-56-sata
0 0.97198 1.00000 7450G 518M 7449G 0.01 0.91 118 osd.0
1 0.93199 1.00000 7450G 518M 7449G 0.01 0.90 118 osd.1
2 0.96100 1.00000 7450G 517M 7449G 0.01 0.90 117 osd.2
3 1.04900 1.00000 7450G 504M 7449G 0.01 0.88 116 osd.3
@hnuzhoulin
hnuzhoulin / jewel10.2.11-EC-out-osd-pg-remap
Created January 30, 2019 08:10
jewel10.2.11 EC pool,out an osd,its pgs only remap to the same host osds
EC profile is:
ceph osd erasure-code-profile get ISA-4-2
k=4
m=2
plugin=isa
ruleset-failure-domain=ctnr
ruleset-root=site1-sata
technique=reed_sol_van
crushmap is:
@hnuzhoulin
hnuzhoulin / nested_reqparse_2.py
Created November 18, 2018 05:01
flask-restful reqparse check nested args,can archive required and allowed
#!/usr/bin/python
#! -*- encoding:utf-8 -*-
# Author: Zhoulin
# FIle: nested_RequestParser
# Description: This method,the nested parser do not support required.
# Created: 2018/11/17 23:54
# Modified:
# 2018/11/17 23:54 :
# ---------------------------------