Skip to content

Instantly share code, notes, and snippets.

View dmlond's full-sized avatar

Darin London dmlond

  • Duke University
  • Durham, NC
View GitHub Profile
@willurd
willurd / web-servers.md
Last active July 25, 2024 14:04
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@dmann
dmann / README.md
Last active January 9, 2019 15:56
A bookmarklet that compiles steps and minutes active into a single table, which can be to copy/pasted directly into Duke's Get Moving Challenge submission page.

Installation

Copy the raw text from the get_moving_bookmarklet.min.js file. Open the Bookmark Manager in your web browser. Add a new bookmark and paste the minified javascript into the url field.

Usage

Go to the Fitbit website and log in. Once logged in, click your newly created bookmark and a table should show up at the top of the page. While the bookmarklet will work from any page on Fitbit's site, I've found that it looks best when launched from the Food Log page.

@BretFisher
BretFisher / docker-for-mac.md
Last active July 9, 2024 11:29
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@clcollins
clcollins / enable_namespaces_el7.sh
Last active April 25, 2017 20:41
Enable User Namespaces for Docker on EL7-based Systems
#!/bin/bash
# Super basic script outlining the steps to enable namespace support for Docker on
# el7-base systems (CentOS7, RHEL7, etc).
set -e
echo "Enabling user_namespace kernel option..."
grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)"