An alias that will generate a git commit message staged changes as shown in git-status. Put this alias (section below) in your .gitconfig.
The message generated will be in the format of:
$ git status --porcelain
A file1.py
A file2.py
A file3.py| // Update 2025-05-22 — ported to rand v0.9, using a struct with Display impl rather than returning a string | |
| struct MarineLine; | |
| impl std::fmt::Display for MarineLine { | |
| fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | |
| use rand::{Rng, seq::IndexedRandom}; | |
| let marine_life = ["🐳", "🐠", "🦈", "🐙", "🐡", "🐬", "🐟", "🦀", "🐋"]; | |
| let water = [ |
| import { z } from 'zod'; | |
| import { ZipWriter, BlobReader, configure } from '@zip.js/zip.js'; | |
| // Without this, we get uncaught error due to Workers runtime bug | |
| // See: https://github.com/gildas-lormeau/zip.js/discussions/514 | |
| configure({ | |
| useCompressionStream: false, | |
| }); | |
| // Payload schema that lists the files to be bundled, their filenames and the archive filename |
| import fs from 'node:fs/promises' | |
| import path from 'node:path' | |
| import rimraf from 'rimraf' | |
| import { glob } from 'glob' | |
| import { generate } from 'ts-to-zod' | |
| import ts from 'typescript' | |
| import { v4 as uuidv4 } from 'uuid' | |
| const OUTDIR = 'packages/types/gen' | |
| const { factory } = ts |
| # .github/workflows/pullpreview.yml | |
| name: PullPreview | |
| on: | |
| # the schedule is optional, but helps to make sure no dangling resources are left when GitHub Action does not behave properly | |
| schedule: | |
| - cron: "30 2 * * *" | |
| # optional, only use if you want to have an always-on branch | |
| push: | |
| branches: | |
| - main |
| import dis | |
| import io | |
| from types import CodeType, FunctionType | |
| from typing import Any, Callable, List, NamedTuple, Tuple | |
| # Opcodes | |
| _LOAD_FAST = dis.opname.index('LOAD_FAST') | |
| _LOAD_CONST = dis.opname.index('LOAD_CONST') | |
| _COMPARE_OP = dis.opname.index('COMPARE_OP') | |
| _JUMP_IF_FALSE_OR_POP = dis.opname.index('JUMP_IF_FALSE_OR_POP') |
| /** | |
| * RuntimeGlobalsChecker | |
| * | |
| * You can use this utility to quickly check what variables have been added (or | |
| * leaked) to the global window object at runtime (by JavaScript code). | |
| * By running this code, the globals checker itself is attached as a singleton | |
| * to the window object as "__runtimeGlobalsChecker__". | |
| * You can check the runtime globals programmatically at any time by invoking | |
| * "window.__runtimeGlobalsChecker__.getRuntimeGlobals()". | |
| * |
| import os | |
| import re | |
| date_re = re.compile("(\d\d\d\d)(\d\d)(\d\d).md") | |
| for root, dirs, files in os.walk("./"): | |
| for filename in files: | |
| if filename.endswith(".md"): | |
| new_filename = filename | |
| m = date_re.match(filename) |
| /** | |
| * @module compose | |
| */ | |
| export interface Next { | |
| (): Promise<void>; | |
| } | |
| export interface Composed<C> { | |
| (context: C, next?: Next): Promise<void>; |
Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.
brew tap jeffreywildman/homebrew-virt-manager
brew install virt-viewerOnce that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface