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
@ds0nt
ds0nt / name
Created September 20, 2015 07:35
set -o nounset set -o errexit command || { echo "command failed"; exit 1; } if ! command; then echo "command failed"; exit 1; fi set +e command1 command2 set -e
#!/bin/bash
export APIROOT=http://klouds.io:8080
export HOSTNAME=klouds.io
export WWW_PORT=80
export API_PORT=8080
export JWT_KEY=key1
export REDIS_HOST=klouds.redis.cache.windows.net
@ds0nt
ds0nt / -
Created September 15, 2015 08:29
log
@ds0nt
ds0nt / command.sh
Last active September 13, 2015 05:51
nodejs docker sandbox
#!/bin/bash
# exposes host dir /code to container as /toast-me
# but now that I think about it.. I could pipe it through stdin
docker run --rm \
-v /code:/toast-me \
iojs:latest \
node -e 'require("fs").readFile("/toast-me/npm-crawlers.data", "utf8", function (a,b) { console.log(b) } )'
@ds0nt
ds0nt / -
Created September 13, 2015 05:21
docker run -i -v /code:/toast-me --rm iojs:latest node -pe 'require("fs").readdirSync("/toast-me")'
[ 'ESs0nt',
'asg',
'codebox-nexus',
'dot-files',
'dot-files-sandstorm',
'ds0nt',
'ds0ntify',
'go',
'klouds',
@ds0nt
ds0nt / bash-hacks.sh
Last active September 3, 2015 07:57
Awesome bash hacks --- (for web devs & ninjas, for dot-file pride, for pleasing the monospace gods )
#### #### #### #### #### ####
# / ! /
# / e /
# / M /
# / /
# / k /
# / r /
# / o /
# F /
# /
@ds0nt
ds0nt / Pure CSS Progress.markdown
Created August 26, 2015 09:07
Pure CSS Progress

Pure CSS Progress

Pure CSS Progress, a pretty liquid progress-bar. I've coded Pure CSS Navigation triggers too, if you want the bar's code just follow the css comments :)

A Pen by Rafael González on CodePen.

License.

@ds0nt
ds0nt / Shiney Button.markdown
Created August 26, 2015 09:02
Shiney Button
apiVersion: v1
kind: Pod
metadata:
labels:
name: cassandra
name: cassandra
spec:
containers:
- args:
- /run.sh
#!/bin/bash
quiptoken="UmVlQU1BWGh6QmQ=|1470115736|SdtQMKJViZWr2LWXWyajwNFIxmcaLqJ6if289R0SQaU="
file=$HOME/human-fools
failure() {
echo "failure";
exit 1;
}