Skip to content

Instantly share code, notes, and snippets.

🚫
Moderate depression

Head-on-a-Stick

🚫
Moderate depression
  • 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 / 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">
@Head-on-a-Stick
Head-on-a-Stick / PKGBUILD
Last active May 16, 2018
PKGBUILD for pbrt-v3
View PKGBUILD
# Maintainer: Matthew T Hoare <matthew.t.hoare dot gmail at com>
_pkgname='pbrt-v3'
pkgname="${_pkgname}-git"
pkgver=r677.63a0699
pkgrel=1
pkgdesc="Physically based rendering system"
arch=('x86_64')
url="pbrt.org"
license=('BSD')
@Head-on-a-Stick
Head-on-a-Stick / sharp-exit
Last active Apr 22, 2018
Simple exit dialogue for openbox & systemd
View sharp-exit
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import os
import getpass
class sharp_exit:
def disable_buttons(self):
@Head-on-a-Stick
Head-on-a-Stick / flame.pov
Created Apr 10, 2018
POV-Ray scene file for BunsenLabs logo
View flame.pov
#include "colors.inc"
#include "finish.inc"
#include "glass.inc"
global_settings {
max_trace_level 256
photons {count 100000}
}
camera {
You can’t perform that action at this time.