Skip to content

Instantly share code, notes, and snippets.

@drmikecrowe
drmikecrowe / install.sh
Created June 28, 2023 08:56 — forked from mx00s/install.sh
NixOS install script based on @grahamc's "Erase Your Darlings" blog post
#!/usr/bin/env bash
#
# NixOS install script synthesized from:
#
# - Erase Your Darlings (https://grahamc.com/blog/erase-your-darlings)
# - ZFS Datasets for NixOS (https://grahamc.com/blog/nixos-on-zfs)
# - NixOS Manual (https://nixos.org/nixos/manual/)
#
# It expects the name of the block device (e.g. 'sda') to partition
#compdef op
compdef _op op
# zsh completion for op -*- shell-script -*-
__op_debug()
{
local file="$BASH_COMP_DEBUG_FILE"
if [[ -n ${file} ]]; then
echo "$*" >> "${file}"
@drmikecrowe
drmikecrowe / README.md
Last active August 11, 2024 14:30 — forked from jossef/main.py
vscode marketplace api list all extensions + download artifacts

This snippet takes your exported vscode extension list and adds the description and last updated date. Here's how I use it:

  • Export my existings to a list
  • Review that list and decide what extensions I need to clean up (delete those lines from this list)
code --list-extensions > installed.txt  
python VSCode_CSV.py