Skip to content

Instantly share code, notes, and snippets.

@meandavejustice
Last active August 28, 2020 06:51
Show Gist options
  • Save meandavejustice/81f591696496d9084cd3d54225e341a0 to your computer and use it in GitHub Desktop.
Save meandavejustice/81f591696496d9084cd3d54225e341a0 to your computer and use it in GitHub Desktop.
Windows 10 Sanity Setup

windows 10 sanity setup

Basic preferences

Disable all telemetry and privacy breaching settings on initial setup. (voice search, location services, etc...)

remap capslock
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
Remove unwanted programs

skype

Get-AppxPackage *Microsoft. SkypeApp* | Remove-AppxPackage

onedrive https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-onedrive.ps1

show hidden files in explorer
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $key Hidden 1
Set-ItemProperty $key HideFileExt 0
Set-ItemProperty $key ShowSuperHidden 1
Stop-Process -processname explorer

Install programs

install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

install programs with chocolatey

choco install zoom vscode gnupg sharex powertoys paint.net wireshark winrar winzip batch-hex-editor slack curl Firefox Fiddler audacity audacity-lame audacity-ffmpeg vlc webtorrent-desktop gimp itunes inkscape
  • install firefox nightly
  • set firefox as default browser

SSH & GPG

SSH
  • enable optional features in windows menu, install openssh server
  • start service Get-Service -Name ssh-agent | Set-Service -StartupType Manual
  • gen keys ssh-keygen -t rsa -b 4096 -C "[email protected]"
  • start service start-ssh-agent
  • add keys ssh-add ~/.ssh/id_rsa
  • add new pub key to github

$null >> ~.ssh/config

Host remotedev
   HostName remote_dev_server_ip_address_here
   User djustice
   IdentityFile "C:\Users\davej\.ssh\id_rsa"
   ForwardAgent yes
   RemoteForward /run/user/1000/gnupg/S.gpg-agent /c/Users/davej/AppData/Roaming/gnupg/S.gpg-agent.extra
   LocalForward 1080 localhost:1080
   LocalForward 1111 localhost:1111
   LocalForward 1112 localhost:1112
   LocalForward 3030 localhost:3030
   LocalForward 3031 localhost:3031
   LocalForward 8080 localhost:8080
   LocalForward 9000 localhost:9000
   LocalForward 9010 localhost:9010
   LocalForward 9292 localhost:9292
GPG
  • gpg --full-generate-key select dsa and rsa and 4096
  • list keys gpg --list-secret-keys --keyid-format LONG
  • export key gpg --armor --export keyidhere
  • add key to github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment