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
bash -c 'cd /code/scratch/gist/ &&\
EMBED=$(gist --paste --copy --embed) &&\
SHORT=$(echo "Success") &&\
echo "<div> <h4>$SHORT</h4> $EMBED </div>" >> index.html &&\
http-server -p 9090 -o -c'
<script src="https://gist.github.com/644adc800eabb3dcd21a.js"></script>
<script src="https://gist.github.com/1439a3b6527779e02b9e.js"></script>
1
<script src="https://gist.github.com/c8db04f08f79463f21c5.js"></script>
view rawa.rb hosted with ❤ by GitHub
1
<script src="https://gist.github.com/a2f7e2fe707a6f986ace.js"></script>
view rawa.rb hosted with ❤ by GitHub
1
<script src="https://gist.github.com/85ea8458078598155eb6.js"></script>
view rawa.rb hosted with ❤ by GitHub
<script src="https://gist.github.com/237b1be1c5e98097370a.js"></script>
<script src="https://gist.github.com/237b1be1c5e98097370a.js"></script>
a.rb hosted with ❤ by GitHub
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
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'
2
3
4
5
6
7
8
9
10
11