Skip to content

Instantly share code, notes, and snippets.

View baradhiren's full-sized avatar
👨‍💻
Working on the next adventure

Hiren Barad baradhiren

👨‍💻
Working on the next adventure
View GitHub Profile
@baradhiren
baradhiren / script-template.sh
Created December 15, 2020 13:38 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF
@baradhiren
baradhiren / README.md
Created August 27, 2018 04:16 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@baradhiren
baradhiren / Windows10-Setup.ps1
Last active August 18, 2018 17:31 — forked from NickCraver/Windows10-Setup.ps1
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
@baradhiren
baradhiren / chocolatey-env-setup.ps1
Last active August 18, 2018 17:39 — forked from amogram/chocolatey-env-setup.ps1
A Powershell Script to install all the necessary softwares in your newly formatted windows Machine. Take the script and run in Powershell as Administrator. (Note: Run at your own Risk.)
#Installing chocolatey if it is not Installed
if($(choco | grep 'Chocolatey v' | wc -l) -ne 1)
{
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
# Simple environment setup script
# Install Applications
choco install 7zip