Skip to content

Instantly share code, notes, and snippets.

View incognitojam's full-sized avatar

Cameron Clough incognitojam

View GitHub Profile
<?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.
"""
@incognitojam
incognitojam / loops.c
Created June 4, 2019 11:29
simple loops in c
#include <stdio.h>
int main(int argc, char **argv)
{
int i, max;
// check at least one argument provided
if (argc < 2) {
printf("missing required argument max");
return -1;
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@incognitojam
incognitojam / keybase.md
Created August 22, 2017 11:07
Proof for Keybase

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: