Skip to content

Instantly share code, notes, and snippets.

@coolteddy
coolteddy / ! Mongo+TLS on Docker.md
Created August 23, 2023 08:33 — forked from nielsmaerten/! Mongo+TLS on Docker.md
MongoDB + MongoExpress over TLS on Docker

Secure MongoDB on Docker (incl MongoExpress, Let's Encrypt)

This gist contains files and instructions to setup MongoDB on a simple docker host.
Connections to Mongo are secured using TLS, and the certificate is signed using Let's Encrypt.
MongoExpress is included as well, but should only be used over an SSH tunnel.

  1. Update .env

  2. Make sure docker-compose is available

Required on GCP Cloud Optimized OS

@coolteddy
coolteddy / gist:194fb8f27088681db2e34f70685308fa
Created October 5, 2022 19:49 — forked from soardex/gist:5f47dc1e022697abe1400ec1601dfeb9
MongoDB Create And Authenticate Using Users
1. Connect to mongodb instance.
~~~
mongod --port 27017 --dbpath /data/db
~~~
2. Create user:
~~~
use admin
db.createUser(
{
@coolteddy
coolteddy / backports.pref
Created May 26, 2022 08:36 — forked from slav0nic/backports.pref
debian bullseye sources.list
Package: *
Pin: release n=bullseye-backports
Pin-Priority: 900
@coolteddy
coolteddy / curl.sh
Created July 14, 2021 12:46 — forked from FylmTM/curl.sh
Neo4j curl call example
#!/bin/bash
QUERY=query.json
time curl -i -XPOST \
-o output.log \
--data "@$QUERY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
http://127.0.0.1:7474/db/data/transaction/commit
Sat Apr 13 22:45:22 UTC 2019
### Keybase proof
I hereby claim:
* I am coolteddy on github.
* I am thetnaing (https://keybase.io/thetnaing) on keybase.
* I have a public key whose fingerprint is 7735 A830 F206 ECDC 9196 0D8C 81E7 764A 85D1 32C1
To claim this, I am signing this object:
@coolteddy
coolteddy / README-Template.md
Created November 8, 2018 09:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@coolteddy
coolteddy / README.md
Created November 7, 2018 23:22 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
@coolteddy
coolteddy / keybase.md
Created November 7, 2017 08:56
keybase proof

Keybase proof

I hereby claim:

  • I am coolteddy on github.
  • I am thetnaing (https://keybase.io/thetnaing) on keybase.
  • I have a public key whose fingerprint is 4FC4 4942 D427 08BB 4E4D D6D2 E575 3886 08D4 A168

To claim this, I am signing this object: