Skip to content

Instantly share code, notes, and snippets.

@bnekolny
bnekolny / migtrate_data.py
Last active December 15, 2021 14:46
MLFlow migration script from filesystem to database tracking data
import os
import yaml
## Execution for me was:
## `python migrate_data.py > ./migration_inserts.sql`
## `sed -i '' 's/None/NULL/' ./migration_inserts.sql`
## `psql -f ./migration_inserts.sql`
## NOTE: A few things to know about the script here:
## - Artifacts were stored remotely, so no artifact migration
@wridhdhi
wridhdhi / Advanced Python.ipynb
Created March 10, 2019 11:15
Advanced Python and OOP
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mortenson
mortenson / composelist.sh
Last active November 5, 2023 13:38
List all Docker Compose projects currently running
#!/bin/bash
docker ps --filter "label=com.docker.compose.project" -q | xargs docker inspect --format='{{index .Config.Labels "com.docker.compose.project"}}'| sort | uniq
@citrusui
citrusui / dropdown.md
Last active April 21, 2024 18:44
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@jhamrick
jhamrick / pets.py
Created April 5, 2013 17:06
Demonstration of python classes and inheritance.
class Pet(object):
def __init__(self, name, species):
self.name = name
self.species = species
def getName(self):
return self.name
def getSpecies(self):