Skip to content

Instantly share code, notes, and snippets.

View vivek1986's full-sized avatar
💭
I may be slow to respond.

Vivek Shah vivek1986

💭
I may be slow to respond.
  • PS
  • Ahmedabad
View GitHub Profile
@vivek1986
vivek1986 / clean_cache_teams.cmd
Created July 27, 2023 22:15 — forked from tuantmb/clean_cache_teams.cmd
A simple batch script to clean up #cache for #Microsoft #teams
@echo off && setlocal
:checkPrivileges
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' (
goto mainScript
) else (
goto getPrivileges
)
@vivek1986
vivek1986 / makeMetered.ps1
Created March 6, 2022 17:03 — forked from danzek/makeMetered.ps1
Take ownership of key and make Ethernet connection a metered connection
<#
.SYNOPSIS : PowerShell script to set Ethernet connection as metered or not metered
.AUTHOR : Michael Pietroforte
.SITE : https://4sysops.com
#>
# Retrieved from https://4sysops.com/archives/set-windows-10-ethernet-connection-to-metered-with-powershell/
@vivek1986
vivek1986 / power-delete.psm1
Created March 6, 2022 17:02 — forked from jcttrll/power-delete.psm1
PowerShell module to take ownership of a file/directory, assign permissions allowing deletion, and then delete the item (recursively in the case of directories, and optionally including deletion of all hardlinks to files)
function Power-Delete {
[CmdletBinding()]
param(
[parameter(Position = 0, ValueFromRemainingArguments = $true, ValueFromPipelineByPropertyName = $true)]
$FullName,
[switch]
$AllHardLinks
)
process {
@vivek1986
vivek1986 / Chown.ps1
Created March 6, 2022 17:00 — forked from Mossman1215/Chown.ps1
Change ownership powershell snippet
#References
#base script
#https://stackoverflow.com/questions/22988384/powershell-change-owner-of-files-and-folders
#parameters
#https://powershell.org/forums/topic/file-path-parameter/
param (
[Parameter(Mandatory=$true)]
[ValidateScript({Test-Path -Path $_})]
[string]$path
)
Windows Registry Editor Version 5.00
; Take_Ownership_Advanced_Context_Menu.reg by AveYo v2018-07-19
; =================================================================================================================================
; GAIN ACCESS: Inherit from parent: YES, Owner = current user, Owner Rights = Modify
; GAIN EXCLUSIVE ACCESS: Inherit from parent: NO, Owner = current user, Owner Rights = FullControl
; USERS GAIN EXCLUSIVE ACCESS FOR NEW FILES: Inherit from parent: NO, Owner = Authenticated Users, Owner Rights = FullControl
; CLEAR GAINED ACCESS: Inherit from parent: YES, Owner = Inherited or Administrators, Authenticated Users = Inherited or Modify
; =================================================================================================================================
; Single context menu entry added for files, folders (except C:\Windows etc.) and drives (except C:) with the 4 choices above
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
@vivek1986
vivek1986 / make_windows10_great_again.bat
Created February 25, 2022 17:01 — forked from IntergalacticApps/make_windows10_great_again.bat
Make Windows 10 Great Again - stop Windows 10 spying!
@echo off
setlocal EnableDelayedExpansion
ver | find "10." > nul
if errorlevel 1 (
echo Your Windows version is not Windows 10... yet. Brace yourself, Windows 10 is coming^^!
pause
exit
)
@vivek1986
vivek1986 / @ batch scripts for power users.md
Created February 25, 2022 16:59 — 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:

@vivek1986
vivek1986 / sublime-text-3-setup.md
Created December 21, 2021 21:52 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@vivek1986
vivek1986 / cracking.md
Created March 30, 2019 20:30
Cracking guide for Sublime Text 3 Build 3200/3202 and Sublime Merge - Build 1109/1111 (Linux x86_64) - Updated #3 (20190327)

screen

Sublime Text 3 - Build 3200/3202 - Linux x64

For Build 3202:

Desciption Offset Original Patched