Skip to content

Instantly share code, notes, and snippets.

View dac73's full-sized avatar
⚓
Ship it

Dario Tislar dac73

⚓
Ship it
  • Digital Cloud Consulting ltd
  • Croatia
View GitHub Profile
@dac73
dac73 / 99-hack-color-emoji.conf
Last active May 25, 2022 14:16 — forked from IgnoredAmbience/99-noto-mono-color-emoji.conf
Hack Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-hack-color-emoji.conf
@dac73
dac73 / mellowplayer-flatpak-update.sh
Created August 27, 2019 11:59
Update MellowPlayer flatpak
#!/bin/bash
set -e
NEW_VERSION=`curl -s https://gitlab.com/api/v4/projects/9602590/releases | jq -r '.[0].name'`
CURRENT_VERSION=`com.gitlab.ColinDuquesnoy.MellowPlayer -v 2>&1 /dev/null | grep -i MellowPlayer | cut -d' ' -f2-`
echo -e "Local Version: \e[95m$CURRENT_VERSION\e[0m Remote Version: \e[95m$NEW_VERSION\e[0m"
if [[ ${NEW_VERSION:0:5} == ${CURRENT_VERSION:0:5} ]]; then
echo "Update not needed!"
exit
fi
@dac73
dac73 / .bashrc
Last active December 6, 2020 17:11
Fancy PS1 (bash) prompt with git, python venv, background jobs and exit code, multiline
# paste this code in ~/.bashrc
# example --> https://i.imgur.com/EJvWE5Y.png
# lets create functions for PS1 segments
GITCOLOR=34
VENVCOLOR=5
function segment_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
@dac73
dac73 / fedora_fonts.sh
Created March 26, 2020 19:10
Fedora nicer font rendering
#!/usr/bin/env bash
sudo ln -s /usr/share/fontconfig/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/10-hinting-slight.conf
sudo ln -s /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d/10-sub-pixel-rgb.conf
sudo ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d/11-lcdfilter-default.conf