Skip to content

Instantly share code, notes, and snippets.

View MarkDarwin's full-sized avatar

Mark Darwin MarkDarwin

View GitHub Profile
@Bill-Stewart
Bill-Stewart / FixUnquotedServicePaths.js
Last active February 5, 2025 17:31
FixUnquotedServicePaths.js
// FixUnquotedServicePaths.js
// WSH script written by Bill Stewart (bstewart AT iname.com)
//
// Corrects each service on the local machine that has an "unquoted service
// path" and logs its actions to the application event log.
//
// The idea here is to run this as a computer startup script, so that unquoted
// service paths will get identified and corrected automatically at every
// reboot.
//
@rtfpessoa
rtfpessoa / nextdns.js
Last active January 10, 2025 04:16
nextdns.io Block Youtube Ads
// ID of the config, e.g. A1234BCD.
const configID = "A1234BCD";
// API key, found at the bottom of your account page in https://my.nextdns.io/account
const APIKey = "xxxxxxxxxxxxxxxxxxxxxxxxxx";
// Mark true or false. If true, failed links will be retried 3 times at progressively increasing intervals.
// If false, failed links will not be retried.
const retryFailedLinks = true;
// Time delay between requests in milliseconds.
// 800 seems to not give any errors but is rather slow while anything faster will give errors (in limited testing).
// If you want to go lower, it is recommended that "retryFailedLinks" is true
@bluewalk
bluewalk / GetNordVPNWireGuardDetails.md
Last active June 2, 2025 09:33
Getting NordVPN WireGuard details

About

Instructions to obtain WireGuard details of your NordVPN account. These can be used to setup a WireGuard tunnel on your router to NordVPN.

Source: https://forum.gl-inet.com/t/configure-wireguard-client-to-connect-to-nordvpn-servers/10422/27

Prerequisites

If you have any linux machine, use that or install a vm if you don't have one.

Get their official linux app installed. Make sure you have wireguard installed too. And set the used technology to Nordlynx by running nordvpn set technology nordlynx

@tylerapplebaum
tylerapplebaum / Add-TestUsers.ps1
Last active May 10, 2025 00:19
Create test users in Active Directory with realistic data from https://randomuser.me
<#
.SYNOPSIS
Create realistic-looking Active Directory accounts.
Written by Tyler Applebaum.
Version 0.2
Last Updated Jun 17 2020
.LINK
https://gist.github.com/tylerapplebaum/d692d9d2e1335b8b111927c8292c5dac
https://randomuser.me/