Skip to content

Instantly share code, notes, and snippets.

View Nathan-Schwartz's full-sized avatar

Nathan Schwartz Nathan-Schwartz

View GitHub Profile
@ElijahLynn
ElijahLynn / pipe_to_docker_examples
Last active July 2, 2024 01:27
How to pipe to `docker exec` examples
# These examples assume you have a container currently running.
# 1 Pipe from a file
sudo docker exec --interactive CONTAINER_NAME /bin/bash < the_beginning.sh | tee the_beginning_output.txt`
#2a Pipe by piping
echo "echo This is how we pipe to docker exec" | sudo docker exec --interactive CONTAINER_NAME /bin/bash -
@schinns
schinns / App.re
Created February 23, 2018 20:51
Simple ReasonReact Router Example
let component = ReasonReact.statelessComponent("App");
let make = (_children) => {
...component,
render: (_self) =>
<div className="app">
<View.Nav></View.Nav>
<Router.WithRouter>
...(
(~currentRoute) =>
switch currentRoute {