Skip to content

Instantly share code, notes, and snippets.

@rayschpp
rayschpp / .vimrc
Created April 4, 2026 11:10
Asus Win Notebook VIM rc configuration
set number
"set foldclose=all " Close folds if you leave them in any way
"set foldcolumn=1 " Show the foldcolumn
"set foldenable " Turn on folding
"set foldlevel=0 " Autofold everything by default
"set foldmethod=syntax " Fold on the syntax
"set foldnestmax=1 " I only like to fold outer functions
"set foldopen=all " Open folds if you touch them in any way
" add yaml stuff
@rayschpp
rayschpp / sysmaint.bash
Last active February 13, 2026 18:20
Script to wrap maintenance tasks for NixOs
#!/bin/bash
# Include like so:
# environment.systemPackages = with pkgs; [
# .....
# (
# pkgs.writeShellScriptBin "sysmaint" (
# builtins.readFile (
# pkgs.fetchurl {
# url = "https://gist.githubusercontent.com/rayschpp/0d827c8ea1964cebdfc9a0d907720dbf/raw";
# sha256 = "sha256-vD0TyerOp7ir7aPNJMa85R2gQb+q2ALl9lzBTGsI/1E=";