- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
-- ------------------------------------------------------------------- | |
-- THIS SCRIPT IS NOW DEPRECATED IN FAVOR OF A MORE ROBUST SOLUTION -- | |
-- Please refer to https://github.com/cmer/lg-tv-control-macos/ | |
-- ------------------------------------------------------------------- | |
local tv_identifier = "LG TV" | |
local mac_address = "aa:bb:cc:dd:ee:ff" | |
local tv_found = (hs.screen.find(tv_identifier) ~= nil) | |
local debug = false -- Set to true to enable debug messages |
"""MkDocs hook for performance debugging | |
The idea behind it is to provide a minimal curated performance log for a `mkdocs build` run. | |
Of course anyone can use a proper profiler, but the output often contains a lot of non-critical data | |
that the user has to first filter to get a clearer picture. This hook takes care of this and allows | |
to quickly see where a bottleneck is occurring. It also has a lower overhead than a proper profiler. | |
It creates a file in the current working directory, it can be configured easily with variables set | |
at the bottom of the file. There are also the timing categories included. |
Description | |
This PHP snippet enhances the security and organization of the WordPress media library by enforcing user-specific access controls. | |
It ensures that users can only view, edit, and delete their own uploaded media files, not those uploaded by others. | |
This functionality is particularly useful in multi-author WordPress environments where maintaining individual user | |
media privacy is crucial. By integrating this code, administrators can streamline media management and safeguard user | |
content from unauthorized access. | |
1. Copy this PHP snippet and paste it into your snippet editor, then save it. | |
2. Ensure that you have already granted the user access to the media library in WordPress before using this custom code. |
#!/bin/sh | |
git log --shortstat | grep -E "(Author: )(\b\s*([A-Z]\w+)){2}|fil(e|es) changed" | awk ' | |
{ | |
if($1 ~ /Author/) { | |
author = $2" "$3 | |
} else { | |
files[author]+=$1 | |
inserted[author]+=$4 | |
deleted[author]+=$6 | |
} |
#!/usr/bin/env python | |
# Author: Darius Foo (darius.foo.tw@gmail.com) | |
# License: GPLv3 | |
from z3 import * | |
set_param(proof=True) | |
s = Solver() |
#!/usr/bin/env bash | |
work_dir=/tmp/random-wallpaper | |
lite_archive_url=https://unsplash.com/data/lite/latest | |
lite_archive_path=${work_dir}/unsplash-research-dataset-lite-latest.zip | |
photos_tsv_archive_path=photos.tsv000 | |
photos_tsv_path=${work_dir}/photos.tsv | |
photos_tsv_dir_path=$(dirname ${photos_tsv_path}) | |
declare -a screens=(3840x2160 3840x2160 1920x1080) |
@tool | |
extends EditorScenePostImport | |
class MeshInstanceList: | |
var mesh: Mesh | |
var aabb: AABB | |
var transforms: Array | |
# Converts geometry node instances into MultiMeshInstances | |
func gn_instances_to_mm(parent: Node, scene: Node): |
This customization method references "https://lunar.computer/posts/persistent-customizations-proxmox-60/" and has been fixed and tl;dr by @edisonlee55. | |
Note: If you are logged in as "root", leave out "sudo" in the commands below. | |
1. Create folder "/usr/share/custom/" and "/usr/share/custom/backup" | |
$ sudo mkdir /usr/share/custom | |
$ sudo mkdir /usr/share/custom/backup | |
2. Backup "proxmoxlib.js" | |
$ sudo cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/custom/backup/ |
CTRL + A
: Move the cursor to the beginning of the line
CTRL + E
: Move the cursor to the end of the line
OPTION + Left Arrow
: Move the cursor one word backward
OPTION + Right arrow
: Move the cursor one word forward
Left Arrow
: Move the cursor one character backward
Right Arrow
: Move the cursor one character forward