Skip to content

Instantly share code, notes, and snippets.

@zgeor
zgeor / setup.sh
Last active September 29, 2023 16:27
Setup docker, code, minikube for please
#!/bin/bash
apt-get update
apt-get install -y lsb-release software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.28/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
@zgeor
zgeor / mlflow_sqlite_os_migration.py
Created May 28, 2022 07:39
Helper script to migrate mlflow sqlite from one storage system addressing to another. So I can move my db from Windows to Linux
import sqlite3
import argparse
import os
parser = argparse.ArgumentParser(description='Migrate mlflow sqlite from one OS addressing to another.')
parser.add_argument('-f', '--file', help='SQLite file', required=True)
parser.add_argument('-s', '--src', help='Path to find', required=True)
parser.add_argument('-d', '--destination', help='Path to replace', required=True)
args = parser.parse_args()