Skip to content

Instantly share code, notes, and snippets.

View hermesthecat's full-sized avatar
💭
I may be slow to respond.

Kerem hermesthecat

💭
I may be slow to respond.
View GitHub Profile
@lucmsilva651
lucmsilva651 / BatchGotAdmin.bat
Created December 23, 2023 10:54
BatchGotAdmin - Admin access inside a batch file
@echo off
REM Credits to https://stackoverflow.com/a/10052222
REM And https://sites.google.com/site/eneerge/scripts/batchgotadmin
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
#!/bin/bash
# @Author Cyril Aknine <darylounet@gmail.com>
# Sophos XG Let's Encrypt certificate update script
# It uses huge workaround due to Sophos XG limitations :
# - can't update a certificate when it's used by WAF
# - can't update FirewallRule trough API to use another certificate
# - can't SCP a file trough SSH
# So ok it's ugly, but it's not the only one...
SOPHOS_IP="192.168.0.254"
@santiagobasulto
santiagobasulto / README.md
Last active February 17, 2025 16:05
Download HumbleBundle books in batch with a simple Python script.

Download HumbleBundle books

This is a quick Python script I wrote to download HumbleBundle books in batch. I bought the amazing Machine Learning by O'Reilly bundle. There were 15 books to download, with 3 different file formats per book. So I scratched a quick script to download all of them in batch.

(Final Result: books downloaded)

@nguyenanhtu
nguyenanhtu / SSLXampp.md
Last active March 1, 2026 23:47
Guide to configure SSL in XAMPP for Windows

How to test 'https' in XAMPP for localhost ? I will guide you

Menu

  • Create certificate
  • Config Apache to access https instead of http
  • Config mod rewrite to generate SSL url
  • Config Virtual host to test site

Step 1 : Create certificate

  • Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file