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/units/meson.build b/units/meson.build | |
index bfc107e..78d3897 100644 | |
--- a/units/meson.build | |
+++ b/units/meson.build | |
@@ -3,4 +3,4 @@ systemd_netlogd_conf = configure_file( | |
output : 'systemd-netlogd.service', | |
configuration : substs) | |
install_data(systemd_netlogd_conf, | |
- install_dir : get_option('prefix') / 'system') | |
+ install_dir : get_option('sysconfdir') / 'system') |
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
{ | |
lib, | |
stdenv, | |
fetchFromGitHub, | |
nix-update-script, | |
cmake, | |
pkg-config, | |
hwloc, | |
llvmPackages_16, | |
lttng-ust, |
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
#!/system/bin/sh | |
# Kill audioserver PID if it was initialized already | |
SERVERPID=$(pidof audioserver) | |
[ "$SERVERPID" ] && kill $SERVERPID | |
mount -o bind /vendor/etc/audio_effects.xml /odm/etc/audio_effects.xml | |
magiskpolicy --live 'allow audioserver audioserver_tmpfs file { read write execute }' | |
magiskpolicy --live 'allow audioserver system_file file { execmod }' | |
magiskpolicy --live 'allow mediaserver mediaserver_tmpfs file { read write execute }' |
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
#!/bin/bash | |
# Copyright (c) 2001-2017, Parallels International GmbH | |
# Copyright (c) 2017-2019 Virtuozzo International GmbH. All rights reserved. | |
# | |
# This file is part of OpenVZ libraries. OpenVZ is free software; you can | |
# redistribute it and/or modify it under the terms of the GNU Lesser General | |
# Public License as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, but |
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 }, |
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 |
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". |
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 |
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 |