Skip to content

Instantly share code, notes, and snippets.

View crnisamuraj's full-sized avatar

Crnisamuraj crnisamuraj

View GitHub Profile
@crnisamuraj
crnisamuraj / ubuntu-mate-install.log
Last active September 14, 2017 12:32 — forked from mokiding/ubuntu-install.log
What i do after installing of ubuntu-mate
#Go to sudo and update repo
sudo su
#Replace .rs in sources.list
sed -i 's/rs.//g' /etc/apt/sources.list
apt update
#Remove unused things
apt purge firefox* libreoffice* gnome-orca* deja-dup* atril* rhythmbox* pidgin* thunderbird* plank* pluma* shotwell* synapse*
@crnisamuraj
crnisamuraj / nodejs-rfid.js
Created November 23, 2019 13:28 — forked from karlosgliberal/nodejs-rfid.js
Use NodeJS to read RFID ids through the USB serial stream.
/*
DESCRIPTION
-----------
Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum:
http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699
CODE REPOSITORY
---------------
https://gist.github.com/806605
@crnisamuraj
crnisamuraj / setup.md
Created August 4, 2020 12:21 — forked from Yatoom/setup.md
Thinkfan configuration

Thinkfan setup

Note: I configured this thinkfan setup for my old Thinkpad w520 on Ubuntu 17.10.

1. Install necessary programs

Install lm-sensors and thinkfan.

sudo apt-get install lm-sensors thinkfan
@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 / 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 / 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 / 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 / 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 / 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.