Skip to content

Instantly share code, notes, and snippets.

AdilHindistan / check-win-update
Created May 27, 2020
check windows update shortcut
View check-win-update
View shortcut_to_user_variables
# launches window to edit "user" Environment Variables (Windows)
rundll32 sysdm.cpl, EditEnvironmentVariables
AdilHindistan / fix-psrepository.ps1
Last active Jun 19, 2018
Fix PSGallery Registration
View fix-psrepository.ps1
Function Fix-PSRepository {
Fixes the issue with PSGallery:
Find-Module <module_name> -> does not find anything
Get-PSRepository -> returns "Unable to find module repositories"
Register-PSRepository -Default -Verbose -> should fix it but behind the proxy, following should be run first
[]::defaultwebproxy = new-object'http://proxy_address:proxy_port')
AdilHindistan /
Created Apr 10, 2018 — forked from JoeyG1973/
aws saml login with session that auto refreshes.
# Took this:
# converted to boto3 and smooshed it together with this:
# which gave birth too this:
import sys
import botocore
import boto3
import requests

Working with Ad-Hoc Ansible command

  • Add SSH Credentials ssh-add /path/to_cred_file.pem

  • contents of inventory.yml


Setup New Mac

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL"

Install, Setup Python

View Setup Python 2.7 on Windows 10
## Download & Install Python 2.7.x using the msi
## Download pip from (Use PowerShell) to D:\Temp
PS C:\> Invoke-WebRequest -Uri '' -OutFile D:\temp\
## Copy to Scripts folder under Python > Tools > Scripts
## Make sure you started PowerShell on an elevated window (Runas Administrator) as it needs to write to 'Program Files(x86)'
View Windows Control Panel Shortcuts
## Most useful
## Control > System and Security > System
control /name microsoft.System
## System Properties = Control > System and Security > System > Advanced System Settings
## Control > System and Security > Admin Tools
control /name microsoft.AdministrativeTools
AdilHindistan / Cleanup Win10 QuickAccess
Created Jul 9, 2016
Cleanup recent (quick access) shortcuts for Windows 10
View Cleanup Win10 QuickAccess
#AH - Cleanup Win10 QuickAccess / Recent
rm "$($env:appdata)\Microsoft\windows\Recent\*" -force -recurse