Skip to content

Instantly share code, notes, and snippets.

View kekneus373's full-sized avatar

kekneus373

View GitHub Profile
@kekneus373
kekneus373 / gdocs-metric.md
Created November 11, 2026 08:06
[SI] Google Docs Change to Metric Units

In Google Docs, change the ruler and image measurements to metric units by setting your Google Account's preferred language to a metric locale (such as UK or Australia) in Personal info > General preferences for the web > Language.

Source

@kekneus373
kekneus373 / nixos-ua-locale.md
Created October 31, 2026 11:34
[NixOS] Українські одиниці вимірювання (СІ) для всієї ОС

Ось як встановити метричні одиниці вимірювання (кілометри, кілограми тощо) замість імперських у NixOS:

Основний спосіб — через налаштування локалі

Ключове поле відповідало за те, що називається LC_MEASUREMENT. Це частина налаштувань локалі, яка керує одиницями вимірювання.

У вашому файлі конфігурації (зазвичай /etc/nixos/configuration.nix або у флеш-конфігурації) додайте наступне:

{ config, lib, pkgs, ... }:
@kekneus373
kekneus373 / full-audio-redirection-xfreerdp.md
Created October 31, 2026 11:31
[xFreeRDP] Full Audio Input / Output Redirection from Client to Host

Redirect Audio Input To Remote Machine xfreerdp

To redirect your local microphone (audio input) to a remote Windows machine using xfreerdp, use the /microphone flag. You can specify the audio backend (e.g., PulseAudio or ALSA) to ensure compatibility with your local system.

Command Syntax

xfreerdp /audio-mode:0 /microphone:sys:pulse /v:<server_ip>
@kekneus373
kekneus373 / h5ai-up.md
Created October 31, 2026 11:10
[h5ai] Remote upload capability

DeepWiki Q&A with Code Context for Repository: lrsjng/h5ai

Q1

i don't see mentions of remote upload capability. is it present in h5ai?

Answer

No — remote upload is not present in the current version of h5ai. It existed once as an experimental feature but was removed.


History

@kekneus373
kekneus373 / samba-creds.md
Created October 28, 2026 20:55
[SAMBA] Store your credentials in a file rather than in a script itself or fstab

mount.cifs Credentials File Syntax

The syntax for a CIFS credentials file requires each field on a separate line with no spaces around the equals sign and no leading byte order mark (BOM). The standard format includes username, password, and an optional domain.

username=your_username
password=your_password
domain=your_domain
@kekneus373
kekneus373 / backup-github-gists.md
Created October 28, 2026 12:26
[GitHub] 3 Popular Ways to Backup your Gists

Backup My GitHub Gists

To backup your GitHub gists, you can use command-line tools that clone each gist (which is essentially a git repository) to your local machine. GitHub Gists are identified by unique IDs, and backing them up preserves full revision history.

Method 1: Using gist-backup (Bash)

A popular bash script, gist-backup, clones all public and private gists.

  1. Generate an OAuth Token: Use your GitHub credentials to get a token with gist scope via the API v3 (note: API v3 requires account password for initial token generation if not using fine-grained PATs, though modern practices prefer personal access tokens).
  2. Store the Token: Set it in your git config:
@kekneus373
kekneus373 / pve-vm-bios.md
Created October 25, 2026 15:43
[QEMU] Access OVMF BIOS Setup

Proxmox VM BIOS Key

For SeaBIOS (default), press ESC rapidly during boot to access the temporary boot menu.

For OVMF/UEFI, press F2 or ESC during boot to enter the full firmware setup interface.

If the console is too fast, edit the VM config file (/etc/pve/qemu-server/<VMID>.conf) to add args: -boot menu=on,splash-time=20000, then fully power off and restart the VM to increase the delay.

Sources:

@kekneus373
kekneus373 / user-startup.md
Created October 25, 2026 15:40
[Windows] User startup folder

Windows User Startup Folder Location

The Windows user startup folder (current user) is located at:

C:\Users\<Username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

To quickly access this folder, press Windows + R, type shell:startup, and press Enter. Alternatively, you can navigate to it via File Explorer using the path %AppData%\Microsoft\Windows\Start Menu\Programs\Startup.

Source

@kekneus373
kekneus373 / nc-snap-headers.md
Created October 19, 2026 06:37
[Nextcloud][SNAP] Some headers are not correctly set...

Some headers are not set correctly on your instance - The Strict-Transport-Security HTTP header is not set (should be at least 15552000 seconds). For enhanced security, it is recommended to enable HSTS.

To enable HTTP Strict Transport Security (HSTS) on a Nextcloud Snap installation, you must use the nextcloud.enable-https command with the -s flag, which is available when setting up Let's Encrypt certificates or custom certificates.

  • Let's Encrypt: HSTS is automatically enabled when you run sudo nextcloud.enable-https lets-encrypt.
  • Custom Certificates: You must explicitly enable HSTS by adding the -s flag to your command:
    sudo nextcloud.enable-https custom -s <path/to/cert.pem> <path/to/privkey.pem> <path/to/chain.pem>
  • Self-Signed: HSTS is disabled by default for self-signed certificates (sudo nextcloud.enable-https self-signed) to prevent browser lockouts, and the -s flag is not supported for this method.
@kekneus373
kekneus373 / nc-snap-set-phone-region.md
Created October 19, 2026 06:34
[Nextcloud][SNAP] Default phone region not set

Nextcloud Snap Default phone region

To resolve the "no default phone region" warning in Nextcloud Snap, you must set the default_phone_region parameter using your country's ISO 3166-1 code (e.g., 'US', 'GB', 'DE').

You can apply this setting via the command line on your host server using the nextcloud.occ tool:

sudo nextcloud.occ config:system:set default_phone_region --value="XX"