Skip to content

Instantly share code, notes, and snippets.

View savishy's full-sized avatar

Vish savishy

View GitHub Profile
@savishy
savishy / .emacs
Last active October 8, 2018 05:10
Emacs Stuff
;; disable temporary files
;; https://stackoverflow.com/a/2680682/682912
(setq make-backup-files nil)
;; Add Melpa Sources for installing Packages.
;; https://melpa.org/#/getting-started
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
@savishy
savishy / runAnsibleAzurePlaybook.sh
Created April 6, 2018 04:12
Run Ansible Azure Playbooks without requiring credential files.
#!/bin/bash
set -e
# This script reads Vault password from user prompt, and loads Azure Environment Variables.
#
# For this first you need to create an Ansible Vaulted .sh script of the format
# export AZURE_SUBSCRIPTION_ID=my_sub_id
# export AZURE_CLIENT_ID=my_serviceprincipal_client_id
# export AZURE_TENANT=my_serviceprincipal_tenant_id
# export AZURE_SECRET=my_serviceprincipal_secret_key
#
@savishy
savishy / Vagrant Other Tips.md
Last active May 25, 2018 15:50
Vagrant tips and tricks.

Error during vagrant up with Virtualbox - VT-x is not available

Problem

  1. Your laptop supports VT-x
  2. VT-x is enabled in the BIOS

However, vagrant up on a Virtualbox machine throws this inexplicable error.

Cause

@savishy
savishy / README.md
Last active May 13, 2018 07:59
Script to provision my Windows 10 machine

How to run

  1. Open Powershell as Administrator
  2. Run
iwr -useb https://gist.githubusercontent.com/savishy/5ea55e7258422b7455b6476609979d21/raw/provisionWindows.ps1 | iex;
@savishy
savishy / Azure CLI Cheatsheet.md
Last active May 30, 2018 04:29
Azure Tips and Tricks

Delete a VM Extension (is faster from command-line)

Useful if you are troubleshooting or debugging VM Extensions.

az vm extension delete --vm-name VMName -g RGName --name ExtensionName

Resize a VM while its running

Ansible 2.5 azure_rm_virtualmachine module will not resize a running VM if you simply change its size. :(

@savishy
savishy / Powershell DSC.md
Last active March 15, 2022 17:06
Powershell as well as Powershell DSC Tips and Troubleshooting

DevOps Automation Task - Ansible + Azure + Windows

Objectives

  1. This assignment requires you to automate creation of an entire application environment on Azure.
  2. The environment consists of two VMs, details of which are enclosed below.
  3. All VMs are Windows VMs.
  4. Each VM needs to have specific disks attached to it, in addition to the C: D: E: drives.

Time Limit

@savishy
savishy / AWS Jargon.md
Last active September 19, 2018 02:55
AWS - Key Concepts and Jargon

S3

VPC

Subnets

  • Public Subnets can send traffic directly to internet