- Copy - Ctrl C
- Paste - Ctrl V
- Cut - Ctrl X
- Undo - Ctrl Z
- Word Left/Right Ctrl Left/Right
- Delete Word Left Ctrl Backspace
Tested on Windows 11 / mpv.exe is in user path.
Running mpv via Electron on Windows, assuming the goal is to run MPV as a standalone so the Electron app can close without affecting mpv.
As opposed to exec, we use spawn as the method to fork the process, spawn returns a stream of io, in this example, we 'ignore' stdio.
| import { useState, useCallback } from 'react'; | |
| interface History<T> { | |
| history: T[]; | |
| head: T | undefined; | |
| previous: T | undefined; | |
| next: T | undefined; | |
| addItem: (item: T) => void; | |
| previousItem: () => void; | |
| nextItem: () => void; |
| Emacs defface | htmlfontify css class |
|---|---|
| font-lock-warning-face | warning |
| font-lock-function-name-face | function-name |
| font-lock-function-call-face | function-call |
| font-lock-variable-name-face | variable-name |
| font-lock-variable-use-face | variable-use |
| font-lock-keyword-face | keyword |
| font-lock-comment-face | comment |
| font-lock-comment-delimiter-face | comment-delimiter |
| import sqlite3 | |
| import os | |
| import json | |
| import argparse | |
| import datetime | |
| import sys # For sys.platform | |
| import shutil # For copying database, if enabled | |
| import configparser # For parsing profiles.ini | |
| def get_firefox_profile_path(profile_name=None, newest=False): |
Sync a Tab to a Directory with copyq, not setable from the cli tool, but is possible in the config.
(linux/macos: ~/.config/copyq/copyq.conf | windows: %APPDATA%\copyq\copyq.conf )
Config will default to 1 tab called &clipboard. The & marks the letter to activate with Alt
| #!/bin/bash | |
| curl -s https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json \ | |
| | jq -r 'to_entries | map(select(.key != "METADATA")) | .[] | "\"\(.key)\": \(.value | @json),"' \ | |
| | sed 's/^/ /' \ | |
| | awk 'BEGIN {print "export const NerdFontGlyphs = {"} {print} END {print "}"}' \ | |
| > nerd-font-glyphs.js |
To run a python script which has dependencies, with uv without extra steps, just execute it.
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = [<array of string names of required modules>]
# ///
# and the rest of the script goes here.Follow the setup instructions to install gopass
Next install gopassbridge-dark extension on Firefox.
Download gopass-jsonapi.exe from https://github.com/gopasspw/gopass-jsonapi/releases
Hi all, Please consider donating to this or any of my many of opensource projects.
Getting it running on Windows is fairly simple, but the browser extension PassFF with its host script, PassFF host didn't work for me after running the installer install_host_app.bat file.
I found gopass which is a Go implementation of the original pass script, and seems to be 100% compatible.