tl;dr
# /etc/nixos/configuration.nix
{
programs.nix-ld.enable = true;
}| { | |
| inputs, | |
| stateVersion, | |
| pkgs, | |
| nixvim, | |
| ... | |
| }: | |
| { | |
| imports = [ ./hmuser.nix ]; |
| [ | |
| // Navigation | |
| { | |
| "key": "ctrl-h", | |
| "command": "workbench.action.navigateLeft" | |
| }, | |
| { | |
| "key": "ctrl-l", | |
| "command": "workbench.action.navigateRight" | |
| }, |
| import * as React from "react"; | |
| import { Dialog as ArkDialog, Portal } from "@ark-ui/react"; | |
| import { X } from "lucide-react"; | |
| import { cn } from "@/lib/utils"; | |
| const Dialog = ArkDialog.Root; | |
| const DialogTrigger = ArkDialog.Trigger; |
| Export VM as OVF | |
| /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/ovftool VM.vmwarevm/VM.vmx . | |
| Convert .vmdk to .qcow2 | |
| qemu-img convert -p -f vmdk -O qcow2 VM-disk1.vmdk VM-disk1.qcow2 | |
| Create custom VM in UTM matching VM hardware | |
| Remove default disk | |
| Add drive / import QCOW2 file (file is copied to default UTM VM folder) | |
| Add CD/DVD drive |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| setopt PROMPT_SUBST | |
| PROMPT='%F{cyan}MacBook-Pro%f:%F{green}%1~%f %F{yellow}$(parse_git_branch)%f$ ' |
| ## FZF settings & functions for fish; collected with attribution and modified. | |
| # These rely on `git lg`; from git's config: | |
| # lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' | |
| # They also rely on the following being installed: | |
| # - bat | |
| # - choose | |
| # - delta | |
| # - exa | |
| # - fd |
| // source https://github.com/apollographql/apollo-client/blob/master/src/react/hooks/utils/useDeepMemo.ts | |
| import { useRef } from 'react'; | |
| import { equal } from '@wry/equality'; | |
| /** | |
| * Memoize a result using deep equality. This hook has two advantages over | |
| * React.useMemo: it uses deep equality to compare memo keys, and it guarantees | |
| * that the memo function will only be called if the keys are unequal. | |
| * React.useMemo cannot be relied on to do this, since it is only a performance |
EDIT: have a look at conventional commits standard instead, they are saying much of what i'm saying here, but in a formalized way.
This document gathers wisdom from different sources to provide a sensible guide for writing commit messages.
Sources:
The AngularJS contributing guides
Open Source Review Toolkit's contribute guide