CouchDB is a NoSQL database for storing JSON documents. It comes with a REST API out of the box so your client applications can persist data while requiring you to write little or no server-side code. CouchDB's killer feature is its ability to easily replicate, which allows for horizontal scaling, easy backup, and for client adapters to synchronize documents. This is perfect if you want to write an application that is offline-first. It's become my go-to database when creating new
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
//index.svelte | |
let GLTest; | |
onMount(async () => { | |
const module = await import('../MyGLComponent.svelte'); | |
GLTest = module.default; | |
}); | |
<svelte:component this={GLTest} /> |
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
D=$(date) | |
timeout 1 bash -c 'cat < /dev/null > /dev/tcp/smtp.mydomain.net/25' | |
port_25=$? | |
timeout 1 bash -c 'cat < /dev/null > /dev/tcp/smtp.mydomain.net/587' | |
port_587=$? | |
echo "$D Port Check result: port_25:$port_25 git:$port_587" | |
MAILSERVER=smtp.mydomain.net | |
PORT=25 |
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
class dotdictify(dict): | |
""" | |
life = { | |
'bigBang': { | |
'stars': { | |
'planets': {} | |
} | |
} | |
} |