Skip to content

Instantly share code, notes, and snippets.

View sjovang's full-sized avatar

Trond Jakob Sjøvang sjovang

View GitHub Profile
@sjovang
sjovang / Run-VMScale.ps1
Last active July 1, 2019 09:58
Scale VM with tags in Azure
<#
.SYNOPSIS
This Azure Automation runbook use tags to scape up/down a virtual machine
.DESCRIPTION
This runbook will resize a virtual machine based on the tags attached to the Virtual Machine object. Both 'ScaleUpSize' and 'ScaleDownSize'-tags must be present for scaling to work.
The runbook is ment to be run on two different schedules:
1. Set 'SCALEUP'=$true to resize a VM to the size set in 'ScaleUpSize'
2. Set 'SCALEUP'=$false to resize a VM to the size set in 'ScaleDownSize'

Keybase proof

I hereby claim:

  • I am sjovang on github.
  • I am liasis (https://keybase.io/liasis) on keybase.
  • I have a public key whose fingerprint is 2B30 A645 AA74 2F2C 38B7 4756 0EA3 01E0 1409 E1D9

To claim this, I am signing this object:

@import url(http://fonts.googleapis.com/css?family=Droid+Serif);
@import url(http://fonts.googleapis.com/css?family=Droid+Sans);
body {
background: white;
color: black;
margin: 5em 0;
padding: 0;
text-align: center;
" use pathogen for addons
call pathogen#infect()
" encoding
set fileencoding=utf-8
set encoding=utf-8
set termencoding=utf-8
" syntax & line numbers
syntax enable
apticron report [Tue, 17 Apr 2012 21:40:08 +0200]
========================================================================
apticron has detected that some packages need upgrading on:
<hostname>.online.no
[ 127.0.1.1 <ip> ]
The following packages are currently pending an upgrade:
import os, shutil
path = "/home/trond/Donald"
authors = os.listdir(path)
for author in authors:
if author != "cbz":
years = os.listdir(path + "/" + author)
for year in years: