Skip to content

Instantly share code, notes, and snippets.

View trungle-dev's full-sized avatar

Trung Le trungle-dev

  • Apide Vietnam
  • Viet Nam
View GitHub Profile
@oxycoder
oxycoder / connect.md
Last active October 30, 2021 08:53
MongoDB replicaset on Docker

Setup allow to connect mongo replicaset running inside docker from host machine.

Start

Production: docker compose up -d

Development: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d

run init_replica.sh to setup mongodb replica after container start

@niallsmart
niallsmart / copy-checklist.js
Last active December 28, 2023 00:10
Copy Trello checklist to clipboard
copy($(".checklist-item:not(.checklist-item-checked)").map(function() {
var e = $(this),
item = e.find(".checklist-item-details-text").text()
if (e.hasClass("checklist-item-state-complete")) {
item = item + " (DONE)"
}
return item
}).get().join("\n"))