This file contains hidden or 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> |
This file contains hidden or 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
# frozen_string_literal: true | |
require 'mkmf' | |
dir_config('test') | |
create_header | |
create_makefile('test') |
This file contains hidden or 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
package arena | |
// #include <malloc.h> | |
import "C" | |
import ( | |
"runtime" | |
"unsafe" | |
) | |
// Arena memory allocator gets a large chunk of memory from the system at once |
This file contains hidden or 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
sqlite3 gravity.db.backup -header -csv 'select * from adlist' > adlist.csv | |
sqlite3 gravity.db.backup -header -csv 'select * from vw_whitelist' > whitelist.csv | |
sqlite3 gravity.db.backup -header -csv 'select * from vw_blacklist' > blacklist.csv |
This file contains hidden or 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
export PATH='/usr/local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | |
cd .. | |
python3 -m venv coccinelle | |
cd - | |
. bin/activate | |
make clean | |
./autogen |
This file contains hidden or 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/smatch' PREFIX='/usr' install |
This file contains hidden or 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 hidden or 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
allow-hotplug eth0 | |
iface eth0 inet manual | |
up /sbin/dhclient -4 -v -i -pf /run/dhclient.${IFACE}.pid \ | |
-lf /var/lib/dhcp/dhclient.${IFACE}.leases \ | |
-I ${IFACE} | |
down /sbin/dhclient -4 -v -i -pf /run/dhclient.${IFACE}.pid \ | |
-lf /var/lib/dhcp/dhclient.${IFACE}.leases \ | |
-I ${IFACE} \ | |
-r |
This file contains hidden or 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
/dts-v1/; | |
#include "starfive_vic7100_clk.dtsi" | |
#include <dt-bindings/starfive_fb.h> | |
/ { | |
#address-cells = <2>; | |
#size-cells = <2>; | |
compatible = "sifive,freedom-u74-arty"; | |
model = "sifive,freedom-u74-arty"; |
This file contains hidden or 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
root@pve:~# gcc -Wall -I./Projects/Personal/Other/pciutils/lib -L./Projects/Personal/Other/pciutils/lib -Wall -g gpioke.c -lpci -lz -ludev -lresolv | |
root@pve:~# ./a.out | |
[*] Checking for a ICH0..ICH5 system | |
[*] GPIOBASE=00000000, GC=00 | |
[-] GPIOBASE not implemented at 0058 | |
[*] Checking for a ICH6..ICH9 or Series 5..9 PCH system | |
[*] GPIOBASE=00000000, GC=00 | |
[-] GPIOBASE not implemented at 0048 | |
[*] Checking for a Series 10 PCH system | |
[*] Cannot find D31:F1, assuming it is hidden by firmware |