These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef gio | |
# Usage: | |
# gio COMMAND [ARGS…] | |
# | |
# Commands: | |
# help Print help | |
# version Print version | |
# cat Concatenate files to standard output | |
# copy Copy one or more files |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ZSH Options | |
# http://zsh.sourceforge.net/Doc/Release/Options.html | |
# Changing Directories | |
# http://zsh.sourceforge.net/Doc/Release/Options.html#Changing-Directories | |
setopt auto_cd # if a command isn't valid, but is a directory, cd to that dir | |
setopt auto_pushd # make cd push the old directory onto the directory stack | |
setopt pushd_ignore_dups # don’t push multiple copies of the same directory onto the directory stack | |
setopt pushd_minus # exchanges the meanings of ‘+’ and ‘-’ when specifying a directory in the stack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# export installed cargo binaries as JSON | |
set -euo pipefail | |
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
if ! command -v cargo &> /dev/null; then | |
if [[ -x $HOME/.cargo/bin/cargo ]]; then | |
[[ -r $HOME/.cargo/env ]] && source "$HOME/.cargo/env" | |
CMD=$HOME/.cargo/bin/cargo | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export PIPX_HOME=$HOME/.local/python-utils | |
export PIPX_BIN_DIR=$HOME/.local/python-utils/bin | |
export DOTNET_ROOT=$HOME/.dotnet | |
export CARGO_HOME=$HOME/.cargo | |
export NVM_DIR=$HOME/.nvm | |
export MAMBA_ROOT_PREFIX=$HOME/.local/share/micromamba | |
export GOROOT=/usr/local/go | |
export GOPATH=$HOME/.local/go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to parse and validate format options | |
parse_format() { | |
local -l fmt=$1 | |
case "$fmt" in | |
a | auto) echo "auto" ;; | |
y | yaml) echo "yaml" ;; | |
j | json) echo "json" ;; | |
p | props) echo "props" ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
from pathlib import Path | |
from typing import Callable | |
import json | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# manually save the default keybindings to a file | |
defaults="$TEMP/keybindings.vscode-default.jsonc" | |
mapfile -t used_commands < <( | |
jsonc read < "$defaults" | | |
jq -M '.[].command' | | |
xargs -n1 | |
) |
NewerOlder