Skip to content

Instantly share code, notes, and snippets.

@LeviSnoot
LeviSnoot / README.md
Last active June 20, 2025 15:19
Bash script for installing fonts on Linux

Install fonts easily on Linux!

Inspired by this blog post by Pulkit Singh, this bash script aims to make font installs on Linux as stupid simple as possible.

Usage

./install-fonts.sh [--debug|-d] [--user|-u] <font-zip-url>
./install-fonts.sh [--debug|-d] [--user|-u]
@LeviSnoot
LeviSnoot / en_SE
Created June 19, 2025 16:41
en_SE - English Locale for Sweden
comment_char %
escape_char /
% Based on glibc locale definitions:
% sv_SE - Source: RAP <[email protected]>
% https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=localedata/locales/sv_SE
% en_US - Source: Free Software Foundation, Inc. <[email protected]>
% https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=localedata/locales/en_US
% This file is licensed under the
@LeviSnoot
LeviSnoot / neofetch_ascii.md
Created October 19, 2023 14:48
A guide for using jp2a and jp2a2neofetch.py to create ASCII art for neofetch.

To convert an image to ASCII art, use jp2a. I found that using the Docker image was the most portable way to do this, especially as it doesn't require you to build the binary manually.

Example command:

docker run -t --rm -v "$(pwd)":/app talinx/jp2a file.ext --color-depth=4 --width=35

Command breakdown

  • docker run tells docker to run an application.
@LeviSnoot
LeviSnoot / discord-timestamps.md
Last active June 23, 2025 09:34
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01