Skip to content

Instantly share code, notes, and snippets.

View savishy's full-sized avatar

Vish savishy

View GitHub Profile
@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 / 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 / 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 / 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 / .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 / Chef Cheatsheet.md
Last active March 14, 2018 08:34
Chef Cheatsheet
@savishy
savishy / Blender Keyboard Shortcuts.md
Created January 13, 2018 06:01
Blender Tips and Tricks

R = Rotate

Press - X,Y,Z to isolate rotation axsis

S = Scale

Press - X,Y,Z to isolate scale axsis

Middle mouse button to rotate around selected object

@savishy
savishy / Kubernetes - Tips.md
Last active January 22, 2024 07:31
Kubernetes Cheatsheet

About kubeconfig and Sharing kubeconfigs

When you create a Google Cloud Container cluster with gcloud container clusters create it also generates a kubeconfig entry. See the output below:

Creating cluster petclinic...done.
Created [https://container.googleapis.com/v1/projects/gcloud-testing-vish/zones/asia-east1-a/clusters/petclinic].
kubeconfig entry generated for petclinic.
NAME       LOCATION      MASTER_VERSION  MASTER_IP       MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS