Skip to content

Instantly share code, notes, and snippets.

View mrlynn's full-sized avatar
🌐
Philadelphia, PA

Michael Lynn mrlynn

🌐
Philadelphia, PA
  • MongoDB
  • Yardley, PA
View GitHub Profile
@mrlynn
mrlynn / gist:a58110cd668e45076cd0c3848cdaee4a
Created September 1, 2022 16:37 — forked from johnlpage/gist:2e8bd55ed195cccd4af7cea718f1c640
Examples for MongoDB Atlas Data API Video
ENDPOINT
--------
https://data.mongodb-api.com/app/data-amzuu/endpoint/data/beta
API KEY
--------
0vaT8d5Vh9cgvm3KdIQJWkl5M8alZgnoOczmApFlWVTMqisg24QWrUfMS0wkQ5Sj
@mrlynn
mrlynn / atlas_ip_whitelist.py
Created June 13, 2018 14:50 — forked from adamchel/atlas_ip_whitelist.py
Script to generate a cURL command that bulk adds IPs to a MongoDB Atlas Group IP whitelist.
#
# Generates a cURL command to add IPs to an MongoDB Atlas Group IP whitelist.
#
import sys
atlas_user = sys.argv[1]
atlas_api_key = sys.argv[2]
atlas_group_id = sys.argv[3]
whitelist_file = sys.argv[4] # Each IP or CIDR block should be separated by a newline
@mrlynn
mrlynn / remote react bootstrap table example
Created June 3, 2018 22:49 — forked from xabikos/remote react bootstrap table example
An example of a react bootstrap table that fetches the data asynchronously when navigating between pages and when changing the page size
import React, {Component} from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import _ from 'lodash';
const dataTable = _.range(1, 60).map(x => ({id: x, name: `Name ${x}`, surname: `Surname ${x}`}));
// Simulates the call to the server to get the data
const fakeDataFetcher = {
fetch(page, size) {
return new Promise((resolve, reject) => {