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
<script> | |
import { PUBLIC_NOTIF_KEY } from "$env/static/public"; | |
let setupState = false; | |
async function setup() { | |
setupState = "loading-0"; | |
await Notification.requestPermission(); | |
const registration = await navigator.serviceWorker.ready; | |
setupState = "loading-1"; | |
let sub; | |
try { |
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 python3 | |
# -*- coding: utf-8 -*- | |
# Python script to update CDMon dynamic DNS | |
# | |
# @author = @jovimon | |
# @version = 0.1.20200930 | |
# | |
# Prerequisites: sudo pip install requests / sudo apt install python-requests | |
# |
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
public struct Units { | |
public let bytes: Int64 | |
public var kilobytes: Double { | |
return Double(bytes) / 1_024 | |
} | |
public var megabytes: Double { | |
return kilobytes / 1_024 |