Skip to content

Instantly share code, notes, and snippets.

View k0emt's full-sized avatar

Bryan Nehl k0emt

View GitHub Profile
k0emt /
Last active March 21, 2022 02:44
Some helpful docker commands for working with mongoDB

Some helpful mongo container docker commands

Get latest image of mongoDB

docker pull mongo

Spin up a container and work with mongo

Spin up a new container named my_mongo from image mongo Mapping and exposing ports 27017-27019 from the container to the host OS: docker run -d -p 27017-27019:27017-27019 --name my_mongo mongo

k0emt /
Last active September 7, 2019 22:57
Notes regarding setting up a Pop OS! development environment on a Sony Flip 15.

Sony Flip 15 Pop OS! build

Pop OS!

Had to turn off secure boot and switch from UEFI to legacy to install. Use ASSIST above keyboard for boot options and getting into CMOS.

keyboard shortcuts

ctrl-shift-c and ctrl-shift-v for copy and paste in the terminal

k0emt / color-cycle-progress.markdown
Created July 27, 2016 12:09
color cycle progress
View color-cycle-progress.markdown
k0emt / bubble-progress.markdown
Last active July 27, 2016 12:12
bubble progress
View bubble-progress.markdown
k0emt /
Last active September 7, 2017 03:37
Check list of software that goes onto surface tablet or PC -- data science / developer tools.

Chocolately Managed / Installed software

  • Chocolately
  • Git
  • NodeJS
  • yarn
  • Chrome x64
    • postman
  • MongoDB
  • InkScape
k0emt /
Created May 26, 2016 21:14
Brushable Radial Chart

A modification of Susie Lu's radial weather plot. This one shows periods of cloudiness, precipitation and freezing temperatures via the bars around the border. It also includes a circular brush that lets you select a band on the radial chart. The selected band is then displayed in a more traditional linear way on the bottom left.

The original readme explains what's going on with the radial chart:

Weather Plot - New York 2015

In the example we're looking at historical weather data for New York provided by and Inspired by

This example uses scales to roll your own radial projection by mapping out the x, y, and r positions. If you are creating a line or an area you can use d3's convenience functions d3.svg.line.radial and d3.svg.area.radial but this is a m

View mongodb_lookup.js
use lookup_experiment
"description": {"color":"purple", "manufacturer":"Lamy", "model": "Safari" }})
db.orders.insert({_id:1, "customer":"inkguy","items":["ink","pen","paper"]})
db.orders.insert({_id:2, "customer":"pencilgal","items":["pencil","paper"]})
View svg_1600x900_monitor_pairings.html
<!DOCTYPE html>
<script src=""></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
.label {
font-size: 10em;
k0emt / inline-svg.html
Last active February 21, 2021 17:53
Inline SVG, styled with CSS
View inline-svg.html
<!DOCTYPE html>
<link href='' rel='stylesheet' type='text/css'>
<script src=""></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
.label {
font-size: 2em;
k0emt / mongod.conf
Created October 26, 2015 03:01
example developer YAML configuration file for mongod
View mongod.conf
# mongod.conf
# for documentation of all options, see:
# Where and how to store data.
dbPath: "/var/lib/mongodb"
enabled: true