Skip to content

Instantly share code, notes, and snippets.

View ds0nt's full-sized avatar
🏠
Working from home

Daniel Sont ds0nt

🏠
Working from home
View GitHub Profile
<script src="https://gist.github.com/a2f7e2fe707a6f986ace.js"></script>
<script src="https://gist.github.com/85ea8458078598155eb6.js"></script>
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
<script src="https://gist.github.com/fa895d95e702c7b1de9b.js"></script>
bash: [dsont@dsont: command not found
[dsont@dsont gist]$ gist/ node_modules/ index.html scratch.js*
bash: gist/: No such file or directory
[dsont@dsont gist]$ [dsont@dsont scratch]$ cd gist
bash: [dsont@dsont: command not found
[dsont@dsont gist]$ [dsont@dsont gist]$ ls
bash: [dsont@dsont: command not found
[dsont@dsont gist]$ [dsont@dsont gist]$ touch index.html
bash: [dsont@dsont: command not found
[dsont@dsont gist]$ [dsont@dsont gist]$ cd /code/scratch/gist/index.html; gist --paste --embed >> index.html; http-server -p 9090 -o -c-1
<script src="https://gist.github.com/d859686643f9fadb77ba.js"></script>
<script src="https://gist.github.com/9de2698b608fb7d19e0f.js"></script>
2
3
4
5
6
7
8
9
10
11
bash -c 'cd /code/scratch/gist/; EMBED=$(gist --paste --embed --copy) ; echo "<h4>$(xclip -o)</h4>$EMBED" >> index.html http-server -p 9090 -o -c'
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