Skip to content

Instantly share code, notes, and snippets.

@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 / .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 / 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 / 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: