Skip to content

Instantly share code, notes, and snippets.

View bwkam's full-sized avatar
🐺
i love wolf

Beshoy Kamel bwkam

🐺
i love wolf
View GitHub Profile
@nat-418
nat-418 / nix-home-manager-neovim-setup.md
Last active July 15, 2024 07:23
Manage Neovim plugins (and more!) with Nix and Home Manager

Manage Neovim plugins (and more!) with Nix and Home Manager

Highly extensible software like Emacs, Vim, and Neovim tend to grow their own package managers. A software developer, for example, might want to install editor plugins that hook into a particular programming language's linter or language server. The programmer's text editor is therefore extended to support managing additional software to extend the text editor. If this loop continues for too long, the programmer's editor becomes more delicate and complex. The remedy for this problem is to manage software using dedicated tools apart

@Crinfarr
Crinfarr / DfParse.hx
Created September 29, 2022 12:36
DF command output parser
package ;
class DfParser {
static function parse(i:String):Array<{Filesystem:String, Size:String, Used:String, Avail:String, UsePct:String, MountedOn:String}> {
final result:String = i;
var resultArr:Array<String> = ~/(?=\n)/gm.split(result);
resultArr = resultArr.filter((s) -> {return if (s == "\n") false else true;});
resultArr.splice(0, 1);
var retarr:Array<{Filesystem:String, Size:String, Used:String, Avail:String, UsePct:String, MountedOn:String}> = [];