Skip to content

Instantly share code, notes, and snippets.

View darkwater4213's full-sized avatar

Yorukawa Seika darkwater4213

View GitHub Profile
@darkwater4213
darkwater4213 / aops.user.js
Created May 24, 2020 00:33 — forked from nikhiljha/aops.user.js
AoPS Downloader
// ==UserScript==
// @name AoPS Downloader
// @namespace http://www.artofproblemsolving.com/
// @version 0.0.1
// @description Download the AoPS WOOT (or other classes) transcripts!
// @author Nikhil Jha
// @match http://www.artofproblemsolving.com/class/*/transcript/*
// @grant none
// ==/UserScript==
darkwater4213@home ~ $ git gud
git gud at https://git-scm.com/docs/
darkwater4213@home ~ $ git gud help
git gud with
git gud [--install] [--auto-open] [-s source|-l local-source] [-t type]
source: [git|pro-git|...]
type: [epub|pdf|mobi|html|zip|md|txt|rtf|...]
git gud at git gud with
@darkwater4213
darkwater4213 / table-df.nu
Last active April 29, 2023 19:30
Nushell fancy df
#! /usr/bin/env nu
# aliases df to a hacky way of turning it into a somewhat nice table
# because df | detect columns actually doesn't work all that well.
alias df = nu -c ( nu -c 'df | rg -e " +" -r " " | rg -Ue "\n" -r "] [" | rg -e "Mounted on\\]" -r "Mountpoint];" | rg -e "Filesystem" -r "[[Filesystem" | rg -e "\\] \\[$" -r "]]"' )