Skip to content

Instantly share code, notes, and snippets.

@ds0nt
Created July 20, 2015 12:29
Show Gist options
  • Save ds0nt/fa895d95e702c7b1de9b to your computer and use it in GitHub Desktop.
Save ds0nt/fa895d95e702c7b1de9b to your computer and use it in GitHub Desktop.
Hit CTRL-C to stop the server
^Chttp-server stopped.
[dsont@dsont scratch]$ ls
gist/ node_modules/ index.html scratch.js*
[dsont@dsont scratch]$ cd gist
[dsont@dsont gist]$ ls
[dsont@dsont gist]$ touch index.html
[dsont@dsont gist]$ cd /code/scratch/gist/index.html; gist --paste --embed >> index.html; http-server -p 9090 -o -c-1
bash: cd: /code/scratch/gist/index.html: Not a directory
Starting up http-server, serving ./ on: http://0.0.0.0:9090
Hit CTRL-C to stop the server
^Chttp-server stopped.
[dsont@dsont gist]$ cd /code/scratch/gist; gist --paste --embed >> index.html; http-server -p 9090 -o -c-1
Starting up http-server, serving ./ on: http://0.0.0.0:9090
Hit CTRL-C to stop the server
^Chttp-server stopped.
[dsont@dsont gist]$ ls
index.html
[dsont@dsont gist]$ ls
index.html
[dsont@dsont gist]$ cd /code/scratch/gist; gist --paste --embed >> index.html; http-server -p 9090 -o -c-1
Starting up http-server, serving ./ on: http://0.0.0.0:9090
Hit CTRL-C to stop the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment