Skip to content

Instantly share code, notes, and snippets.

View ergoz's full-sized avatar
😈
let's rock

[riftlab] ErgoZ ergoz

😈
let's rock
View GitHub Profile
@ergoz
ergoz / generate-wildcard-certificate.sh
Last active December 24, 2024 18:09 — forked from dmadisetti/generate-wildcard-certificate.sh
Generate self-signed wildcard SSL certificate for development environment
#!/usr/bin/env bash
# print usage
DOMAIN=$1
if [ -z "$1" ]; then
echo "USAGE: $0 tld"
echo ""
echo "This will generate a non-secure self-signed wildcard certificate for "
echo "a given development tld."
echo "This should only be used in a development environment."
<#
.SYNOPSIS
Imports a .pfx certificate onto a server
http://www.orcsweb.com/blog/james/powershell-ing-on-windows-server-how-to-import-certificates-using-powershell/
Use the given certificate information to load up and import a pfx certificate. This
should be execute on the server that the certificate is going to be imported into.
.PARAMETER CertPath
The physical to a certificate file
<#
.SYNOPSIS
Imports a .pfx certificate onto a server
http://www.orcsweb.com/blog/james/powershell-ing-on-windows-server-how-to-import-certificates-using-powershell/
Use the given certificate information to load up and import a pfx certificate. This
should be execute on the server that the certificate is going to be imported into.
.PARAMETER CertPath
The physical to a certificate file
@ergoz
ergoz / ocserv_hack.go
Created October 26, 2024 15:11 — forked from horsley/ocserv_hack.go
ocserv auth hacking
// ocservFront project main.go
package main
import (
"bufio"
"bytes"
"crypto/tls"
"fmt"
"io"
"io/ioutil"
@ergoz
ergoz / windows_activation.md
Created October 25, 2024 20:57
Activate Windows for free

For Windows 10

Step 1 - Open PowerShell or Command Prompt as administrator

Step 2 - Install KMS client key

slmgr /ipk your_license_key

Replace your_license_key with following volumn license keys according to Windows Edition:

@ergoz
ergoz / gist:7061ecfb1cfe826edd1260311f74c4a6
Created October 25, 2024 20:57 — forked from Dlfaith/gist:0d43be3dfb296bb6260af75ef082faa8
Free Windows Server 2022 Product Key
Free Windows Server 2022 Standard Product Key
HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY
RRNMT-FP29D-CHKCH-GWQP2-DDDVB
44QN4-X3R72-9X3VK-3DWD6-HFWDM
Free Windows Server 2022 Datacenter Product Key
WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Download windows Sever 2022 Evaluation edition:
Windows Server 2022 Evaluation English
@ergoz
ergoz / gist:24037b72275ebab59efe320b65d5139f
Created October 25, 2024 20:57 — forked from Dlfaith/gist:0d43be3dfb296bb6260af75ef082faa8
Free Windows Server 2022 Product Key
Free Windows Server 2022 Standard Product Key
HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY
RRNMT-FP29D-CHKCH-GWQP2-DDDVB
44QN4-X3R72-9X3VK-3DWD6-HFWDM
Free Windows Server 2022 Datacenter Product Key
WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Download windows Sever 2022 Evaluation edition:
Windows Server 2022 Evaluation English
@ergoz
ergoz / certbot.sh
Created October 15, 2024 21:26 — forked from fideloper/certbot.sh
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
@ergoz
ergoz / remove-subscription-banner.sh
Created October 9, 2024 03:06 — forked from mrl22/remove-subscription-banner.sh
Proxmox Mail Gateway - Disable Subscription Key Pop Up
#!/bin/bash
sed -i 's#checked_command: function(orig_cmd) {#checked_command: function(orig_cmd) { return true;#ig' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
@ergoz
ergoz / example.go
Last active October 8, 2024 11:52 — forked from lmammino/example.go
Ldap filter beautifier
package main
import (
"fmt"
"./ldap"
)
var filter = "(&(&(&(& (mailnickname=*) (| (&(objectCategory=person)(objectClass=user)(|(homeMDB=*)(msExchHomeServerName=*))) )))(objectCategory=user)(department=IT)(physicalDeliveryOfficeName=Amsterdam)))"
func main() {