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
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
cryzed / fix-infinality.md
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.
View fix-infinality.md

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!

Screenshots

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

@mattconnolly
mattconnolly / gist:e188fdb1049872ec428d
Created May 19, 2014
setup iscsi share on smartos
View gist:e188fdb1049872ec428d
#!/bin/bash -x
# based on: http://superuser.com/questions/386506/hosting-iscsi-on-smartos
GROUPNAME=iscsi-1
TARGETNAME=iqn.2010-08.org.illumos:02:$GROUPNAME
LOCAL_ADDRESS=192.168.1.2
svcadm enable stmf
svcadm enable -r svc:/network/iscsi/target:default
@afresh1
afresh1 / find_networks.sh
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
View find_networks.sh
#!/bin/sh
# find_network.sh - An OpenBSD Wireless Network configurator
# Looks for available networks listed at the end of the script
# Use this by adding "!/path/to/find_network.sh \$if" to your wlan hostname.if
if=$1
if [ -z "$if" ]; then
echo "Usage: $0 interface" >&2
exit 2;
fi
View .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@jperkin
jperkin / README.md
Last active Sep 11, 2018
Creating a NetBSD VM on SmartOS
View README.md

Instructions for building a NetBSD VM

Install

vmadm create < netbsd-install.json
vmadm list
zoneuuid=...
cp NetBSD-6.0-amd64.iso /zones/$zoneuuid/root/netbsd.iso
vmadm boot $zoneuuid order=cd,once=d cdrom=/netbsd.iso,ide
@owainlewis
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
end
def initialize(&dispatch)
@dispatch = dispatch
@methods = []
@heirarchy = {}
end
You can’t perform that action at this time.