Skip to content

Instantly share code, notes, and snippets.

@Kibubu
Kibubu / mmdc
Created April 24, 2024 16:31
Wrapper for mermaid-cli run within a docker container
#!/bin/bash
# Wrapper for mermaid-cli run within a docker container
# copy mmdc into $bin and use as you would use mermaid-cli
# Ensures the script exits if a command fails
set -e
@Kibubu
Kibubu / chatgptsearchexample.md
Created February 22, 2023 22:27
Chatgpt search example

can you tell me the difference between an ontology and a knowledgegraph

An ontology and a knowledge graph are related concepts, but they serve different purposes and have different characteristics.

An ontology is a formal, explicit specification of a shared conceptualization of a domain of interest. In other words, it is a model of the concepts and relationships that exist within a particular domain, typically represented using a formal language such as RDF or OWL. Ontologies are used to represent knowledge in a structured and standardized way, making it easier to reason about and share information within a community.

A knowledge graph, on the other hand, is a specific implementation of a graph database that is used to represent and store knowledge. It typically consists of a set of nodes representing entities, and a set of edges representing the relationships between those entities. Knowledge graphs are often used to represent and store large amounts of heterogeneous data from multiple sources, making

@Kibubu
Kibubu / Gnome Archive Manager .deb workaround.md
Created January 5, 2023 09:43
Gnome archive manager won't extract .deb file

Gnomes file-roller integration Gnome Archive Manger and file-roller themself are unable to extract .deb archives in certain conditions even though the UI states files have been extracted successfully

https://gitlab.gnome.org/GNOME/file-roller/-/issues/14

Workaround is to use ar

ar -xv file.deb

@Kibubu
Kibubu / multipart2object.sh
Created October 28, 2022 15:07
Script to combine unfinished S3 multipart uploads to one object
#!/bin/bash
# Requirements
# * jq
# * aws cli v1
# Usage
# bash script.sh <bucket>