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
fn marine_line() -> String { | |
use rand::{seq::SliceRandom, Rng}; | |
let marine_life = ["🐳", "🐠", "🦈", "🐙", "🐡", "🐬", "🐟", "🦀", "🐋"]; | |
let water = [ | |
"\x1B[38;2;0;100;200m≈\x1B[0m", | |
"\x1B[38;2;10;110;210m≈\x1B[0m", | |
"\x1B[38;2;20;120;220m≈\x1B[0m", | |
"\x1B[38;2;30;130;230m≈\x1B[0m", | |
"\x1B[38;2;40;140;240m≈\x1B[0m", |
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-viewer
Once that's installed should be able make a call remote-viewer
with a pve-spice.vv file downloaded from proxmox web interface
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.