CLICK ME
yes, even hidden code blocks!
print("hello world!")| # Instructions for 4.13 and cuda 9.0 RC | |
| # If upgrading from 4.11 and cuda 8.0 | |
| $ sudo apt-get purge --auto-remove libcud* | |
| $ sudo apt-get purge --auto-remove cuda* | |
| $ sudo apt-get purge --auto-remove nvidia* | |
| # also remove the container directory direcotory at /usr/local/cuda-8.0/ | |
| # Install Intel Graphics Patch Firmwares (This should reboot your system): | |
| bash -c "$(curl -fsSL http://bit.ly/IGFWL-install)" |
| wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1 | |
| # --no-check-cerftificate was necessary for me to have wget not puke about https | |
| curl -LJO https://github.com/joyent/node/tarball/v0.7.1 |
docker run -e ETCDCTL_API=3 --net=container:$(docker ps | grep -E "rancher/rancher:|rancher/rancher |rancher/rancher@|rancher_rancher" | awk '{ print $1 }') quay.io/coreos/etcd:v$(docker exec $(docker ps | grep -E "rancher/rancher:|rancher/rancher |rancher/rancher@|rancher_rancher" | awk '{ print $1 }') curl -s http://localhost:2379/version | docker run -i oildex/jq:1.6 jq -r .etcdserver) etcdctl get / --prefix --keys-only
| #!/bin/bash | |
| docker run -d -p 80:80 -p 443:443 --name rancher-server rancher/rancher:latest | |
| while ! curl -k https://localhost/ping; do sleep 3; done | |
| # Login | |
| LOGINRESPONSE=`curl -s 'https://127.0.0.1/v3-public/localProviders/local?action=login' -H 'content-type: application/json' --data-binary '{"username":"admin","password":"admin"}' --insecure` | |
| LOGINTOKEN=`echo $LOGINRESPONSE | jq -r .token` | |
| # Change password |
<details> <summary>How do I dropdown?</summary> <br> This is how you dropdown.
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Moby VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| st = status | |
| aa = add -A . |