Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖

Head-on-a-Stick

🤖
  • Kamikaze Kouriers
  • /dev/chair
View GitHub Profile
View config-5.7.0-14.1-liquorix-amd64
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.7.14-lqx1 Kernel Configuration
#
#
# Compiler: gcc (Debian 8.3.0-6) 8.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=80300
View example.kshrc
# This file contains examples of some of the things you may want to
# include in a user startup file.
# handle bash/zsh SHLVL variable
(( SHLVL++ ))
# skip this setup for non-interactive shells
[[ -o interactive && -t 0 ]] || return
# disable core dumps
@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 / .mkshrc
Last active Jan 18, 2019
Aliases for ISO creation
View .mkshrc
function mnt {
for i in proc sys dev{,/pts} ; do sudo mount --bind /$i "$1"$i ; done &
sudo chroot "$1" /bin/bash
sudo umount -R "$1"{proc,sys,dev}
}
function mkiso {
xorriso -as mkisofs \
-iso-level 3 \
-full-iso9660-filenames \
You can’t perform that action at this time.