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
| import { db } from "../firebase"; | |
| import { | |
| getDocs, | |
| query, | |
| collection, | |
| orderBy, | |
| startAfter, | |
| limit, | |
| } from "firebase/firestore"; |
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
| import { useEffect, useState } from "react"; | |
| import Spinner from "react-bootstrap/Spinner"; | |
| const delayMs = 350; | |
| let setTimeoutInstance; | |
| export default function LoadingSpinner({ isLoading, children }) { | |
| const [isDelayed, setIsDelayed] = useState(false); | |
| useEffect(() => { |
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
| #!/bin/bash | |
| echo "[i] Backing up root.hints ..." | |
| cd /var/lib/unbound | |
| sudo cp root.hints $(date +%F).root.hints | |
| if [ -s $(date +%F).root.hints ] | |
| then | |
| echo "[✓] Backup root.hints success!" | |
| echo "" |