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
### Keybase proof | |
I hereby claim: | |
* I am kwilczynski on github. | |
* I am kwilczynski (https://keybase.io/kwilczynski) on keybase. | |
* I have a public key ASAncxpmyV_AD9ve3ax9YA1rXqZvtgkY2JHhC3BRUBVweQo | |
To claim this, I am signing this object: |
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
From 0103f1ae79ce480efd29f7396fabc90ea0f84d36 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= <kw@linux.com> | |
Date: Thu, 4 Mar 2021 23:56:14 +0000 | |
Subject: [PATCH] PCI: Convert dynamic "config" sysfs object into static | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
The "config" sysfs object, which is a binary read-and-write attribute, | |
resides at the "/sys/bus/pci/devices/.../config" path and allows for |
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
# frozen_string_literal: true | |
require 'mkmf' | |
dir_config('test') | |
create_header | |
create_makefile('test') |
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
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 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 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 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
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 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
[ 0.816454] Call Trace: | |
[ 0.816454] pci_dev_resource0_attrs_are_visible+0x42/0x80 | |
[ 0.816454] internal_create_group+0x194/0x380 | |
[ 0.816454] internal_create_groups.part.0+0x38/0x90 | |
[ 0.816454] device_add+0x2e4/0x860 | |
[ 0.816454] ? pci_bus_read_config_word+0x44/0x70 | |
[ 0.816454] pci_device_add+0x203/0x590 | |
[ 0.816454] ? pci_setup_device+0x309/0x6d0 | |
[ 0.816454] pci_scan_single_device+0x9f/0xc0 | |
[ 0.816454] pci_scan_slot+0x4d/0x100 |
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
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 |