Skip to content

Instantly share code, notes, and snippets.

View perXautomatik's full-sized avatar

perXautomatik

View GitHub Profile
@mdavis199
mdavis199 / fix-powershell-context-menu.reg
Created June 25, 2022 11:03 — forked from SCP002/configure-ps1-context-menu.reg
Windows Registry: Run PowerShell scripts with double click. Various tweaks of context menu for .ps1 and .psm1 files. See coments for description.
Windows Registry Editor Version 5.00
; WARNING:
; Uses Visual Studio Code as a standard editor.
; You might change it to your own with default file path, like:
;
; [HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Edit\Command]
; @="\"C:\\Windows\\System32\\notepad.exe\" \"%1\""
;
@perXautomatik
perXautomatik / installed.config
Last active April 20, 2022 08:46 — forked from Decicus/software.md
List of software I often install on new setups
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="7zip" version="21.7" />
<package id="7zip.install" version="21.7" />
<package id="accesschk" version="6.14" />
<package id="accessenum" version="1.32" />
<package id="adexplorer" version="1.51" />
<package id="adinsight" version="1.20" />
<package id="AdoptOpenJDKjre" version="16.0.1.901" />
<package id="adrestore" version="1.10" />
@Trenly
Trenly / README.md
Last active October 1, 2024 11:05
Install Winget to the Windows Sandbox Base Image

This powershell script modifies the Base Image, or the Virtual Hard Disk, which the Windows Sandbox launches upon startup. It will copy the required files to the sandbox and add a registry key which will install them upon startup. By default the script will install the latest stable release of Winget. You can specify to use the latest pre-release with the -PreRelease switch.

When a new version of Winget is released, run this script again to update the installation in the sandbox to the latest version

@willsantos
willsantos / mount-vhd.ps1
Last active July 4, 2024 02:09
Mount VHD
param([switch]$Elevated)
function Test-Admin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}
if ((Test-Admin) -eq $false) {
if ($elevated)
{
# Enable Windows Firewall
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True
# SMB # require elevated privileges #
## Turn on SMB signing and encryption
Set-SmbServerConfiguration -RequireSecuritySignature $True -EnableSecuritySignature $True -EncryptData $True -Confirm:$false -Verbose
## Turn off the default workstations shares
Set-SmbServerConfiguration -AutoShareWorkstation $False -Confirm:$false -Verbose
@perXautomatik
perXautomatik / CreateTxtNote.ahk
Last active October 19, 2021 07:04
AutoHotkey template to act on selected files in active Explorer window - DonationCoder.com
; create companion text file for notes
For Key, vFile in aFiles
{
FileAppend, , % vFile " -- notes.txt"
}
@perXautomatik
perXautomatik / htmlExportToMd
Last active August 23, 2024 09:05
ChromeExtensions
Url: http://rendera.herokuapp.com/
@perXautomatik
perXautomatik / BookmarkHub
Last active October 4, 2022 09:01
OperaGxWorkPersonal
This file has been truncated, but you can view the full file.
{"browser":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 OPR/86.0.4363.64","version":"0.0.4","createDate":1653746493189,"bookmarks":[{"children":[{"children":[{"children":[{"title":"Twitch","url":"https://www.twitch.tv/"},{"title":"Discord","url":"https://discordapp.com/"},{"title":"Reddit","url":"https://www.reddit.com/"},{"title":"YouTube","url":"https://www.youtube.com/"},{"title":"GX.games","url":"http://gxc.gg/"},{"title":"\"Tag \"\"industrial\"\" | Bandcamp\"","url":"https://bandcamp.com/tag/industrial?page=4&amp;sort_asc=0&amp;sort_field=pop"},{"title":"[french Ebook BDz] Donjon - 17 Albums | Ebookee Free eBooks Download!","url":"https://ebookee.org/-french-Ebook-BDz-Donjon-17-Albums_87115.html"},{"title":"[WS] Discogs ALL - Mp3tag Forums","url":"https://community.mp3tag.de/t/ws-discogs-all/8641"},{"title":"[WS] Hitparade - Mp3tag Forums","url":"https://community.mp3tag.de/t/ws-hitparade/9158"},{"title":"[WS] Last.fm - Mp3tag Forum
REM ----------------------------------------------------------------------------------------------------------
REM ### Apps and app suggestions
REM ----------------------------------------------------------------------------------------------------------
REM TITLE: Turn Off Automatic Installation of Suggested Apps in Windows 10
REM LINK: https://www.tenforums.com/tutorials/68217-turn-off-automatic-installation-suggested-apps-windows-10-a.html
REM OPTIONS: 0x00000001=On, 0x00000000=Off
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /V "SilentInstalledAppsEnabled" /T "REG_DWORD" /D "0x00000000" /F 1>NUL 2>&1
REM TITLE: Turn Off Suggested Content Settings App Windows 10 Turn Off Suggested Content In Settings
@ninmonkey
ninmonkey / Export Format-Data.ps1
Last active April 12, 2022 09:57
format.ps1xml example : file list
$APP_PATH_ROOT = Get-Item -ea stop $PSScriptRoot
function _exportFormatData {
<#
.synopsis
export formatting and generate file to load from if not existing
#>
param(
# typename
[Parameter(mandatory, valuefromPipeline)]