A lightweight node port of websocketd, originally written in go.
node-websocketd --port=8080 ./count.shA lightweight node port of websocketd, originally written in go.
node-websocketd --port=8080 ./count.sh| // Element#hasOwnPropery doesn't exist in IE8 | |
| var has = Object.prototype.hasOwnProperty; | |
| var table = document.createElement('table'); | |
| alert('this browser sucks: ' + has.call(table, ':')); |
| #!/bin/bash | |
| # ps -eo pcpu,pid,user,args | sort -r -k1 | |
| PS="ps" | |
| VERSION="0.0.1" | |
| version () { | |
| echo $VERSION | |
| } |
| #!/bin/sh | |
| PORT=5000 | |
| ## accept data from stdin | |
| while read -r chunk; do | |
| echo "$chunk" | umq push localhost $PORT | |
| done |
| #!/bin/bash | |
| # git-recent | |
| # | |
| # Call 'git fetch' and log all remote branches that have any activity | |
| # in the past n days (default=3). | |
| # | |
| # Place this script in your PATH, chmod +x it, and git will allow you to magically do: | |
| # $ git recent (days) | |
| # |
| define([ | |
| // jquery core is always required | |
| 'jquery/core', | |
| // jquery utilities | |
| 'jquery/ajax', | |
| 'jquery/data' | |
| ], function(jq, ajax, data) { |
| # GVIM Wrapper! | |
| # Usage: gvim [option] [file...] open files, tabbed, in a shared window (default one per terminal) | |
| # Options: (only one can be used) | |
| # -d, --dir Open files in a window specific to the current working directory | |
| # -n, --normal Execute command without server arguments | |
| # -s, --server <name> Open files in the window named <name> | |
| # --print Print command with full arguments | |
| # --usage Print this message and exit | |
| vim-gui-server() { | |
| local PROGRAM="$1" |
| int doubler(int x) { | |
| return 2 * x; | |
| } |
Hey Kyle, enjoyed the discussion, especially the stuff you're doing at socket supply.
I'm definitely a fan of decentralization. Building the decentralized internet is one of the main plot points of HBO's Silicon Valley, and even though it's comedy, it definitely resonated as a good idea.
In this decentralized model, how do you replicate some of the advantages of the cloud though? Redundancy, reliability, latency improvements from having multiple cloud regions? The decentralized social network example, that puts a huge amount of responsibility on the users, most of whom are not tech savvy, to maintain multiple backups of their data to prevent loss of say their photos, which is presently solved for them by having them backed up to icloud or Instagram or whatever.
I think in the silicon valley show, they built the decentralized internet by essentially making the entire p2p network a fault tolerant, redundant distributed data store. It would need some smart solutions for identity and access manageme