Skip to content

Instantly share code, notes, and snippets.

Bryan Nehl k0emt

Block or report user

Report or block k0emt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@k0emt
k0emt / my_mongo.md
Last active Oct 10, 2019
Some helpful docker commands for working with mongoDB
View my_mongo.md

Some helpful mongo container docker commands

Get latest image of mongoDB

docker pull 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

Get an interactive shell in the container: docker exec -it my_mongo bash

@k0emt
k0emt / sony-f15-pop-os-build-notes.md
Last active Sep 7, 2019
Notes regarding setting up a Pop OS! development environment on a Sony Flip 15.
View sony-f15-pop-os-build-notes.md

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

View color-cycle-progress.markdown
View bubble-progress.markdown
@k0emt
k0emt / Surface-rebuild.md
Last active Sep 7, 2017
Check list of software that goes onto surface tablet or PC -- data science / developer tools.
View Surface-rebuild.md

Chocolately Managed / Installed software

  • Chocolately
  • Git
  • NodeJS
  • yarn
  • Chrome x64
    • postman
  • MongoDB
  • InkScape
@k0emt
k0emt / README.md
Created May 26, 2016
Brushable Radial Chart
View README.md

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 intellicast.com and wunderground.com. Inspired by weather-radicals.com.

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
db.items.insert({"name":"ink","price":5.55})
db.items.insert({"name":"pen","price":29.95,
"description": {"color":"purple", "manufacturer":"Lamy", "model": "Safari" }})
db.items.insert({"name":"paper","price":5.00})
db.items.insert({"name":"pencil","price":10.00})
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>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<style>
.label {
font-size: 10em;
font-family:"sans-serif";
View index.html
<!DOCTYPE html>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<style>
.label {
font-size: 2em;
@k0emt
k0emt / mongod.conf
Created Oct 26, 2015
example developer YAML configuration file for mongod
View mongod.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: "/var/lib/mongodb"
journal:
enabled: true
You can’t perform that action at this time.