Skip to content

Instantly share code, notes, and snippets.

Head-on-a-Stick

  • Kamikaze Kouriers
  • /dev/chair
Block or report user

Report or block Head-on-a-Stick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Head-on-a-Stick
Head-on-a-Stick / 08_add_prime_support.patch
Created Apr 9, 2020
Ubuntu patch for PRIME support in nvidia-settings package
View 08_add_prime_support.patch
From 92cb07acb3a3e16e7330a7bed8960ca943e251c0 Mon Sep 17 00:00:00 2001
From: Alberto Milone <alberto.milone@canonical.com>
Date: Mon, 9 Oct 2017 11:22:01 +0200
Subject: [PATCH 1/1] Add support for PRIME GPU switching
Refreshed for the 410 series
---
src/gtk+-2.x/ctkprime.c | 518 +++++++++++++++++++++++++++++++++++++++++++++++
src/gtk+-2.x/ctkprime.h | 77 +++++++
src/gtk+-2.x/ctkwindow.c | 10 +
View 30_uefi-firmware
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2012 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@Head-on-a-Stick
Head-on-a-Stick / debuglog
Created Mar 8, 2020
Debug log for ArchLabs installer
View debuglog
| /usr/bin/archlabs-installer LINE:2460 FUNC: debug() |> DEBUG=true
| /usr/bin/archlabs-installer LINE:2677 FUNC: |> getopts :htl:d OPT
| /usr/bin/archlabs-installer LINE:2693 FUNC: |> system_identify
| /usr/bin/archlabs-installer LINE:2637 FUNC: system_identify() |> [[ -n [ 0.000000] Hypervisor detected: KVM ]]
| /usr/bin/archlabs-installer LINE:2638 FUNC: system_identify() |> UCODE=
| /usr/bin/archlabs-installer LINE:2646 FUNC: system_identify() |> modprobe -q efivarfs
| /usr/bin/archlabs-installer LINE:2648 FUNC: system_identify() |> [[ -d /sys/firmware/efi/efivars ]]
| /usr/bin/archlabs-installer LINE:2652 FUNC: system_identify() |> export SYS=BIOS
| /usr/bin/archlabs-installer LINE:2652 FUNC: system_identify() |> SYS=BIOS
| /usr/bin/archlabs-installer LINE:2694 FUNC: |> system_devices
@Head-on-a-Stick
Head-on-a-Stick / cron.daily
Created Feb 2, 2020
Daily cron job to send popcon information to Debian
View cron.daily
#!/bin/sh
set -e
# don't run if this package is removed but not purged
if [ ! -f /usr/sbin/popularity-contest ]; then
exit 0
fi
MODE="$1"
@Head-on-a-Stick
Head-on-a-Stick / systemctl.1
Created Jan 13, 2020
man page for systemctl
View systemctl.1
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.8.
.TH SYSTEMD "1" "January 2020" "systemd 241 (241)" "User Commands"
.SH NAME
systemd \- manual page for systemd 241 (241)
.SH DESCRIPTION
systemctl [OPTIONS...] {COMMAND} ...
.PP
Query or send control commands to the systemd manager.
.TP
\fB\-h\fR \fB\-\-help\fR
View elan.patch
--- drivers/hid/i2c-hid/i2c-hid-core.c
+++ drivers/hid/i2c-hid/i2c-hid-core.c
@@ -49,6 +49,7 @@
#define I2C_HID_QUIRK_NO_IRQ_AFTER_RESET BIT(1)
#define I2C_HID_QUIRK_NO_RUNTIME_PM BIT(2)
#define I2C_HID_QUIRK_DELAY_AFTER_SLEEP BIT(3)
+#define I2C_HID_QUIRK_BOGUS_IRQ BIT(4)
/* flags */
#define I2C_HID_STARTED 0
@Head-on-a-Stick
Head-on-a-Stick / status.patch
Created Feb 5, 2019
Make status bar taller
View status.patch
--- dwm.c.orig Tue Feb 5 07:46:23 2019
+++ dwm.c Tue Feb 5 07:46:36 2019
@@ -1545,7 +1545,7 @@
if (!drw_fontset_create(drw, fonts, LENGTH(fonts)))
die("no fonts could be loaded.");
lrpad = drw->fonts->h;
- bh = drw->fonts->h + 2;
+ bh = drw->fonts->h + 4;
updategeom();
/* init atoms */
@Head-on-a-Stick
Head-on-a-Stick / 00_header
Created Nov 4, 2018
/etc/grub.d/00_header
View 00_header
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@Head-on-a-Stick
Head-on-a-Stick / openbsd.dmesg
Created Aug 9, 2018
`(dmesg;sysctl|grep hw.*)`
View openbsd.dmesg
OpenBSD 6.3-current (GENERIC.MP) #182: Tue Aug 7 02:02:26 MDT 2018
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8489566208 (8096MB)
avail mem = 8223088640 (7842MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xebd70 (36 entries)
bios0: vendor American Megatrends Inc. version "4.6.5" date 10/07/2013
bios0: Notebook W54_55SU1,SUW
View tint2rc
# Background definitions
# ID 1
rounded = 0
border_width = 1
background_color = #cecece 100
border_color = #888888 100
# ID 2
rounded = 1
border_width = 0
You can’t perform that action at this time.