Skip to content

Instantly share code, notes, and snippets.

View crnisamuraj's full-sized avatar

Crnisamuraj crnisamuraj

View GitHub Profile

Keybase proof

I hereby claim:

  • I am crnisamuraj on github.
  • I am voodoo_ronin (https://keybase.io/voodoo_ronin) on keybase.
  • I have a public key ASAkXPyFXmcDq_dsWR5VqTLf-juaQDzEYqaN2CcXSwRh9Ao

To claim this, I am signing this object:

@crnisamuraj
crnisamuraj / Demo: String Templates in Bash .md
Created April 16, 2022 10:12 — forked from milos-ivancevic-htec/Demo: String Templates in Bash .md
The best way to create a multiline document template (shell)

Demo: String Templates in Bash

The best way to create a multiline string template variable which has variables within it and contains double quotes.

IMPORTANT: The variable inserts must be assigned before the string template is declared and before it's used! EACH TIME THE INSERTS ARE MODIFIED, THE TEMPLATE MUST BE RE-RECLARED! For this reason it's sometimes handy to put the template def inside a function so you can call/re-call it before using it.

@crnisamuraj
crnisamuraj / keybase-git-setup.md
Created April 16, 2022 10:12 — forked from milos-ivancevic-htec/keybase-git-setup.md
How to import pub/sec PGP keys from keybase to your local GPG keyring.

Import Keybase PGP to GPG

After installing the keybase command-line tool onto a new / fresh computer, you may want to import your PGP key to the local keyring so that you may use the keys with GPG.

Import your PUBLIC PGP key:

keybase pgp export|gpg --import -
@crnisamuraj
crnisamuraj / keybasbaseinstructions.md
Created April 16, 2022 10:12 — forked from milos-ivancevic-htec/keybasbaseinstructions.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@crnisamuraj
crnisamuraj / 99-noto-mono-color-emoji.conf
Created April 16, 2022 10:12 — forked from milos-ivancevic-htec/99-noto-mono-color-emoji.conf
Noto 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-noto-mono-color-emoji.conf
@crnisamuraj
crnisamuraj / root-gui-kde.sh
Created February 21, 2022 15:54
KDE Plasma gui apps as root
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch systemsettings5
@crnisamuraj
crnisamuraj / archtweaks.md
Created September 28, 2021 19:36 — forked from lbrame/archtweaks.md
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@crnisamuraj
crnisamuraj / improve_fonts.md
Last active April 29, 2023 21:09 — forked from YoEight/improve_fonts.md
Improve fonts archlinux

Improve Fonts

Newest

Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.

You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts

@crnisamuraj
crnisamuraj / picom-extended.conf
Last active December 22, 2023 16:48
Picom config file for KDE Plasma + Kwin + Picom
### Fading
fading = true;
fade-in-step = 0.06;
fade-out-ste = 0.06;
fade-delta = 3;
fade-exclude = [
"class_g = 'yakuake'"
]
### Opacity
@crnisamuraj
crnisamuraj / youtube-download.sh
Last active August 21, 2022 09:02
youtube-download
#!/usr/bin/env bash
URL=$1
youtube-dl -f 'bestaudio' -x --audio-format 'mp3' --audio-quality '0' --embed-thumbnail --add-metadata $URL