- Raspberry Pi
- SD card
- Electric and network cable to RPi
- Download a distro image
- Connect SD card to computer
- List all available disks
var a = (keyCode)=>{ | |
var keyEvent = document.createEvent("Events"); | |
keyEvent.initEvent("keydown", true, true); | |
keyEvent.keyCode = keyCode; | |
keyEvent.which = keyCode; | |
document.body.dispatchEvent(keyEvent); | |
} | |
const LEFT = 37; | |
const UP = 38; |
#!/bin/bash -e | |
# Example executables | |
readonly commands=(python git gitbook cp) | |
function is_available { | |
command -v $1 >/dev/null 2>&1 || { echo >&2 "I require $1 but it's not installed. Aborting."; exit 1; } | |
} | |
# Example usage (single) |
For OS X 10.12
If you get this error when installing the npm package canvas
$ npm install canvas
npm WARN gentlyRm not removing /Users/simon/repos/mac-setup/node_modules/.bin/rimraf as it wasn't installed by /Users/simon/repos/mac-setup/node_modules/rimraf
> canvas@1.6.6 install /Users/simon/repos/mac-setup/node_modules/canvas
> node-gyp rebuild
# Taken from post in https://github.com/gliderlabs/docker-alpine/issues/158 | |
FROM gliderlabs/alpine:latest | |
# install system packages | |
RUN apk add --update --no-cache \ | |
python \ | |
python-dev \ | |
build-base \ | |
linux-headers \ | |
pcre-dev \ |
$ docker rmi $(docker images -a | grep "^" | awk '{print $3}')
–ctrl a c -> create new window | |
–ctrl a A -> set window name | |
–ctrl a w -> show all window | |
–ctrl a 1|2|3|… -> switch to window n | |
–ctrl a ” -> choose window | |
–ctrl a ctrl a -> switch between window | |
–ctrl a d -> detach window | |
–ctrl a ? -> help | |
–ctrl a [ -> start copy, move cursor to the copy location, press ENTER, select the chars, press ENTER to copy the selected characters to the buffer | |
–ctrl a ] -> paste from buffer |