Skip to content

Instantly share code, notes, and snippets.

View marcs-feh's full-sized avatar
🍺
There's only one beer left

marcs feh marcs-feh

🍺
There's only one beer left
View GitHub Profile
@marcs-feh
marcs-feh / init.lua
Last active June 14, 2023 22:31
Extra thicc all-in-one-place init.lua for neovim, quite useful for remote machines
--- General Options ---
do
local options = {
backup = false,
hidden = true,
clipboard = "unnamedplus",
cmdheight = 1,
completeopt = { "menuone", "noselect" },
conceallevel = 0,
fileencoding = "utf-8",
@marcs-feh
marcs-feh / rivertile-pertag-2023-03-13.diff
Created March 13, 2023 14:17
Rivertile pertag behavior
diff --git a/rivertile/main.zig b/rivertile/main.zig
index 6b9c458..cbef542 100644
--- a/rivertile/main.zig
+++ b/rivertile/main.zig
@@ -1,5 +1,4 @@
// This file is part of river, a dynamic tiling wayland compositor.
-//
// Copyright 2020-2021 The River Developers
//
// This program is free software: you can redistribute it and/or modify
@marcs-feh
marcs-feh / init.vim
Last active August 27, 2024 22:31
Quick neovim cfg
" Simple init.vim that's compatible with Neovim and Vim
let g:Tabsize=4
let g:JKEscape=v:true
" Syntax and colors
" if exists('g:syntax_on')
" syntax on
" endif
@marcs-feh
marcs-feh / serve-file.py
Created November 15, 2022 15:24
Quickly serve a file using flask, I use this frequently to transfer files to a VM using port fowarding
#!/usr/bin/env python
from sys import argv, exit
from flask import Flask
from os.path import exists
PORT=8069
def main():
if len(argv) < 2:
#!/bin/sh
# Taken mostly from Gentoo's handbok
newRoot="$1"
printf "chroot into '$newRoot'?(y/N) "
read confirm
[ "$confirm" = "y" ] && {
# Mount required filesystems
mkdir -p "$newRoot"