Skip to content

Instantly share code, notes, and snippets.

View TheUdK's full-sized avatar

UdK TheUdK

View GitHub Profile
@kirelagin
kirelagin / aliexpress-address-hack.md
Last active November 10, 2025 09:00
How to add a Swiss address on AliExpress

Swiss address on AliExpress

How to enter a Swiss address on AliExpress.

The problem

AliExpress has a stupid interface for entering your address – it makes you select the country, then the canton/region/state, then the city, all from drop-down lists. Of course, their drop-down lists are incomplete: e.g., for most cantons in Switzerland, they only have the capital city and nothing else.

@scriptingstudio
scriptingstudio / ConvertTo-HtmlTable.ps1
Last active May 14, 2024 09:18
Simple and robust PowerShell object to HTML table converter that just works
<#
.SYNOPSIS
Creates HTML table from .NET objects.
.DESCRIPTION
This is basic cmdlet, as a helper, to build HTML tables for complex HTML content.
Converts .NET objects into HTML that can be displayed in a Web browser.
This cmdlet works like "ConvertTo-Html -Fragment" but does not have any of its disadvantages, allowing HTML entities in cells, omiting the first column colons and allowing multi-column tables in the List mode, etc.
Features:
- Parameterset autoresolve. There are no predefined parameter sets
- Input data preprocessor: sorting and filtering
@compwiz32
compwiz32 / Backup-DNSZoneData.ps1
Last active June 13, 2024 08:35
DNS backup script
#Set file paths for later use
$BackupFolder = "ServerName\ShareName" # use a valid path like "\\Server01\Backups\DNSBackup"
$DNSServer = "ServerName"
$Credential = Get-PSCredential
# connect to DC as another user
$CIMSession = New-CimSession -ComputerName $DNServer -credential $Credential #Use MS Secret Mgmt to manage your credentials
#Read DNS info from DC
$ShortDate = Get-Date -Format "yyyy-MM-dd"
@wilkinvr
wilkinvr / ms-outlook_actions.xml
Last active September 2, 2025 17:16
ms-outlook:// URI scheme documentation (Outlook for Android 4.2212.2)
<?xml version="1.0" encoding="utf-8"?>
<actions xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:aapt="http://schemas.android.com/aapt">
<action intentName="actions.intent.CREATE_MESSAGE">
<fulfillment urlTemplate="ms-outlook://emails/new{?to,name,body,type}">
<parameter-mapping intentParameter="message.text" required="true" urlParameter="body"/>
<parameter-mapping intentParameter="message.@type" urlParameter="type"/>
<parameter-mapping intentParameter="message.recipient.name" urlParameter="name"/>
<parameter-mapping intentParameter="message.recipient.email" urlParameter="to"/>
</fulfillment>
<fulfillment urlTemplate="ms-outlook://emails/new"/>
@acarril
acarril / global-protect.md
Last active February 3, 2025 06:10
GlobalProtect toggle (start/quit)

Regain control over the annoying GlobalProtect macOS install

I need to use GlobalProtect because it's becoming the only VPN to access resources in my school. The VPN client is simple enough, but it does two annoying things:

  1. Registers itself to autostart on login
  2. Doesn't provide you with a simple 'quit' action

Here I'll show you how I fixed both issues in macOS 12.2 (Monterey).

image

@jborean93
jborean93 / win_powershell_ssh.ps1
Last active May 9, 2025 11:30
Windows PowerShell SSH Remoting Stub
<#
.SYNOPSIS
Windows PowerShell SSH Server Subsystem Shim.
.DESCRIPTION
Used as a basic wrapper for Windows PowerShell that allows it to be used as a target for SSH based remoting sessions.
This allows a PowerShell client to target a Windows host through SSH without having PowerShell 7 installed.
.NOTES
This is experimental and used as a POC.
@scyto
scyto / docker-swarm-architecture.md
Last active November 30, 2025 15:23
My Docker Swarm Architecture

This (and related gists) captures how i created my docker swarm architecture. This is intended mostly for my own notes incase i need to re-creeate anything later! As such expect some typos and possibly even an error...

Installation Step-by-Step

Each major task has its own gist, this is to help with maitainability long term.

  1. Install Debian VM for each docker host
  2. install Docker
  3. Configure Docker Swarm
  4. Install Portainer
  5. Install KeepaliveD
  6. Using VirtioFS backed by CephFS for bind mounts (migrating from glsuterFS - WIP)
@xPaw
xPaw / README.md
Last active November 9, 2025 16:42
Counter-Strike 2 Text Mod
@i128
i128 / TraceDetailedDNSLogs.ps1
Created July 3, 2019 16:50
Simple Script for Parsing Detailed DNS Debug Logs
function Get-DNSDebugLog
{
<#
.SYNOPSIS
This cmdlet parses a Windows DNS Debug log with details.
Author: @jarsnah12
License: BSD 3-Clause
Required Dependencies: None
Optional Dependencies: None
@stephanlinke
stephanlinke / PRTG-FixDependencies.ps1
Last active June 30, 2023 11:03
Update Master Dependencies throughout PRTG
# USE AT YOUR OWN RISK.
# This will reset the dependencies of all ping sensors to be the master object for their parent.
# Your PRTG Server's FQDN, i.e. prtg.acme.com
$PRTGServer = "prtg.acme.com"
# proper message output
Function This-ShowMessage([string]$type,$message){