Skip to content

Instantly share code, notes, and snippets.

sengiv / R80X50-PQ-CCTV-Config.txt
Created Oct 21, 2022
ICsee R80X50-PQ CCTV Camera Config
View R80X50-PQ-CCTV-Config.txt
- platform: generic
name: iCsee
still_image_url: "http://<CAMERA_IP_ADDRESS>/webcapture.jpg?user=admin&password=<PASSWORD>&command=snap&channel=1"
stream_source: "rtsp://<CAMERA_IP_ADDRESS>:554/user=admin&password=<PASSWORD>&channel=2&stream=0.sdp?real_stream"
sengiv / SetAppPATHForTerminal.ps1
Created Oct 14, 2022
When run will add a directory to cmd/powershell PATH, so for example this code will make azcopy command available in terminal
View SetAppPATHForTerminal.ps1
$InstallPath = 'C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy'
# Add InstallPath to the System Path if it does not exist
if ($env:PATH -notcontains $InstallPath) {
$path = ($env:PATH -split ";")
if (!($path -contains $InstallPath)) {
$path += $InstallPath
$env:PATH = ($path -join ";")
$env:PATH = $env:PATH -replace ';;', ';'
sengiv / Programming Rules Ordered By Priority
Created Jul 2, 2022
Programming Rules Ordered By Priority
View Programming Rules Ordered By Priority
1.Easy Readablilty
2.No Duplication
3.Performance Gain
When there is decision to be made between a comprimise
of Easy Readablity & No Duplication, make the decision in favor of Readability.
This will lead to code with easier maintainence down the road.
sengiv / Windows Force Hibernate
Created Jul 2, 2022
Windows Force Hibernate With Desktop Shortcut
View Windows Force Hibernate
Create shortcut with below target:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
sengiv / Disable Lock Screen - Windows 10
Created Jul 2, 2022
Steps To Disable Lock Screen - Windows 10 - Tested to be working for all scenarios, sleep, hibernate & restart
View Disable Lock Screen - Windows 10
Open regedit
1.Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
2.Right click on Windows and select New>Key
3.Name the new key Personalization
4.Right click on Personalization and select New>DWORD (32-Bit) Value
5.Name it NoLockScreen
6.Double click NoLockScreen and edit the value to be 1 (Hexadecimal) and click OK.
7.Restart the computer, and the lock screen should be disabled when it resumes from sleep.
sengiv /
Created May 7, 2021
Install Latest Chrome with PowerShell
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)