Skip to content

Instantly share code, notes, and snippets.

@alexxoid
alexxoid / Service KMS
Created April 3, 2024 16:51 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@alexxoid
alexxoid / Self-Signed SSL with SAN.md
Created June 30, 2023 21:54 — forked from KeithYeh/Self-Signed SSL with SAN.md
Create self-signed SSL certificate with SubjectAltName(SAN)

How to create a self-signed SSL Certificate with SubjectAltName(SAN)

After Chrome 58, self-signed certificate without SAN is not valid anymore.

Step 1: Generate a Private Key

openssl genrsa -des3 -out example.com.key 2048

Step 2: Generate a CSR (Certificate Signing Request)

@alexxoid
alexxoid / free-database-hosting.md
Created August 12, 2021 08:16 — forked from bmaupin/free-database-hosting.md
Free database hosting
http://paste.ubuntu.com/23654022/
Office手动激活命令:
cd C:\Program Files\Microsoft Office\Office15
cscript ospp.vbs /sethst:192.168.123.1
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
windows手动激活命令
@alexxoid
alexxoid / firewall
Created March 16, 2018 03:17 — forked from CRImier/firewall
This is a Bash script (wrapper around iptables) that creates a simple firewall from one interface to another. It is designed for portable servers that might be getting Internet internet from 3G/wireless/wired connection and, therefore, uplink interface changes, but local does not, so local interface name is hard-coded. It is invoked like "firewa…
#!/bin/bash
#NAT script from !!!!!!!!!!!!!!!, modified by CRImier
# Exit status 0 if operation is correct
# Exit status 1 if trying to use last interface used when running for the first time
# Exit status 2 if interface doesn't exist
EIF=''
IIF='eth0'
PATH=/usr/sbin:/sbin:/bin:/usr/bin
LOGFILE=/etc/nat-if.conf
touch $LOGFILE
@alexxoid
alexxoid / 10-mount
Created August 26, 2017 11:59 — forked from muresan/10-mount
Script to automatically mount NTFS filesystems for OpenWRT
#!/bin/bash
# filename: /etc/hotplug.d/block/10-mount
# automatically mount ntfs volumes into $BASEDIR with $LABEL or $UUID, depending on what's available.
# to be used with OpenWRT.
BASEDIR=/media
export PATH=/usr/bin:/usr/sbin:/bin:/sbin
@alexxoid
alexxoid / OpenWRT.Armbian.OPZ
Created July 7, 2017 04:14 — forked from praveenbm5/OpenWRT.Armbian.OPZ
OpenWRT on Orange Pi Zero using Armbian uBoot and Kernel
Guide:
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted.
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware.
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt