Skip to content

Instantly share code, notes, and snippets.

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

local M = {
"neoclide/coc.nvim",
branch = "master",
build = "yarn install --frozen-lockfile",
}
M.config = function()
-- Some servers have issues with backup files, see #649
vim.opt.backup = false
vim.opt.writebackup = false
@nikhita
nikhita / update-golang.md
Last active January 16, 2025 13:18
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@DavePodosyan
DavePodosyan / elementor-form-turnstile-handler.php
Last active January 16, 2025 13:17
Cloudflare Turnstile Integration for Elementor Forms
<?php
/**
* A simple integration of Cloudflare Turnstile with Elementor Forms, following Elementor’s pattern for reCAPTCHA.
*
* Instructions:
* 1. Add this file to your WordPress theme directory.
* 2. Include the file in your theme's `functions.php` file using:
*
* // For child themes:
#include <stdio.h>
#include <windows.h>
#pragma comment(lib, "winmm.lib")
void Nothing(WORD wKey)
{
}
void PrintKey(WORD wKey)
@ruvnet
ruvnet / Contextual Retrieval system.md
Last active January 16, 2025 13:12
Contextual Retrieval system

Contextual Retrieval System with Supabase Storage

Overview

This Contextual Retrieval System enhances the accuracy and relevance of information retrieval by incorporating context into the search process. It leverages OpenAI's GPT-4 model, LlamaIndex, FastAPI, LiteLLM, and uses Supabase for both vector storage and document storage and management.

Key Components

  1. LiteLLM: For flexible integration with OpenAI's GPT-4 model.
  2. Supabase Postgres with pgvector: For vector storage, enabling efficient similarity searches.
@Alex-Schaefer
Alex-Schaefer / bambu-ssdp-discovery.py
Last active January 16, 2025 13:11
Python implementation to send a fake SSDP discovery message to Bambu Studio or Orca Slicer
# Derived from this: https://github.com/gashton/bambustudio_tools/blob/master/bambudiscovery.sh
# Python implementation without need for linux
# Send the IP address of your BambuLab printer to port 2021/udp, which BambuStudio is listens on.
# Ensure your PC has firewall pot 2021/udp open. This is required as the proper response would usually go to the ephemeral source port that the M-SEARCH ssdp:discover message.
# But we are are blindly sending a response directly to the BambuStudio listening service port (2021/udp).
# Temporary solution to BambuStudio not allowing you to manually specify the Printer IP.
# Usage:
@usr-ein
usr-ein / Dockerfile
Last active January 16, 2025 13:11
Optimal multistaged Dockerfile for poetry
# syntax=docker/dockerfile:1
# Keep this syntax directive! It's used to enable Docker BuildKit
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865
# but I try to keep it updated (see history)
################################
# PYTHON-BASE
# Sets up all our shared environment variables
################################
@gutasiadam
gutasiadam / collect_macsec_data.py
Created October 17, 2024 16:33
Parses macsec stats output and returns data in JSON format
import json
import subprocess
import re
def get_macsec_stats():
result = subprocess.run(['ip','-s','macsec','show'], capture_output=True, text=True)
return result.stdout
def parse_macsec_output(output):
data = {}
txsc_pattern = r'TXSC: (.*?)(?=RXSC:|$)'