Skip to content

Instantly share code, notes, and snippets.

Philadelphia, PA

Michael Lynn mrlynn

Philadelphia, PA
View GitHub Profile
mrlynn /
Created Jun 13, 2018 — forked from adamchel/
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 / remote react bootstrap table example
Created Jun 3, 2018 — 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
View remote react bootstrap table example
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) => {