View kitty.conf
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
font_family FiraCodeNerdFontComplete-Retina | |
bold_font FiraCodeNerdFontComplete-Bold | |
italic_font FiraCodeNerdFontComplete-Retina | |
bold_italic_font FiraCodeNerdFontComplete-Bold | |
font_features FiraCodeNerdFontComplete-Retina +ss03 +ss04 +ss05 +ss06 +ss07 +zero | |
font_features FiraCodeNerdFontComplete-Bold +ss03 +ss04 +ss05 +ss06 +ss07 +zero | |
background #212121 | |
foreground #eeffff |
View nginx-1.19.7-plain-protocol.patch
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
diff --git a/auto/modules b/auto/modules | |
index f1c63f3d..516daaba 100644 | |
--- a/auto/modules | |
+++ b/auto/modules | |
@@ -423,6 +423,18 @@ if [ $HTTP = YES ]; then | |
. auto/module | |
fi | |
+ if [ $HTTP_PLAIN = YES ]; then | |
+ have=NGX_HTTP_PLAIN . auto/have |
View 0-hexo-gopher.txt
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
Here's my code to generate Gophermaps for posts on a Hexo site. | |
I cannot guarantee this will work on your Hexo site. I had custom multilingual support on my site, | |
and manually removed all language related stuff from this code snippet. I did not test that the | |
code still functions after this modification. | |
Usage: | |
Put gopher.js into "scripts" folder of your theme, e.g. "themes/lantian/scripts/gopher.js". |
View lantian_whois.lua
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
local lantian_whois = {} | |
function lantian_whois.file_exists(subdir, target) | |
if target == nil then return false end | |
local f = io.open(ngx.var.document_root .. "/" .. subdir .. "/" .. string.gsub(target, "/", "_"), "rb") | |
if f == nil then return false end | |
f:close() | |
return true | |
end |
View nginx-plain-proxy.patch
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
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c | |
index 64190f1..dbba290 100644 | |
--- a/src/http/modules/ngx_http_proxy_module.c | |
+++ b/src/http/modules/ngx_http_proxy_module.c | |
@@ -283,6 +283,8 @@ static ngx_conf_post_t ngx_http_proxy_ssl_conf_command_post = | |
static ngx_conf_enum_t ngx_http_proxy_http_version[] = { | |
+ { ngx_string("plain"), NGX_HTTP_VERSION_PLAIN }, | |
+ { ngx_string("0.9"), NGX_HTTP_VERSION_9 }, |