Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
After @mikeal and @lyle purchased Chromebooks for kids activities at NodeConf 2014, I was very impressed with the device and decided to explore this as a laptop and hacking device for my kids (7 & 8). I'd love to retain the simplicity of the web-focused ChromeOS experience while letting my kids hack on NodeBots and learn how to program.
It seems like the platforms that ChromeOS runs on are quite diverse. The Samsung 303C hit the right balance of being an aesthetically pleasing looking device, having respectable build quality and the amazing $250 price point. The 303C has an ARM processor. Not all Chromebooks do. I'm writing the below step-by-step very specifically for this system.
""" | |
A deep neural network with or w/o dropout in one file. | |
License: Do What The Fuck You Want to Public License http://www.wtfpl.net/ | |
""" | |
import numpy, theano, sys, math | |
from theano import tensor as T | |
from theano import shared | |
from theano.tensor.shared_randomstreams import RandomStreams |
KEY=$(xauth list |grep $(hostname) | awk '{ print $3 }' | head -n 1) | |
DCK_HOST=docker-skype | |
xauth add $DCK_HOST/unix:0 . $KEY | |
docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v $HOME/.Xauthority:/tmp/.Xauthority \ | |
-v /dev/snd:/dev/snd \ | |
-e DISPLAY=unix$DISPLAY \ | |
-e XAUTHORITY=/tmp/.Xauthority \ | |
-h $DCK_HOST \ |
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
#!/usr/bin/env bash | |
set -euo pipefail | |
usage="$0: <up|down> [connection name]" | |
action="${1?$usage}" | |
connection="${2:-GDS VPN Developer}" | |
oath_key=vpn | |
pass_key=gds/vpn |