Skip to content

Instantly share code, notes, and snippets.

View webknjaz's full-sized avatar
🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine

🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) webknjaz

🇺🇦
#StandWithUkraine: https://github.com/vshymanskyy/StandWithUkraine
View GitHub Profile

Learn Git

Please read&learn the following:

Learn to write good commit message and description

According to common commit style guides, it is required to write messages in an imperative manner. Make them actionable. Also avoid using -m as you

$ MACOS_VM_VERSION=12.4
$ MACOS_VM_CODENAME=$(softwareupdate --list-full-installers 2>&1 | grep "Version:\s$(echo "${MACOS_VM_VERSION}" | sed 's#\.#\\.#g')[0-9.]*," | awk -F' macOS ' '{print$2}' | awk -F, '{print$1}' | uniq)
$ MACOS_VM_NAME="ansible-core-ci-template-macos-${MACOS_VM_VERSION}-playground"
$ MACOS_INSTALLER_NAME="Install macOS ${MACOS_VM_CODENAME}"
$ MACOS_INSTALLER_VOLUME_NAME="${MACOS_VM_CODENAME}"-"${MACOS_VM_VERSION}"
$ MACOS_INSTALLER_VOLUME_PATH="/Volumes/${MACOS_INSTALLER_VOLUME_NAME}"
$ MACOS_DOWNLOADED_INSTALLER_APP_PATH="/Applications/${MACOS_INSTALLER_NAME}.app"
$ MACOS_CREATEINSTALLMEDIA_BIN_PATH="${MACOS_DOWNLOADED_INSTALLER_APP_PATH}/Contents/Resources/createinstallmedia"
$ MACOS_ORIGINAL_INSTALLER_VOLUME_PATH="/Volumes/${MACOS_INSTALLER_NAME}"
@webknjaz
webknjaz / azure-devops-drop-batched-lines.js
Created June 27, 2022 14:51
This is a DevTools Console snippet for hiding the `Batched CI for` lines from the output
for (const line of $x('/html/body/div[1]/div/div/div[2]/div[2]/div[2]/div/div[5]/div/div/div/div/table/tbody/a')) {
if (!line.querySelector('.fontSizeMS>.text-ellipsis').textContent.includes("Batched CI for "))
{
continue;
}
line.style.display = 'none'; // don't .remove() because it breaks the page
}
@webknjaz
webknjaz / MPRIS.md
Created May 2, 2022 23:26
Awesome WM integration with MPRIS

MPRIS is a mechanism for controlling players (including in-browser ones). It is usually bound to multimedia key presses. DEs usually have this integrated but WMs don't. To make this work in Awesome WM, playerctl can be used. It's subcommands just need to be bound to the multimedia keys.

  1. Reproduce the launcher folder layout after the initial data sync
  2. Fingerprint
  3. Font size -> XL
  4. Night Mode / Vision Comfort / Digital Wellbeing
  5. Bitwarden
    • Set up as a Passkey manager
    • Set up buffer auto-clean
    • Set up refresh on pull
  6. FreeOTP+
  7. MojeID klíč
@webknjaz
webknjaz / wifi-6-mesh.md
Last active January 13, 2025 17:37
My research on building a well-covered high-speed network for the future new house with focus on effortless Wi-Fi client roaming with 802.11ax (tri-band WiFi 6E with 8x8 MU-MIMO capabilities), 3 APs, 802.11r, 802.11k, 802.11v, 802.11s, 802.11w and 10GB-compatible CAT6 Ethernet backchannel

💭 Thoughts

I want to have:

  • 3 APs that would approximately evenly cover:
    • ground floor
    • second floor
    • garage space
    • bonus: reach some of the backyard/garden
  • Multipath connections between the APs
  • Bonded channels between the APs and the managed network switches (LACP 1+1 = 2Gbps)