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
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
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 / 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 \
@Head-on-a-Stick
Head-on-a-Stick / box.md
Last active Nov 12, 2018
Cornell Box (+balls) for Mitsuba
View box.md

This is the balls.xml scene file:

<scene version="0.6.0">

   <integrator type="volpath">
      <integer name="maxDepth" value="16"/>
   </integrator>

   <!-- stuff -->
@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.
You can’t perform that action at this time.