Snippets Collections
setx SENDGRID_API_KEY the_key_you_copied_from_SendGrid
# Edit this file: 
#  C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\Preferences
# and add this text before last "}":
#  "protocol_handler":{
#  "excluded_schemes":{
#    "<custom protocol>":false
#  }}

## chrome_no_prompt_custom_url:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Internet Explorer\ProtocolExecute\rp3]
for ($num = 1 ; $num -le 10 ; $num++) { mkdir "your-prefix-$num"}
Start-Process powershell.exe -verb runAs -ArgumentList '-NoExit', '-Command', 'cd <PATH>'
ECHO Delete Folder: %CD%?
CD /
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Windows Terminal.lnk")
$Shortcut.TargetPath = "$env:LOCALAPPDATA\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe\wt.exe"
$bytes = [System.IO.File]::ReadAllBytes("$Home\Desktop\Windows Terminal.lnk")
$bytes[0x15] = $bytes[0x15] -bor 0x20 #set byte 21 (0x15) bit 6 (0x20) ON
[System.IO.File]::WriteAllBytes("$Home\Desktop\Windows Terminal.lnk", $bytes)
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
sudo apt-get -y install xfce4 && sudo apt-get -y install xubuntu-desktop

sudo apt-get -y install xrdp

echo xfce4-session > ~/.xsession

sudo service xrdp restart

ifconfig | grep inet

<i>Then connect to the IP the is returned by the last command</i>

<img src=""></img>
LOG=nightly-`date '+%Y-%m-%d_%H:%M:%S'`.log

rsync -av --delete --exclude '$RECYCLE.BIN' --exclude 'System\ Volume\ Information' --exclude 'found.000' --exclude 'Recovery' $SOURCE $DESTINATION | tee ~/logs/$LOG
@echo off
title Activate Windows 10 (ALL versions) for FREE - =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Education&echo - Windows 10 Enterprise&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&set i=1&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >nul||cscript //nologo slmgr.vbs /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 >nul||cscript //nologo slmgr.vbs /ipk YYVX9-NTFWV-6MDM3-9PT4T-4M68B >nul||cscript //nologo slmgr.vbs /ipk 44RPN-FTY23-9VTTB-MP9BX-T84FV >nul||cscript //nologo slmgr.vbs /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 >nul||cscript //nologo slmgr.vbs /ipk 2F77B-TNFGY-69QQF-B8YKP-D69TJ >nul||cscript //nologo slmgr.vbs /ipk DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ >nul||cscript //nologo slmgr.vbs /ipk QFFDN-GRT3P-VKWWX-X7T3R-8B639 >nul||cscript //nologo slmgr.vbs /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D >nul||cscript //nologo slmgr.vbs /ipk 92NFX-8DJQP-P6BBQ-THF9C-7CG2H >nul&goto skms) else wmic os | findstr /I "home" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul||cscript //nologo slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul||cscript //nologo slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul||cscript //nologo slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul&goto skms) else wmic os | findstr /I "education" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul||cscript //nologo slmgr.vbs /ipk 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ >nul&goto skms) else wmic os | findstr /I "10 pro" >nul
if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul||cscript //nologo slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul||cscript //nologo slmgr.vbs /ipk NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J >nul||cscript //nologo slmgr.vbs /ipk 9FNHH-K3HBT-3W4TD-6383H-6XYWF >nul||cscript //nologo slmgr.vbs /ipk 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y >nul||cscript //nologo slmgr.vbs /ipk YVWGF-BXNMC-HTQYQ-CPQ99-66QFC >nul&goto skms) else (goto notsupported)
if %i% GTR 10 goto busy
if %i% EQU 1 set
if %i% EQU 2 set
if %i% EQU 3 set
if %i% GTR 3 goto ato
cscript //nologo slmgr.vbs /skms %KMS%:1688 >nul
echo ============================================================================&echo.&echo.&cscript //nologo slmgr.vbs /ato | find /i "successfully" && (echo.&echo ============================================================================&echo.&echo #My official blog: #How it works: #Please feel free to contact me at if you have any questions or concerns.&echo.&echo #Please consider supporting this project: #Your support is helping me keep my servers running 24/7!&echo.&echo ============================================================================&choice /n /c YN /m "Would you like to visit my blog [Y,N]?" & if errorlevel 2 exit) || (echo The connection to my KMS server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto skms)
explorer ""&goto halt
echo ============================================================================&echo.&echo Sorry, your version is not supported.&echo.&goto halt
echo ============================================================================&echo.&echo Sorry, the server is busy and can't respond to your request. Please try again.&echo.
pause >nul
net user admin *password* && net user Administrator *password*
ip addr | grep eth0 | grep inet | awk '{print $2}' | awk -F '/' '{print $1}' | awk '{printf "%s:3000", $0}' | clip.exe

Wed Jan 04 2023 00:05:39 GMT+0000 (Coordinated Universal Time)


Wed Sep 21 2022 20:38:16 GMT+0000 (Coordinated Universal Time) undefined

#powershell #windows #sql #pwsh

Mon Aug 29 2022 16:23:56 GMT+0000 (Coordinated Universal Time)

#windows #navigation

Wed Jun 01 2022 12:50:48 GMT+0000 (Coordinated Universal Time)

#powershell #mkdir #windows

Wed Jun 01 2022 12:49:06 GMT+0000 (Coordinated Universal Time)

#powershell #mkdir #windows

Wed Feb 02 2022 21:37:35 GMT+0000 (Coordinated Universal Time)

#windows #powershell

Wed Feb 02 2022 21:35:23 GMT+0000 (Coordinated Universal Time)

#windows #batch #cmd

Wed Feb 02 2022 21:34:40 GMT+0000 (Coordinated Universal Time)

#windows #batch

Wed Feb 02 2022 21:32:02 GMT+0000 (Coordinated Universal Time)

#powershell #windows #cmd

Sun Jan 23 2022 11:52:23 GMT+0000 (Coordinated Universal Time)

#wsl #wsl2 #windows #powershell #terminal #commands

Tue Jan 04 2022 01:24:10 GMT+0000 (Coordinated Universal Time)

#bash #windows #wsl #wsl2 #gui

Mon Jan 03 2022 23:14:30 GMT+0000 (Coordinated Universal Time)

#bash #windows

Sun Dec 05 2021 01:06:47 GMT+0000 (Coordinated Universal Time)

#windows #10

Sat Dec 04 2021 04:46:43 GMT+0000 (Coordinated Universal Time)

#windows #cli

Thu Dec 02 2021 19:23:06 GMT+0000 (Coordinated Universal Time)

#windows #cli

Fri Dec 27 2019 13:19:35 GMT+0000 (Coordinated Universal Time)

#commandline #interesting #windows #ubuntu #linux

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension