Skip to content

Instantly share code, notes, and snippets.

View cgdougm's full-sized avatar

Doug MacMillan cgdougm

View GitHub Profile
@yorgyetson
yorgyetson / Sapper + sveltegl
Last active August 31, 2021 21:22
Sapper + svelte/gl
//index.svelte
let GLTest;
onMount(async () => {
const module = await import('../MyGLComponent.svelte');
GLTest = module.default;
});
<svelte:component this={GLTest} />
@Ravenstine
Ravenstine / aws-couchdb-setup.md
Last active February 18, 2025 03:56
Fast CouchDB setup in AWS

Fast CouchDB setup in AWS

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

@jsidhu
jsidhu / smtp.sh
Created March 20, 2017 20:43
simple smtp test using bash /dev/tcp without telnet
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
@rsgalloway
rsgalloway / dotdictify.py
Created January 17, 2015 02:41
dotdictify.py
class dotdictify(dict):
"""
life = {
'bigBang': {
'stars': {
'planets': {}
}
}
}