Skip to content

Instantly share code, notes, and snippets.

View razielanarki's full-sized avatar
👼
עִיר / ἐγρήγοροι

Raziel Anarki razielanarki

👼
עִיר / ἐγρήγοροι
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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:
@djeikyb
djeikyb / docker-goto
Last active December 22, 2022 17:49
custom docker cli command to interactively connect to a container
#!/bin/bash
# official docs:
#
# https://docs.docker.com/engine/extend/cli_plugins/
#
#
# example plugin:
#
# https://github.com/SvenDowideit/docker-cli-plugins/blob/master/docker-env
@ScriptedAlchemy
ScriptedAlchemy / idea.propertie
Last active October 21, 2023 23:21
custom IntelliJ IDEA properties
# custom IntelliJ IDEA properties
editor.zero.latency.typing=true
idea.max.intellisense.filesize=3500
idea.cycle.buffer.size=2048
@ysc3839
ysc3839 / ITrayNotify.cpp
Created October 12, 2017 14:26
Undocumented API ITrayNotify.
#include <tchar.h>
#include <windows.h>
// The known values for NOTIFYITEM's dwPreference member.
enum NOTIFYITEM_PREFERENCE
{
// In Windows UI: "Only show notifications."
PREFERENCE_SHOW_WHEN_ACTIVE = 0,
// In Windows UI: "Hide icon and notifications."
PREFERENCE_SHOW_NEVER = 1,
HMODULE hUser = GetModuleHandleA("user32.dll");
if (hUser)
{
pfnSetWindowCompositionAttribute setWindowCompositionAttribute = (pfnSetWindowCompositionAttribute)GetProcAddress(hUser, "SetWindowCompositionAttribute");
if (setWindowCompositionAttribute)
{
ACCENT_POLICY accent = { ACCENT_ENABLE_BLURBEHIND, 0, 0, 0 };
WINDOWCOMPOSITIONATTRIBDATA data;
data.Attrib = WCA_ACCENT_POLICY;
data.pvData = &accent;
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active April 25, 2025 17:14
Hyperlinks in Terminal Emulators
@samuelcolvin
samuelcolvin / dns_server.py
Last active November 4, 2024 02:17
requires python 3.5+ and dnslib, see https://github.com/samuelcolvin/dnserver for full/better implementation
from datetime import datetime
from time import sleep
from dnslib import DNSLabel, QTYPE, RD, RR
from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT
from dnslib.server import DNSServer
EPOCH = datetime(1970, 1, 1)
SERIAL = int((datetime.utcnow() - EPOCH).total_seconds())