Skip to content

Instantly share code, notes, and snippets.

View 0wQ's full-sized avatar
🐟
咸鱼

Mizore 0wQ

🐟
咸鱼
  • Shanghai, China
View GitHub Profile
@0wQ
0wQ / config.js
Last active October 9, 2022 10:43
rss-to-aria2
import checkConfig from './util/checkConfig.js'
const timestamp = new Date().getTime()
// [正则表达式, 文件夹名]
const ruleMap = new Map([
[/FAMILY/i, '间谍过家家'],
[/Love.Live/i, 'Love Live! Superstar!! 第二季'],
[/Kaguya/i, '辉夜大小姐想让我告白'],
@0wQ
0wQ / ngx_http_autoindex_module.patch
Last active July 28, 2022 05:58
ngx_http_autoindex_module
diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c
index 082bcb5e..e0325e04 100644
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -50,9 +50,9 @@ typedef struct {
#define NGX_HTTP_AUTOINDEX_JSONP 2
#define NGX_HTTP_AUTOINDEX_XML 3
-#define NGX_HTTP_AUTOINDEX_PREALLOCATE 50
+#define NGX_HTTP_AUTOINDEX_PREALLOCATE 150