Skip to content

Instantly share code, notes, and snippets.

@koenmetsu
koenmetsu / infra.plantuml
Created August 14, 2019 07:43
AIV Infra PlantUml
@startuml
hide stereotype
skinparam linetype ortho
skinparam {
note {
borderColor black
backgroundColor #FAF0E6
}

Keybase proof

I hereby claim:

  • I am koenmetsu on github.
  • I am koenmetsu (https://keybase.io/koenmetsu) on keybase.
  • I have a public key ASCZQDXPInwZ_edGORV0Qf0xSLl1BdH6LMYZSjjXWMv7mAo

To claim this, I am signing this object:

@koenmetsu
koenmetsu / History|-481febba|entries.json
Last active April 1, 2023 20:11
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///home/koen/Downloads/Zoekresultaten%20export%20%2801032023%29.csv","entries":[{"id":"atT7.csv","timestamp":1677702943849}]}
@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
@koenmetsu
koenmetsu / lineage installation.md
Last active January 11, 2018 08:06
Install Lineageos 14.1 Oneplus 3T

fastboot flash recovery twrp-3.1.1-0-oneplus3t.img

open_gapps-arm64-7.1-pico-20171221.zip

lineage-14.1-20171215-nightly-oneplus3-signed.zip

@koenmetsu
koenmetsu / .bashrc
Last active March 31, 2019 21:12
Remaster Windows workstation
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null ; }
agent_load_env
@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 / 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 / .bashrc
Created March 7, 2017 10:47
.bashrc script with some git options enabled
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null ; }
agent_load_env
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
}