Using https://github.com/dandavison/delta
~/.gitconfg
[core]
pager = delta
[interactive]
diffFilter = delta
| # Building https://github.com/sftwrdotdev/Markpad FOR Windows is easier on WSL than Windows itself once a few dependencies are installed | |
| # Deps | |
| sudo apt install libglib2.0-dev librust-gdk-0.18-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev | |
| # The Windows SDK import libraries are stored lowercase (shell32.lib) in the cargo-xwin cache | |
| # Windows is case-insensitive, but Linux isn't, so something requesting Shell32.lib fails | |
| ln -s ~/.cache/cargo-xwin/xwin/sdk/lib/um/aarch64/shell32.lib ~/.cache/cargo-xwin/xwin/sdk/lib/um/aarch64/Shell32.lib | |
| ln -s ~/.cache/cargo-xwin/xwin/sdk/lib/um/x86_64/shell32.lib ~/.cache/cargo-xwin/xwin/sdk/lib/um/x86_64/Shell32.lib | |
| bitrate = 160 | |
| cover_max_scale = 2 | |
| flip_status_indicators = true | |
| initial_screen = "library" | |
| notify = true | |
| use_nerdfont = true | |
| library_tabs = ["tracks", "playlists", "albums", "artists", "browse"] | |
| [keybindings] |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [ "${1:-}" = "--help" ]; then | |
| cat << EOF | |
| Usage: ijq [filename] | |
| A wrapper around jq that uses fzf to interactively build jq filters. |
| " Linux: curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| " PowerShell: iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` ni $HOME/.vim/autoload/plug.vim -Force | |
| " `:!pip install setuptools` may be needed for python-mode | |
| let g:pymode_python = 'python3' | |
| let g:python3_host_prog = expand('~/.local/bin/python') | |
| "let g:python3_host_prog = expand('/usr/bin/python3') | |
| set clipboard=unnamed "system clipboard |
| # Warning | |
| Clear-Host | |
| Write-Output "Run this script on the computer you want to access via RDP" | |
| Write-Output "" | |
| # Ask | |
| Write-Output "Remote address can be an IP address or network with CIDR" | |
| Write-Output "Example: 192.168.0.5 or 192.168.0.0/24" | |
| Write-Output "" | |
| $RemoteAddress = Read-Host "Remote Address" |
Using https://github.com/dandavison/delta
~/.gitconfg
[core]
pager = delta
[interactive]
diffFilter = delta
| #!/bin/bash | |
| if [ "$#" -eq 0 ]; then | |
| echo "Usage: $0 FILENAME | 'WILDCARD' (in single quotes)" | |
| exit | |
| fi | |
| slug() { | |
| # Replace non-alpha characters and rename file | |
| f=$(basename "$1") |
| # Download all Gists | |
| for i in $(gh gist list -L 1000 | cut -f1); do echo "ID: $i"; gh gist view $i > $i; done | |
| # Rename each file with a slug of the first line / description | |
| for f in *; do mv -v $f $(gawk 'NR==1{gsub(/[^[:alnum:]]/, "-"); gsub(/-+/, "-"); print $0 "_" FILENAME}' $f); done |