Skip to content

Instantly share code, notes, and snippets.

@bodziek666
bodziek666 / fix-infinality.md
Created July 17, 2018 20:11 — forked from cryzed/fix-infinality.md
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!

Screenshots

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

@bodziek666
bodziek666 / dbus_spotify_example.py
Created November 20, 2018 22:36
python3 - spotify dbus example
#!/usr/bin/env python3
import dbus
def main():
bus = dbus.SessionBus()
spotify = dbus.Interface(bus.get_object('org.mpris.MediaPlayer2.spotify', '/org/mpris/MediaPlayer2'), dbus_interface='org.freedesktop.DBus.Properties')
track_data = spotify.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
track_url = track_data.get('xesam:url')
@bodziek666
bodziek666 / .bashrc-windows
Created January 24, 2019 22:10
Windows 10 bashrc customizations
# configuration from above wasn't modified so it's not posted here
# Custom PATH
export PATH=$PATH:/mnt/c/Applications:/mnt/c/Applications/mpv
# SSH Agent
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
echo "Starting ssh-agent"
eval $(ssh-agent -s)
@bodziek666
bodziek666 / misc
Last active January 24, 2019 22:34
my win10 xorg setup
# needed packages
sudo apt-get install openssh-server xauth
# service reload cmd
sudo service ssh --full-restart
@bodziek666
bodziek666 / oneliners.sh
Created January 26, 2019 00:04
list of useful oneliners
# mpv/media playback form bash
select $i in *.mkv; do mpv "${i}"; done
@bodziek666
bodziek666 / kwin.sh
Last active July 30, 2022 21:35
systemd-sleep kwin hook
#!/bin/bash
#
# Restart kwin on resume after suspend
case "${1}" in
post)
KWIN_PID=$(pidof kwin)
KWIN_X11_PID=$(pidof kwin_x11)
server {
listen 80;
server_name localhost;
location ~* ^/(?:lib|test|node_modules) {
deny all;
}
location ~* ^/(?:Procfile|README.md|package.json|package-lock.json)$ {
deny all;
@bodziek666
bodziek666 / letsencrypt-murmur-hook.sh
Last active October 26, 2020 17:02
let's encrypt hook for reloading murmurd ssl certificates
#!/bin/bash
LETSENCRYPT_DIR="/etc/letsencrypt/live/mumble.domain.tld"
MUMBLE_CERT_DIR="/opt/docker/murmur/cert"
DOCKER_CONTAINER="murmur"
DOCKER_MUMBLE_UID=2137
DOCKER_MUMBLE_GID=2137
@bodziek666
bodziek666 / .bashrc
Created August 22, 2020 19:57 — forked from copperlight/.bashrc
Window Subsystem for Linux ssh-agent Configuraton
# ... more above ...
# wsfl bash is not a login shell
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# ssh-agent configuration
if [ -z "$(pgrep ssh-agent)" ]; then
rm -rf /tmp/ssh-*
version: '3'
services:
murmur:
image: goofball222/murmur
container_name: murmur
restart: on-failure
volumes:
- /etc/localtime:/etc/localtime:ro
- ./cert:/opt/murmur/cert
- ./config:/opt/murmur/config