Skip to content

Instantly share code, notes, and snippets.

View judaew's full-sized avatar

Vadym-Valdis Yudaiev judaew

  • Ukraine, Poltava
  • 07:48 (UTC +02:00)
View GitHub Profile
@judaew
judaew / keychron_k2.adoc
Last active November 4, 2024 13:48
Keychron K2 Manual

Keychron K2 Manual

Connect Bluetooth

On the side of the keyboard, switch the toggle to Bluetooth. Press fn+1 3 seconds and pair with device named Keychron K2.

  • fn+1 connect to 1st device

  • fn+2 connect to 2nd device

  • fn+3 connect to 3rd device

@judaew
judaew / synthetic.5
Last active October 21, 2021 08:39
synthetic.conf
SYNTHETIC.CONF(5) BSD File Formats Manual SYNTHETIC.CONF(5)
NAME
synthetic.conf -- synthetic symbolic link and directory manifest
DESCRIPTION
synthetic.conf describes virtual symbolic links and empty directories to
be created at the root mount point. Because the root mount point is read-
only as of macOS 10.15, physical files may not be created at this loca-
tion. All writeable paths must reside on the data volume, which is
@judaew
judaew / install-clamav-osx.md
Last active November 4, 2022 14:43
How to install and setup clamav on MacOS with MacPorts

How to Install clamav on MacOS with MacPorts

sudo port install clamav
sudo cp /opt/local/etc/freshclam.conf.sample /opt/local/etc/freshclam.conf

Open freshclam.conf and delete the "Example" line:

@judaew
judaew / go2port
Created November 14, 2021 13:09
Bash completion for go2port
_go2port () {
local cur
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
local -a opts=(
-d
-h
-v
--debug
# Init machine
podman machine init
# Test machine
podman machine start podman-machine-default
podman machine stop podman-machine-default
# Remove machine and clean-up (if you don't use this port)
podman machine rm podman-machine-default
rm -rf ${HOME}/.local/share/containers