Skip to content

Instantly share code, notes, and snippets.

Serge Tkatchouk spijet

Block or report user

Report or block spijet

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
JeremyOttley / lemonbar.rb
Created Dec 4, 2017
LemonBoy's Bar Ruby Config for BSPWM
View lemonbar.rb
### Config Start
width = 2560
height = 24
fg = "'#66FFFFFF'"
bg = "'#AA000000'"
font = "-xos4-terminus-*-*-*-*-18-*-*-*-*-*-*-*"
def workspace
case `bspc query -D -d`.chomp
cryzed /
Last active Oct 10, 2019
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!


Results after following the guide as of 11.01.2017 13:08:

mattconnolly / gist:e188fdb1049872ec428d
Created May 19, 2014
setup iscsi share on smartos
View gist:e188fdb1049872ec428d
#!/bin/bash -x
# based on:
svcadm enable stmf
svcadm enable -r svc:/network/iscsi/target:default
afresh1 /
Last active Jul 16, 2018
A script to find and connect to known wifi networks on OpenBSD. Works for me on my iwn card in my laptop
# - An OpenBSD Wireless Network configurator
# Looks for available networks listed at the end of the script
# Use this by adding "!/path/to/ \$if" to your wlan hostname.if
if [ -z "$if" ]; then
echo "Usage: $0 interface" >&2
exit 2;
View .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
Documented at
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
jperkin /
Last active Sep 11, 2018
Creating a NetBSD VM on SmartOS

Instructions for building a NetBSD VM


vmadm create < netbsd-install.json
vmadm list
cp NetBSD-6.0-amd64.iso /zones/$zoneuuid/root/netbsd.iso
vmadm boot $zoneuuid order=cd,once=d cdrom=/netbsd.iso,ide
owainlewis / multimethod.rb
Created Aug 11, 2012 — forked from alandipert/multimethod.rb
Multimethods in Ruby
View multimethod.rb
class Multimethod
attr_accessor :dispatch, :methods, :heirarchy, :default_method
class NoMatchingMethodError < StandardError
def initialize(&dispatch)
@dispatch = dispatch
@methods = []
@heirarchy = {}
You can’t perform that action at this time.