Skip to content

Instantly share code, notes, and snippets.

View nickpelone's full-sized avatar

Nick Pelone nickpelone

View GitHub Profile
@nickpelone
nickpelone / openbox-volume-keys
Last active January 19, 2022 16:21
Volume keys for Openbox rc.xml (~/.config/openbox/rc.xml)
<!---volume keys-->
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<execute>amixer sset Master 2+</execute>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<execute>amixer sset Master 2-</execute>
@nickpelone
nickpelone / gist:d155f8805415e249a28b
Last active August 29, 2015 14:16
HOTS Abathur builds
[Full Split Push, No Support(Heal)]
http://www.heroesfire.com/hots/talent-calculator/abathur#lMJc
[Full Support, Clone Build]
http://www.heroesfire.com/hots/talent-calculator/abathur#pAHL
[AOE Focused]
http://www.heroesfire.com/hots/talent-calculator/abathur#hX_L
@nickpelone
nickpelone / bbstats
Created April 24, 2015 21:36
bbstats
#!/bin/sh
sudo cat /proc/acpi/bbswitch
@nickpelone
nickpelone / vp9-encode.rb
Created July 21, 2020 17:54
quick and dirty wrapper around ffmpeg for encoding VP9 WebM files
#! /usr/bin/env ruby
# frozen_string_literal: true
# author: Nick Pelone <nick.pelone@gmail.com>
# Convert an input video file into VP9/WebM via a two-pass encoding process.
# The null file descriptor, platform-dependent.
# (This is where we send the first pass to, see: https://trac.ffmpeg.org/wiki/Encode/VP9)
NULL_FILEPTR = Gem.win_platform? ? 'NUL' : '/dev/null'
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">