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 / 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
@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 / balls.xml
Last active May 29, 2018
Mitsuba renderer test scene: checkerboard floor + 3 balls (lithium, glass & skimmed milk) & .exr lightmap
View balls.xml
<scene version="0.6.0">
<integrator type="path">
<integer name="maxDepth" value="16"/>
</integrator>
<!-- stuff -->
<shape type="sphere">
<bsdf type="conductor">
You can’t perform that action at this time.