Skip to content

Instantly share code, notes, and snippets.

@TheBigBear
TheBigBear / boxstarter-full-win10.ps1
Created August 19, 2019 15:08
Boxstarter - Full - Windows 10
<#
.SYNOPSIS
BoxStarter script to configure Windows 10 development PC.
.DESCRIPTION
Install BoxStarter:
. { Invoke-WebRequest -useb http://boxstarter.org/bootstrapper.ps1 } | Invoke-Expression; get-boxstarter -Force
Run by calling the following from an **elevated** command-prompt.
Remove -DisableReboots parameter to allow the script to reboot as required.
@TheBigBear
TheBigBear / DevMachineSetup.ps1
Created August 19, 2019 15:08
Scripted install of all the tools needed on a new PC build
## Setup PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force
## Installers
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install webpicmd -y -v
## DotNET
@TheBigBear
TheBigBear / setup.ps1
Created August 19, 2019 15:08
Windoze dev setup
mkdir temp
cd temp
# Configure Windows
Set-WindowsExplorerOptions `
-EnableShowHiddenFilesFoldersDrives `
-EnableShowProtectedOSFiles `
-EnableShowFileExtensions `
-EnableShowFullPathInTitleBar
@TheBigBear
TheBigBear / basic-dev.ps1
Created August 19, 2019 15:07
My BoxStarter Scripts
# SQL Server - do this early to avoid issues with newer versions of VC++ 2015 redist
choco install sql-server-2017
choco install sql-server-2017-cumulative-update --version 14.0.3029.16
choco install sql-server-management-studio
# tools
choco install git
choco install nodejs
choco install tortoisegit
choco install visualstudiocode
@TheBigBear
TheBigBear / profiles.json
Created August 19, 2019 15:06
Windows Terminal settings and files
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{

Keybase proof

I hereby claim:

  • I am TheBigBear on github.
  • I am thebigbear (https://keybase.io/thebigbear) on keybase.
  • I have a public key whose fingerprint is 228C D3EA 4E16 F39E 207F B955 753F 5852 2B1E AD2B

To claim this, I am signing this object:

Get-AzureVM -ServiceName "name_cloud_service" -Name "vm_name"
Get-AzureVM -ServiceName "name_cloud_service" -Name "vm_name" | Get-AzureEndpoint

What are MS GUIDs and howto deal with them. (both on windows and unix/linux)

They look ugly like this {BFEAB774-C7DC-4032-B05A-DA5F7CB7B365} and are basically globally unique identifiers.

The MS msi installer uses a GUID to uniquely identify a software or module.

https://en.wikipedia.org/wiki/Windows_Installer

Tools to deal with GUIDs

@TheBigBear
TheBigBear / ReadMe.md
Last active November 5, 2021 10:45
first simple python jinja2 writer to control config files of a bunch of openwrt WL APs

I want to write a simple python 2.7 jinja2 writer that writes out text config files for WL AccessPoints

I have the following structure in my directory ~/Documents/PyCharmProjects:

config-data.csv
mk-wl-ap-configs.py
shadow.jinja
network.jinja
wireless,jinja
@TheBigBear
TheBigBear / gist:3fa65236939b68dc7285
Created February 16, 2015 18:00
debug output for: winrepo.update_git_repos on a masterless windows minion fails with KeyError git.latest #20732
this is for salt/saltstack issue #20732
C:\salt>salt-call.exe --local -l all winrepo.update_git_repos
[DEBUG ] Reading configuration from c:\salt\conf\minion
[TRACE ] loading log_handlers in ['c:\\salt\\var\\cache\\salt\\minion\\extmods\\log_handlers',
[TRACE ] Skipping c:\salt\var\cache\salt\minion\extmods\log_handlers, it is not a directory
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq
[DEBUG ] Configuration file path: c:\salt\conf\minion
[DEBUG ] Reading configuration from c:\salt\conf\minion
[TRACE ] loading grain in ['c:\\salt\\var\\cache\\salt\\minion\\extmods\\grains', 'C:\\salt\\s