Skip to content

Instantly share code, notes, and snippets.

View Francesco149's full-sized avatar
:shipit:
memes

lolisamurai Francesco149

:shipit:
memes
View GitHub Profile
package main
import (
"fmt"
"log"
"github.com/BurntSushi/xgb"
"github.com/BurntSushi/xgb/xproto"
"github.com/BurntSushi/xgb/xinerama"
)
@Francesco149
Francesco149 / commands-for-thelewa.md
Last active December 21, 2015 15:23
Shigebot Commands for #thelewa

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #thelewa (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)
@Francesco149
Francesco149 / commands-for-lolisamurai.md
Last active March 3, 2016 18:06
Shigebot Commands for #lolisamurai

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #lolisamurai (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)
@Francesco149
Francesco149 / commands-for-danidpp.md
Last active March 3, 2016 18:06
Shigebot Commands for #danidpp

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #danidpp (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)
@Francesco149
Francesco149 / commands-for-shigetora.bak.md
Last active June 19, 2016 16:15
Shigebot Commands for #shigetora

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #shigetora (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)
@Francesco149
Francesco149 / commands-for-lolisamurai.md
Created June 19, 2016 16:19
Shigebot Commands for #lolisamurai

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #lolisamurai (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)
@Francesco149
Francesco149 / commands-for-shigetora.md
Last active June 26, 2016 17:18
Shigebot Commands for #shigetora

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #shigetora (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)

shigebot 2.0

by Franc[e]sco/lolisamurai

Available commands for channel #lolisamurai (+ = mod only):

  • !hi: hi
@Francesco149
Francesco149 / gentoo-xsp-build-fix.sh
Created September 12, 2016 12:13
Fix for building dev-dotnet/xsp on gentoo
su
ln -s mcs /usr/bin/gmcs
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild fetch
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild unpack
cd /var/tmp/portage/dev-dotnet/xsp-2.10.2-r2/work/xsp-2.10.2
sed -i 's|\(/mono/2.0\)|\1-api|' configure
sed -i 's|\(/mono/4.0\)|\1-api|' configure
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild compile
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild install
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild qmerge

How to disable font antialiasing on Firefox

On many distros (in my case mint) firefox does not pick up fontconfig settings when you disable font antialiasing or mess with the hinting. Especially if it's statically linked to its own cairo instead of using the system's version.

This is easily fixed by creating a .fonts.conf file in your home directory that forces the desired hinting and antialiasing values:

cat > ~/.fonts.conf << "EOF"