Skip to content

Instantly share code, notes, and snippets.

@BollaBerg
BollaBerg / nmcli-connect-eduroam.sh
Last active October 6, 2026 21:41
Configure Eduroam for NMCLI
# Heavily inspired by https://haluk.github.io/posts-output/2020-10-19-linux/
# Replace <IFNAME> with wifi device name
# Replace <IDENTITY> with student identity (i.e. <USERNAME>@ntnu.no)
# Replace <PASSWORD> with user password
nmcli con add \
type wifi \
ifname <IFNAME> \
con-name eduroam \
ssid eduroam \
@Nezteb
Nezteb / bw-ssh-import.sh
Last active October 6, 2026 21:41
Import existing SSH keys into Bitwarden via the CLI. Related to: https://github.com/bitwarden/clients/issues/18833
#!/bin/bash
# Usage: ./bw-ssh-import.sh "My SSH Key Name" ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub
# Requires `bw` and `jq`.
NAME=$1
PRIVATE_KEY_PATH=$2
PUBLIC_KEY_PATH=$3
if [[ -z "$NAME" || -z "$PRIVATE_KEY_PATH" || -z "$PUBLIC_KEY_PATH" ]]; then
@dc-avasilev
dc-avasilev / info.md
Last active October 6, 2026 21:25
win11pro

ОЕМ или ОЕI не приобретайте, так как лицензия предназначена только для сборщиков ПК и поставляется конечному пользователю только вместе с ПК+ имеет ограничения- данная лицензия привязывается к железу и не может быть перенесена на другое устройство. ESD или BOX не имеет таких ограничений.

Шаг 1. Вы переходите на панель задач и введите cmd =>, затем щелкните правой кнопкой мыши Командная строка и выберите Запуск от имени администратора

Шаг 2: Вы вводите команду« slmgr.vbs /ipk », чтобы установить лицензионный ключ Windows 11.

Здесь вы найдете

@adamchaboryk
adamchaboryk / google-sheets-contrast-checking-with-colour-preview.js
Last active October 6, 2026 21:21 — forked from wjmazza/google-sheets-colour-preview.js
Google Sheets script: WCAG 2 contrast checker with colour preview via hexcodes.
/*
To use this script in a Google Sheets spreadsheet:
1. Open Google Sheets, go to Extensions > App Scripts.
2. Erase everything in the text editor;
3. Change the title to "Check WCAG 2 Contrast";
4. Paste this code in;
5. Click File » Save.
Google Sheets Colour Preview script:
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@athiyadeviyani
athiyadeviyani / tkinterlist.py
Created July 19, 2018 08:27
Python GUI cheatsheet
# BASIC TKINTER CHEATSHEET
# Build basic GUIs with Python
from tkinter import *
from tkinter import scrolledtext
from tkinter import messagebox
from tkinter.ttk import Progressbar
from tkinter import filedialog
from tkinter import Menu
@mjg123
mjg123 / Rotation-to-Partial-Translation-Helix-Gear.scad
Last active October 6, 2026 21:13
Rotation-to-Partial-Translation-Helix-Gear.scad
// Helical-rack / ring-gear assembly, ported from the Desmos 3D graph "Helix"
// (https://www.desmos.com/3d/ak9wyzmimc).
//
// Grey : flat ring with upward-pointing teeth (30 teeth).
// Orange: a straight-toothed band wrapped on a helix (20 teeth per turn,
// 3 turns each side of the contact point). The helix is tilted and
// placed so its teeth mesh with the ring teeth; as the ring turns
// the helix rolls and orbits, and its contact point climbs/descends.
//
// All maths below is a direct transcription of the Desmos expressions.
@aravezskinteeth
aravezskinteeth / skhd-pid-file.md
Created May 3, 2023 19:58
[Skhd] Could not lock pid-file! abort...

How did you get this fixed. Could you elaborate more?

Yes, I solved this permanently and I don't have to use sudo anymore.

Enable root password

  1. Open Spotlight with cmd + space
  2. Type Directory Utility.app
  3. Click the lock icon, then enter your admin account name and password.
  4. Click on Edit--> Enable Root User in the menu bar. Then enter the password that to want to use and save it on a note.
@gwpl
gwpl / grok-mermaid-ascii.md
Last active October 6, 2026 21:11
grok-mermaid: private Rust mermaid.rs, git-dep usage, playground, and the npm ports
@ludostaatopstal
ludostaatopstal / README.md
Last active October 6, 2026 21:05
photofresh - adaptive photo touch-up for phone photos

photofresh

Adaptive, per-photo touch-up for phone photos, running in Docker on a home server. No AI, nothing invented, no sharpening by default. It measures each photo first and only adjusts what needs adjusting.

Built for a Bigme HiBreak Pro + Open Camera, but it works for any phone that saves JPEGs.

What it does to each photo