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
#!/bin/bash
NAME=$(zenity --entry --text="Gist package name:")
EMBED=$(gist --filename $NAME --paste --embed --copy) || exit
cd /code/scratch/gist/
echo "<div><h4>$NAME</h4>$EMBED</div>" >> index.html;
http-server -p 9090 -o -c
#!/bin/bash
for x in $@; do
html=`cat $x`
echo html | grep '\<([A-Z]\S*).*\>'
target="$(dirname $x)/$(basename -s .html $x).js"
(echo "import { element } from 'deku'"; echo 'export default {'; echo -e " render: ({props}) => $html"; echo '}')> $target
done
#!/bin/bash
error() {
echo -e "\e[00m\e[31m" $@ "\e[00m"
}
out() {
echo -e "\e[00m\e[32m" $@ "\e[00m"
}
<script src="https://gist.github.com/9ffbcb409f56728a3e2d.js"></script>
<script src="https://gist.github.com/4761d70e603d67b82a8b.js"></script>
{
"NODE_ENV": "development",
"PORT": "3000",
"MONGODB": "localhost",
"DATADIR": "./data",
"WWWROOT": "../dist",
"JWT_KEY": "obfuscation-by-parlation",
"STRIPE_SK": "wtfjoke",
}
{
"NODE_ENV": "development",
"PORT": "3000",
"MONGODB": "localhost",
"DATADIR": "./data",
"WWWROOT": "../dist",
"JWT_KEY": "obfuscation-by-parlation",
"STRIPE_SK": "wtfjoke",
}
<script src="https://gist.github.com/859331666f9dac58b42b.js"></script>
<script src="https://gist.github.com/444533f49a02b68f3306.js"></script>
SUCCESS
1
<script src="https://gist.github.com/644adc800eabb3dcd21a.js"></script>
SUCCESS
1
2
3
4