Mediainfo comes in handy for printing information from media files; however, some features, like --Output, are poorly documented or unclear.
mediainfo --Output="General;%Track/Position%. %Title% - %Duration/String%\n" *.flac
#!/bin/bash | |
# Usage: ./backup-jellyfin.sh | |
declare -r tar_name="${HOME}/jellyfin.tar" | |
sudo systemctl stop jellyfin.service | |
echo "tar -cf "${tar_name}" /var/lib/jellyfin" | |
sudo tar -cf "${tar_name}" /var/lib/jellyfin | |
sudo chown -v "${USER}:${USER}" "${tar_name}" | |
sudo systemctl start jellyfin.service |
export interface TreeXmlNode { | |
name: string; | |
content: string; | |
children: TreeXmlNode[]; | |
} | |
export interface XmlMark { | |
name: string; | |
content: string; | |
type: symbol; |
import java.util.LinkedList; | |
import java.util.List; | |
import org.mockito.ArgumentMatcher; | |
import org.mockito.invocation.InvocationOnMock; | |
import org.mockito.stubbing.Answer; | |
import lombok.AllArgsConstructor; | |
import lombok.Setter; |
Java 19 add newHashMap(int)
to HashMap
and LinkedHashMap
.
See: Java doc HashMap
private static final short DEFAULT_LOAD_FACTOR = .75;
<script type="module"> | |
import mermaid from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.esm.min.mjs'; | |
mermaid.initialize({ startOnLoad: false }); | |
await mermaid.run({ | |
nodes: document.querySelectorAll('pre.mermaid > code:first-child'), | |
}); | |
function findMermaidSvg(child) { | |
if (child.tagName === "A" || child.tagName === "BUTTON") { | |
return null; |