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
ARG go_version=1.17 | |
ARG alpine_version=latest | |
FROM golang:${go_version}-alpine AS builder | |
ARG GOOS=linux | |
ARG GOARCH=amd64 | |
ENV GOOS=${GOOS} | |
ENV GOARCH=${GOARCH} |
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
coherent_pool=1M | |
8250.nr_uarts=1 | |
dwc_otg.fiq_fix_enable=1 | |
dwc_otg.lpm_enable=0 | |
dwc_otg.microframe_schedule=1 | |
dwc_otg.nak_holdoff_enable=1 | |
sdhci-bcm2708.missing_status=0 | |
snd_bcm2835.enable_compat_alsa=0 | |
snd_bcm2835.enable_hdmi=1 | |
bcm2708_fb.fbwidth=0 |
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
server_names = [ | |
'cloudflare', | |
'doh-crypto-sx', | |
'ams-doh-nl', | |
# Possible issues. | |
# 'faelix-ch-ipv4-doh', | |
'doh.ffmuc.net' | |
] | |
listen_addresses = [ |
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
// Based on https://github.com/ericwbailey/millennials-to-snake-people. | |
function walkTextNodes(rootNode) { | |
let walker = document.createTreeWalker(rootNode, NodeFilter.SHOW_TEXT, | |
function(node) { | |
if (node.textContent.length === 0) { | |
return NodeFilter.FILTER_SKIP; | |
} | |
return NodeFilter.FILTER_ACCEPT | |
}, |
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
make clean | |
export PATH='/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | |
sudo make MATCHCOMPILER=yes HAVE_RULES=yes FILESDIR='/usr/share/cppcheck' CXXFLAGS='-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function' -j$(nproc) install |
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
make clean | |
export PATH='/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | |
make PREFIX='/usr' -j$(nproc) | |
make DESTDIR='/tmp/sparse' PREFIX='/usr' install |
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
Install the "xdotool" utility as usual on Ubuntu, then go to "/lib/systemd/system-sleep" | |
directory and create a small shell script called "capslock" with the following content: | |
#!/bin/sh | |
case "$1" in | |
post) | |
/usr/bin/logger -t suspend -s 'Resetting CapsLock key' | |
/usr/bin/xdotool --clearmodifiers --delay 500 --repeat 2 Caps_Lock | |
;; |
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
[Unit] | |
Description=Dummy unit to create log directory for Nginx | |
After=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/mkdir -p /var/log/nginx | |
ExecStart=/bin/chown root:adm /var/log/nginx | |
ExecStart=/bin/chmod 755 /var/log/nginx |
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
var textAreasCount = 0; | |
var linesCount = 0; | |
var linesReplaced = 0; | |
var linesSkipped = 0; | |
var start = performance.now(); | |
function formatMilliseconds(ms) { | |
return Number.parseFloat(ms.toFixed(3)) |
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/rfkill/rfkill.c b/src/rfkill/rfkill.c | |
index 5019828..e2b9773 100644 | |
--- a/src/rfkill/rfkill.c | |
+++ b/src/rfkill/rfkill.c | |
@@ -1,4 +1,4 @@ | |
-/* SPDX-License-Identifier: LGPL-2.1+ */ | |
+/* SPDX-License-Identifier: LGPL-2.1-or-later */ | |
#include <fcntl.h> | |
#include <linux/rfkill.h> |