Skip to content
Permalink
Browse files

Add table of contents and docker oneliners

  • Loading branch information...
icyflame committed Sep 21, 2019
1 parent 0ba92c9 commit 0301348531dbc712815115a88f2767196858caf0
Showing with 26 additions and 3 deletions.
  1. +0 −3 .editorconfig
  2. +26 −0 README.md
@@ -11,6 +11,3 @@ insert_final_newline = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
@@ -2,6 +2,14 @@

> Bash one-liners that are always useful :heart: :heart:
### TOC

- [Why](#why)
- [List](#init)
- [Concepts](#concepts)
- [Commands](#commands)
- [Docker](#docker)

### Why?

There are [many](https://github.com/jlevy/the-art-of-command-line#basics)
@@ -165,4 +173,22 @@ problems in Ubuntu 16.04 LTS related to the mouse or other USB peripherals
screen -r `screen -ls | head -n-1 | tail -n-1 | awk '{ print $1 }'`
```

#### Docker

- Serving the current directory on the local network using `nginx`
```sh
docker run -p 9090:9091 \
-v "`pwd`:/var/www/html" \
-v "`pwd`/test.conf:/etc/nginx/conf.d/localserver.conf" \
-d --name localserver nginx:latest
```

- Converting a markdown file to an HTML file
```sh
docker run \
-v `pwd`:/source jagregory/pandoc \
-f markdown -t html5 \
scratch/scratch-2019-09-17-22-33-55-z-review.md -o z-review.html
```

[1]: https://www.ivarch.com/programs/quickref/pv.shtml

0 comments on commit 0301348

Please sign in to comment.
You can’t perform that action at this time.