Skip to content

Instantly share code, notes, and snippets.

View Omnikron13's full-sized avatar

Joey Sabey Omnikron13

View GitHub Profile
@Omnikron13
Omnikron13 / notebooklm-is-bureaucracy-larp.md
Created July 13, 2025 07:16
NotebookLM is A truly bizarre and creepy experience, where you get to RP against a digital Jobsworth

Introduction to NotebookLM PRO Sources Chat Studio 👋 Introduction to NotebookLM 7 sources

The provided texts introduce NotebookLM, an AI-powered tool designed to help users comprehend and organise complex information. It functions by allowing users to upload various source types like documents, web pages, and audio files, which the AI then processes to provide summaries, answer questions, and generate different content formats such as study guides or FAQs. Users can interact with the AI via a chat interface, receiving responses with inline citations grounded in their uploaded materials. The platform also features "notebooks" for project organisation and offers a "Plus" version with enhanced capabilities, including sharing options and usage analytics, making it suitable for diverse applications from research to creating help centres.

@Omnikron13
Omnikron13 / Vox.md
Created January 30, 2025 19:54
Design document for a lighter alternative to Vec<Box<T>> for building persistent data structures

Vox: A Vectorised Box

Vox<T> is intended to provide a more performant alternative to constructs such as Vec<Box<T>> where it is desirable to maintain a growable collection of fixed-location heap allocated immutable objects.

The core design decisions for Vox are:

  • Owns all of the allocations of type T stored within it.

  • Append-only; new T instances can only be appended to the end of a Vox, not inserted at an arbitrary position, moved, or removed.

@Omnikron13
Omnikron13 / overview.sh
Created January 24, 2025 22:10
A small script that prints an overview of the Rust crates found in its directory
#!/usr/bin/env bash
# overview.sh - Provides an overview of Rust crates in a directory.
#
# This script scans a directory for Rust crates (identified by Cargo.toml files),
# extracts relevant information from the Cargo.toml files (name, description, author),
# and displays it in a formatted, color-coded output.
#
# The script uses 'fd' to find Cargo.toml files and 'ripgrep' to extract information
# from them. It is designed to be run from the root of a directory containing
@Omnikron13
Omnikron13 / PKGBUILD
Created August 23, 2024 07:48
Quick and dirty PKGBUILD alternative to install.sh for gopad
# Maintainer: Joey Sabey <joey.sabey@gmx.com>
pkgname=gopad-git
procname=gopad
provides=("${procname}")
pkgver=c84fd37
pkgrel=1
pkgdesc="simple terminal-based text editor written in Go and inspired mostly by nano"
arch=('any')
url="https://github.com/gopad-dev/${pkgname%-git}"
@Omnikron13
Omnikron13 / PKGBUILD
Last active August 14, 2024 02:38
Fix pkgversion/provides for gnupg-git AUR package
# Merged with official ABS gnupg PKGBUILD by João, 2021/07/23 (all respective contributors apply herein)
# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx>
# Contributor: Stephanie Wilde-Hobbs <git@stephanie.is>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: alphazo@gmail.com
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
@Omnikron13
Omnikron13 / nerdfont-ranges.json
Created May 18, 2024 16:42
NerdFont v3.2.1 Ranges
[{"name":"Octicons","ranges":[{"first":62464,"last":62771},{"first":9829,"last":9829},{"first":9889,"last":9889}]},{"name":"IEC Power Symbols","ranges":[{"first":9211,"last":9214},{"first":11096,"last":11096}]},{"name":"Pomicons","ranges":[{"first":57344,"last":57354}]},{"name":"Powerline Symbols","ranges":[{"first":57504,"last":57506},{"first":57520,"last":57523}]},{"name":"Powerline Extra Symbols","ranges":[{"first":57507,"last":57507},{"first":57524,"last":57544},{"first":57546,"last":57546},{"first":57548,"last":57559}]},{"name":"Font Awesome Extension","ranges":[{"first":57856,"last":58025}]},{"name":"Weather Icons","ranges":[{"first":58112,"last":58339}]},{"name":"Seti-UI + Custom","ranges":[{"first":58874,"last":59061}]},{"name":"Devicons","ranges":[{"first":59136,"last":59333}]},{"name":"Codicons","ranges":[{"first":60000,"last":60446}]},{"name":"Font Awesome","ranges":[{"first":60672,"last":61390},{"first":61440,"last":62207}]},{"name":"Font Logos/Font Linux","ranges":[{"first":62208,"last":62322}]},
@Omnikron13
Omnikron13 / uptime-short.fish
Created December 19, 2019 04:53
Condensed uptime output for, e.g, status bars etc.
# Prints out a much more condensed output than the uptime command, intended for
# use in things like status bars where space is a big restriction.
function uptime-short
# Extract a single unit (minutes/hours/days/weeks) from 'uptime -p' string
# Arguments: uptime string, unit to extract
function extract
# 'uptime -p' omits units entirely if they are 0...
set -l X (string match --regex "\d+(?= $argv[2])" "$argv[1]")
# ...so we have to put the actual 0 back in if we want to do maths
if test $X
@Omnikron13
Omnikron13 / cidr.regex
Last active September 16, 2019 05:07
Anal CIDR Regex
^(?:(?:\d|[1-9]\d|1\d{2}|2[0-4]\d+|25[0-5])\.){3}(?:\d|[1-9]\d|1\d{2}|2[0-4]\d+|25[0-5])(?:\/(?:[0-9]|[1-2]\d|3[0-2]))?$
@Omnikron13
Omnikron13 / PKGBUILD
Created August 23, 2019 15:38
solarc-solid-gtk-theme PKGBUILD file
# Maintainer: Joey Sabey <joey.sabey@gmx.com>
pkgname=solarc-solid-gtk-theme
_reponame=solarc-theme
_pkgname=${_reponame}-solid
_pkgauthor=schemar
pkgver=2.0.0
pkgrel=1
pkgdesc="A flat theme without transparent elements. Based on the Arc theme: https://github.com/NicoHood/arc-theme"
arch=('any')
@Omnikron13
Omnikron13 / PKGBUILD
Created August 23, 2019 15:36
solarc-gtk-theme PKGBUILD file
# Maintainer: Joey Sabey <joey.sabey@gmx.com>
pkgname=solarc-gtk-theme
_reponame=solarc-theme
_pkgname=${_reponame}
_pkgauthor=schemar
pkgver=2.0.0
pkgrel=1
pkgdesc="A flat theme with transparent elements. Based on the Arc theme: https://github.com/NicoHood/arc-theme"
arch=('any')