This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(() => { | |
console.log(Object.fromEntries( | |
Object.entries(Deno.metrics()["ops"]).filter(([k, v]) => | |
Object.values(v).some((y) => y) | |
).map(([op, metrics]) => [ | |
op, | |
metrics.opsDispatchedAsync - metrics.opsCompletedAsync, | |
]).filter(([op, diff]) => diff !== 0), | |
)); | |
console.log(Deno.resources()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i wrote this as a joke, don't worry | |
# ...but it actually works | |
from django.db.models import QuerySet | |
from django.shortcuts import get_object_or_404 | |
from ninja import Router, Schema | |
from pydantic.typing import Dict, Union, Literal, Optional, Type | |
from myproject.people.models import Person |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# WARNING! USE AT YOUR OWN RISK! Automatically downloads and unpacks the latest | |
# Tizen Emby app to your USB drive and then ejects the drive for you. | |
# Requirements: | |
# - curl | |
# - diskutil |