Skip to content

Instantly share code, notes, and snippets.

View rlofc's full-sized avatar

Ithai Levi rlofc

  • Google
  • Dublin, Ireland
View GitHub Profile
@rlofc
rlofc / jolt.sh
Created April 30, 2024 08:54
jolt
#!/bin/bash
cd ~/jolts/
result=$(ag -G .md$ --noheading . | \
fzf --ansi --delimiter=: \
--preview 'bat --color always {1} -H {2} -n' \
--preview-window 'top,50%,border-bottom,+0+3/3')
if [ ! -z "$result" ]; then
@rlofc
rlofc / tavern_npcs_demo.scroll
Created July 16, 2023 12:43
Generate 10 random tavern NPCs
Equipment { ^ [
* Gear
]
}
Gear(Equipment) { ^ [
* Storage
* Food
* HolyItems
* Tools
@rlofc
rlofc / vimwiki.vim
Created January 10, 2023 09:02
vimwiki layer
"=============================================================================
" vimwiki.vim --- SpaceVim Vimwiki layer
" Copyright (c) 2022-2023 Urshina
" Author: Urshina
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
""
@rlofc
rlofc / citylights.kak
Last active August 24, 2017 08:48
WIP kakoune editor configs
# Kakoune citylights color scheme
# For Code
face value rgb:0fffaa+b
face type rgb:eeefa3
face identifier rgb:ff0000
face string rgb:eeaaaa,rgb:111111
face error default,red
face keyword rgb:a1f0a1+b
face operator rgb:eeff33
@rlofc
rlofc / FileSystem.cpp
Created March 23, 2014 06:19
Use physfs file system in GamePlay3D
#include "Base.h"
#include "FileSystem.h"
#include "Properties.h"
#include "Stream.h"
#include "Platform.h"
#include <sys/types.h>
#include <sys/stat.h>
#ifdef WIN32