My neomutt config files are huge and even their path is cusmotized with $VIMINIT.
I'm just sharing parts about auto_view and HTML mailcap, please update your config accordingly.
| javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard |
| #!/usr/bin/env bash | |
| # @author : Anthony Bourdain | |
| # @credit : https://stackoverflow.com/a/55073732/2940319 | |
| # @usage : | |
| # - `rgbtohex 17 0 26` ==> 1001A | |
| # - `rgbtohex -h 17 0 26` ==> #1001A | |
| function rgbtohex () { | |
| addleadingzero () { awk '{if(length($0)<2){printf "0";} print $0;}';} | |
| if [[ ${1} == "-h" ]]; then |
| -- this script periodically deactivates xscreensaver | |
| -- when video playback is active | |
| local function heartbeat() | |
| if mp.get_property_native("pause") or | |
| mp.get_property_native("idle") or | |
| not mp.get_property_native("vo-configured") then | |
| return | |
| end |
To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.
On a Linux system, the ESP is typically mounted on /boot/efi or /efi. Whithin you should also find a EFI directory, e.g. /boot/efi/EFI or /efi/EFI. This article assumes that the ESP is mounted on /efi and that the /efi/EFI directory exists. You can replace that with the mount point your system uses.
The HP-specific files are located in /efi/EFI/HP or /efi/EFI/Hewlet-Packard. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.
| #!/bin/sh | |
| DEFER= | |
| defer() { | |
| DEFER="$*; ${DEFER}" | |
| trap "{ $DEFER }" EXIT | |
| } |
| --[[ | |
| mpv 5-bands equalizer with visual feedback. | |
| Copyright 2016 Avi Halachmi ( https://github.com/avih ) | |
| License: public domain | |
| Default config: | |
| - Enter/exit equilizer keys mode: ctrl+e | |
| - Equalizer keys: 2/w control bass ... 6/y control treble, and middles in between | |
| - Toggle equalizer without changing its values: ctrl+E (ctrl+shift+e) |
| docker run \ | |
| --name {{printf "%q" .Name}} \ | |
| {{- with .HostConfig}} | |
| {{- if .Privileged}} | |
| --privileged \ | |
| {{- end}} | |
| {{- if .AutoRemove}} | |
| --rm \ | |
| {{- end}} | |
| {{- if .Runtime}} |