Skip to content

Instantly share code, notes, and snippets.

function Update-AppSettings($resourceGroup, $site, $slot, $inputFile)
{
$webApp = Get-AzureRMWebAppSlot -ResourceGroupName $resourceGroup -Name $site -Slot $slot
$appSettingList = $webApp.SiteConfig.AppSettings
$hash = @{}
ForEach ($kvp in $appSettingList) {
$hash[$kvp.Name] = $kvp.Value
}
@koenmetsu
koenmetsu / start_docker_registry.bash
Created October 19, 2017 20:03 — forked from PieterScheffers/start_docker_registry.bash
Start docker registry with letsencrypt certificates (Linux Ubuntu)
#!/usr/bin/env bash
# install docker
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
# install docker-compose
# https://docs.docker.com/compose/install/
# install letsencrypt
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
@koenmetsu
koenmetsu / mass-aggregation-change.sh
Created October 20, 2017 08:34 — forked from kirbysayshi/mass-aggregation-change.sh
quick examples of how to change many many wsp (graphite/whisper) files settings
for f in $(find $1 -iname "*.wsp"); do
if [ -a $f ];
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max;
fi;
done
@koenmetsu
koenmetsu / README.md
Created December 22, 2017 14:19 — forked from CumpsD/README.md
Bash on Ubuntu on Windows setup

Bash on Windows config

example prompt

Powerline Fonts

git clone https://github.com/powerline/fonts.git  
cd fonts  
./install.sh