Skip to content

Instantly share code, notes, and snippets.

@roustem
roustem / Setting-up-Windows-WSL1.md
Last active March 22, 2025 17:18
Setting-up-Windows-WSL1
@TScalzott
TScalzott / Load-UserHives.ps1
Created December 18, 2018 22:48
Load/unload all discovered user hives into the registry
<#
.SYNOPSIS
Load/unload all discovered user hives into the registry
.DESCRIPTION
For the local machine, load all discovered user hives. Provide the option to then come
back and unload those same hives.
Why might you want to do this:
@markcerv
markcerv / jwtsc-webdevs-2018-v1.txt
Last active January 16, 2020 11:28
BoxStarter - 2018 - for windows 10 machine
# This script is setup to use http://boxstarter.org/WebLauncher
# Easiest way is to use IE, and call up this URL:
#
# http://boxstarter.org/package/nr/url?<<<THE ___RAW__ URL OF THIS GIST>>>
#
# or fireup Boxstarter Shell, and then type in:
# Install-BoxstarterPackage -PackageName <<<THE ___RAW__ URL OF THIS GIST>>> -DisableReboots
#
# Want to find more package? visit: https://chocolatey.org/search?q=
@ArseniySavin
ArseniySavin / machine.config
Last active February 4, 2025 15:28
Tuning .NET Application Performance and IIS
<!--
Path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
Description: The setting calculate using this article https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ff647813(v=pandp.10)
The values set out of youre hardware.
Example for hardware: CPU 4 Core, RAM 8 Gb
-->
<system.web>
<!--<processModel autoConfig="true" />-->
<processModel autoConfig="False" maxWorkerThreads="1000" maxIoThreads="1000" minWorkerThreads="1000" minIoThreads="1000" />
<httpRuntime appRequestQueueLimit="50000" minFreeThreads="999" minLocalRequestFreeThreads="999"/>
Function Set-AutoLogon{
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)]
[String[]]$DefaultUsername,
[Parameter(Mandatory=$True,ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)]
[String[]]$DefaultPassword,
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active October 24, 2025 11:14
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@shawndeprey
shawndeprey / script.md
Created October 3, 2018 02:40
Script for New World Video

What's up Ladies & Gentlemen of the internet? Amazon's New World is currently in closed-beta with a strict NDA. Those with closed-beta access have been able to get a first look at the game, but for the rest of us, we've only had speculation. That is until now of course as a player in that closed-beta leaked over 2 hours of gameplay on pornhub. What that leaked footage gives us is a great window into where Amazon is going with New World. This is Radical Edward for Less Than Epic giving you my first take on the leaked footage so strap in and let's get started.

So first, what is the game? Amazon's New World is an MMORPG about settling an alternate colonial America. That is, you are a 17th centry settler moving to new and untouched lands filled with magic, wildlife and monsters. What you will be doing in the game is exactly what a settler would do, settle. From the leaked footage we see what looks to be a new player who is hunting, gathering, crafting and interracting with other real players. We don't get to see

@BertMueller18
BertMueller18 / smb4.conf
Created September 18, 2018 13:04 — forked from cathode/smb4.conf
# /usr/local/etc/smb4.conf
# Samba 4.1 Configuration file
[global]
# SPECIFIC SETTINGS FOR THIS MACHINE
netbios name = ZNAS1
# Basic settings
workgroup = MYDOMAIN
realm = MYDOMAIN.local
@securifybv
securifybv / Shell.Explorer open file.ps1
Last active April 8, 2023 06:46
PowerShell script that creates a Word document containing an embedded Internet Explorer object. It uses Packager to create an object that looks like an embedded file, clicking the object will trigger a file download. See also: https://securify.nl/blog/SFY20180801/click-me-if-you-can_-office-social-engineering-with-embedded-objects.html
# target file path
$filename = [Environment]::GetFolderPath('Desktop') + '\WebBrowser.docx'
# path to open
#$path = 'c:\windows\system32\calc.exe'
$path = 'https://securify.nl/blog/SFY20180801/thisisfine.url'
# the temp file is used for creating the icon
$tmpfile = "$env:TEMP\Totally Safe.txt"
@sheldonhull
sheldonhull / RClone-Fixing-Duplicates-GoogleDrive.ps1
Created August 20, 2018 04:50
Fixing Duplicates in Google Drive using Rclone to Dedupe
<#
RCLONE HELP
https://rclone.org/commands/rclone_dedupe/
Useful options I choose
--max-depth int
--dry-run
--log-file=PATH
--tpslimit 1 # can help prevent rate limiting errors you might see if you run verbose x2, ie `-vv`
--checkers 1