Skip to content

Instantly share code, notes, and snippets.

View kosikond's full-sized avatar

Ondrej Kosik kosikond

  • London
  • 19:12 (UTC)
View GitHub Profile
@James-Ansley
James-Ansley / pi5_fan_controller.py
Last active September 8, 2025 00:38
Raspberry Pi 5 Auto Fan Controller
from enum import Enum
import time
TEMP_PATH = "/sys/devices/virtual/thermal/thermal_zone0/temp"
FAN_PATH = "/sys/class/thermal/cooling_device0/cur_state"
class FanSpeed(Enum):
OFF = 0
LOW = 1
@erwinkersten
erwinkersten / winget-cli_on_W2k22.md
Last active November 27, 2025 02:42
Install WIndows Package Manager (winget) on Windows Server 2022

Install WIndows Package Manager (winget) on Windows Server 2022

  1. Download and install microsoft-ui-xaml
  2. Download WinGet an License file
  3. Install WinGet with License

Execute the following in Windows PowerShell (PowerShell 7 doesn't support the Appx module)

#Update versions, see https://github.com/microsoft/microsoft-ui-xaml/releases (grab Microsoft.UI.Xaml Winget may require a specific version) 
@hyperupcall
hyperupcall / settings.jsonc
Last active October 11, 2025 12:44
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@rosswf
rosswf / k3s.md
Last active September 11, 2025 01:47
Deploy HA k3s with kube-vip and MetalLB using k3sup

Prerequisites

kubectl

Install the required tools for deploying and controlling k3s.

Installation Docs:

# Download
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
@tmo1
tmo1 / nextcloud-caddy-docker.md
Last active November 21, 2025 02:14
Nextcloud behind Caddy as a reverse proxy, using Docker

Introduction

This is a guide to deploying Nextcloud behind a Caddy reverse proxy, both running in Docker containers (an official Nextcloud one and a caddy-docker-proxy one), with the goal of implementing as much as possible via docker-compose files. This is much more difficult than it should be, for a variety of reasons:

  • As with Docker versions of software in general, documentation of the software does not always apply to the Docker versions, and the Docker documentation does not always include the Docker equivalent ways of doing things.

  • Docker images do not always expose the desired configuration knobs of the underlying software.

  • Nextcloud requires special configuration to run correctly behind a reverse proxy (and again, some of the instructions for this configuration requires modification for

@sanskritkm
sanskritkm / VMware Fusion Player 12 license key.txt
Last active January 25, 2024 02:29
VMware Fusion Player 12 license key
If you'r using MAC Intel CPU you want to use VMware to virtual your desired OS such Windows or Ubuntu on the MAC OS you need to download VMware Fusion Player first then it has two version Pro and Player, the Player version is free for personal use but you need to create VM account to download and licence key.
You can create account to download yourself here:
https://customerconnect.vmware.com/group/vmware/evalcenter?p=fusion-player-personal
If you don't want to create account to get license, you can try below original license key for VMware Fusion Player:
COMPONENT:
VMware Fusion Player – Personal Use
@rajibdpi
rajibdpi / Office 2019 Professional Plus Product Key
Last active December 5, 2025 12:26 — forked from moonsbtt/Office 2019 Professional Plus Product Key
Office 2019 Professional Plus Product Key
New Methiod to Activate Windows/MS Office 2010/2013/2016/2019
If you have already intalled MS Office Or Download from bellow link
Download setup file for MS Office Pro Plus 2019 https://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/media/en-us/ProPlus2019Retail.img
Activate Windows / Office ?
📌PowerShell Method For Windows 8, 10, 11:
Click the Start Menu, type PowerShell, then open it.
Copy and paste the code below, then press enter.
irm https://get.activated.win | iex
@mercuryrx
mercuryrx / kms.md
Last active February 22, 2025 17:17
KMS Keys/Product Keys for Windows/Windows Server

Here, you can find the Product Keys for activating Windows.

Warming: This won't work with Home editions. Please first update to Professional edition if you want to activate Windows.

How do I activate Windows?

  1. Search for "Command Prompt" in the search box
  2. Right Click on the Command Prompt entry
  3. Press "Run as Administrator", then press yes.
  4. Type these commands one by one:
@chabala
chabala / using-google-takeout.md
Last active November 11, 2025 15:19
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -
@Lory1990
Lory1990 / gitlab-ci-sftp-linear
Created May 26, 2020 06:33
Gitlab Pipeline code for a linear deployment via SFTP
stages:
- Load Libraries
- Build
- Deploy Test
- Deploy Prod
Load Libraries:
image: node:lts-slim
when: manual
stage: Load Libraries