Skip to content

Instantly share code, notes, and snippets.

View incognitojam's full-sized avatar

Cameron Clough incognitojam

  • United Kingdom
  • 12:32 (UTC +01:00)
View GitHub Profile
# /// script
# dependencies = [
# "requests",
# ]
# ///
import requests
import re
import sys
from datetime import datetime
@incognitojam
incognitojam / bundle_size_history.py
Last active January 31, 2025 21:52
Build the app and check the bundle size (gzip compressed) for every commit in a repo, writing the results to a CSV file
import subprocess
import csv
import shutil
from pathlib import Path
from datetime import datetime
from tqdm import tqdm
def run_cmd(cmd):
try:
return subprocess.run(cmd, shell=True, check=True, capture_output=True, text=True)
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x16 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:2, clock div:2
secure boot v2 enabled
secure boot verification succeeded
load:0x3fff0030 len:0x1c8c
load:0x40078000 len:0x4194
<?xml version='1.0' encoding='UTF-8'?>
<root version="2.3.8">
<tabbed_widget parent="main_window" name="Main Window">
<Tab tab_name="Lateral" containers="1">
<Container>
<DockSplitter orientation="-" count="5" sizes="0.200458;0.199313;0.200458;0.199313;0.200458">
<DockArea name="Velocity [m/s]">
<plot style="Lines" mode="TimeSeries">
<range left="1.253354" top="29.954036" bottom="-0.841715" right="631.055584"/>
<limitY/>

Keybase proof

I hereby claim:

  • I am incognitojam on github.
  • I am incognitojam (https://keybase.io/incognitojam) on keybase.
  • I have a public key ASBOggnbK2qLzGB8BLHdyhsr6sY3SurirzfhkkXy0iRBpgo

To claim this, I am signing this object:

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 9c05c1fd8..426e87a8e 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -3434,6 +3434,14 @@
Also, it enforces the PCI Local Bus spec
rule that those bits should be 0 in system reset
events (useful for kexec/kdump cases).
+ pcie_acs_override [PCIE] Override missing PCIe ACS support for:
+ downstream
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index eaa003687..1b7907eb4 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -3580,6 +3580,11 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0034, quirk_no_bus_reset);
* accesses to the child may fail.
*/
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CAVIUM, 0xa100, quirk_no_bus_reset);
+/*
+ * Radeon RX Vega devices break on bus reset. Oi...
#!/bin/python3
import time
from subprocess import check_output
from xbrightness import animate, duration
def get_running_program():
return check_output(['xrunning']).decode('utf-8')[:-1]
[Unit]
Description=Control the brightness of OLED screens via keyboard brightness
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/local/bin/xbrightness
Restart=on-failure
RestartSec=1
@incognitojam
incognitojam / xbrightness.py
Last active October 20, 2019 20:29
XPS 7590 brightness control script
#!/bin/python3
"""Below is a script to watch for changes to the brightness device and change
the display brightness using xrandr appropriately. This is useful for
laptops with OLED screens, like the XPS 7590, as they don't have a physical
backlight.
Requires inotify to be installed (sudo pip install inotify).
Made by Cameron Clough.
"""