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 / 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 / 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 / -
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 / 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 15, 2015 08:29
log
#!/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 / 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
@ds0nt
ds0nt / name
Created September 20, 2015 18:37
set -o nounset set -o errexit command || { echo "command failed"; exit 1; } if ! command; then echo "command failed"; exit 1; fi
@ds0nt
ds0nt / name
Created September 21, 2015 17:06
# bullshit ^ is not the working directory BASE=/home/ubuntu/src/github.com/kloudsio/klouds.io WWW=$BASE/www CLIENT=$BASE/client SERVER=$BASE/server # # build the web client # cd $CLIENT mkdir -p "$WWW" cp -rvu $CLIENT/src/public/* $WWW npm install npm install -g babel browserify myth watchify envify # transpile client ./scripts/deku-wrap.sh browserify -v -d src/app.js -t babelify -t envify -o $WWW/app.js myth src/styles/app.css $WWW/app.css # cd $SERVER npm install cd $BASE npm install koa koa-static unruly debug
@ds0nt
ds0nt / -
Created September 21, 2015 17:06
# bullshit ^ is not the working directory
BASE=/home/ubuntu/src/github.com/kloudsio/klouds.io
WWW=$BASE/www
CLIENT=$BASE/client
SERVER=$BASE/server
#
# build the web client
#