Skip to content

Instantly share code, notes, and snippets.

View vivekwebm2020's full-sized avatar

VWEBM vivekwebm2020

View GitHub Profile
@vivekwebm2020
vivekwebm2020 / utmstrip.user.js
Created March 17, 2022 11:43 — forked from paulirish/utmstrip.user.js
userscript: Drop the UTM params from a URL when the page loads
// ==UserScript==
// @name UTM param stripper
// @author Paul Irish
// @namespace http://github.com/paulirish
// @version 1.2
// @description Drop the UTM params from a URL when the page loads.
// @extra Cuz you know they're all ugly n shit.
// @include http*://*
// ==/UserScript==
@vivekwebm2020
vivekwebm2020 / 01.bash_shortcuts_v2.md
Created February 8, 2022 11:03 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@vivekwebm2020
vivekwebm2020 / EncryptAndDecrypt.vbs
Created February 6, 2022 22:39 — forked from albert1205/EncryptAndDecrypt.vbs
Encrypt And Decrypt String by VBScript
Call EncryptTool
Call DecryptTool
'------------------------
'【 加密字符串 】
'------------------------
Private Function Encrypt(Plaintext)
Const offset = 10
Const minAsc = 33
@vivekwebm2020
vivekwebm2020 / @ batch scripts for power users.md
Created February 6, 2022 22:23 — forked from AveYo/@ batch scripts for power users.md
Windows batch scripts for power users

windows_update_toggle.bat v10.1 final
~ one script to rule them all!
~ block build upgrades and/or automatic updates without breawking Store downloads and Defender protection updates
~ there is a lot of focus on Defender updates working independently, unlike any other updates "management" solution
~ ifeo safe blocking with no destructive changes of ownership, deleting files, removing tasks, or over-blocking
~ toggle everything from the Desktop right-click context menu!
but wait, there is more:
~ hide/unhide/install update lists with counter at the Desktop right-click context menu!

Previous update toggle batch suite scripts have been overwritten on pastebin, but will still be available here:

@vivekwebm2020
vivekwebm2020 / amelioration_20H2.bat
Created February 6, 2022 22:22 — forked from mrzcn/amelioration_20H2.bat
Windows 10 AME BATCH Script
:: Windows 10 AME BATCH Script
:: v2004.2021.04.01
@echo off
pushd "%~dp0"
echo.
echo :: Checking For Administrator Elevation...
echo.
timeout /t 1 /nobreak > NUL
@vivekwebm2020
vivekwebm2020 / command-prompt.reg
Created February 4, 2022 23:35 — forked from ebicoglu/command-prompt.reg
Useful developer Windows right click items (context menu)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\Command Prompt *\command]
@="cmd.exe /s /k pushd \"%V\""
# Source: https://superuser.com/a/1201549
function force-mkdir($path) {
if (!(Test-Path $path)) {
#Write-Host "-- Creating full path to: " $path -ForegroundColor White -BackgroundColor DarkGreen
New-Item -ItemType Directory -Force -Path $path
}}
function Takeown-Registry($key) {
@vivekwebm2020
vivekwebm2020 / Windows10RegistryHacks.md
Created January 26, 2022 23:20 — forked from JohannesMP/Windows10RegistryHacks.md
A small collection of Registry hacks for Windows 10 installations

Note: for any folder not found, navigate as far as possible, then create as a new Key

Disable Downloads like Candy Crush, etc.

  • HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent
  • Dword DisableWindowsConsumerFeatures set to 1

Disable Lock screen, just show login form

@vivekwebm2020
vivekwebm2020 / restore-wallpaper-rights.ps1
Created January 26, 2022 23:11 — forked from fernandoacorreia/restore-wallpaper-rights.ps1
Windows PowerShell script to restore the right to set your desktop wallpaper when a group policy blocked it.
# Windows PowerShell script to restore the right to set your desktop wallpaper when a group policy blocked it.
# Must be executed as administrator.
# Automates the steps described at http://neuralfibre.com/paul/it/how-to-block-your-corporate-wallpaper-in-windows
Set-StrictMode -Version 2.0
function enable-privilege {
param(
## The privilege to adjust. This set is taken from
@vivekwebm2020
vivekwebm2020 / Personal Windows 10 customization script.bat
Created January 23, 2022 12:42 — forked from ScribbleGhost/Personal Windows 10 customization script.bat
A personal collection of Windows 10 customizations. Run as admin. Has to be run as a batch file, not in CMD.
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