I hereby claim:
- I am puilp0502 on github.
- I am iamfranksheep (https://keybase.io/iamfranksheep) on keybase.
- I have a public key ASCIwckgEM-HLNx4tVTIqfOc0O7zM0zI_HxEAHphHvNw2wo
To claim this, I am signing this object:
| echo "#### Installing setuptools... ####" | |
| wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python > /dev/null | |
| if [[ ! $? ]]; then | |
| echo "Failed!" | |
| exit 1 | |
| fi | |
| echo "#### Installing pip... ####" | |
| wget https://bootstrap.pypa.io/get-pip.py -O - | sudo python > /dev/null | |
| if [[ ! $? ]]; then |
| #Assuming you followed the guide at https://github.com/jupyterhub/jupyterhub/wiki/Using-sudo-to-run-JupyterHub-without-root-privileges | |
| [Unit] | |
| Description=JupyterHub Server | |
| [Service] | |
| #replace with your jupyterhub running user | |
| User=rhea | |
| Group=rhea | |
| WorkingDirectory=/etc/jupyterhub/ | |
| ExecStart=/usr/local/bin/jupyterhub --JupyterHub.spawner_class=sudospawner.SudoSpawner |
| import random | |
| import string | |
| print("".join([random.SystemRandom().choice(string.digits + string.ascii_letters + string.punctuation) for i in range(50)])) |
| [Unit] | |
| Description=uWSGI Emperor service | |
| [Service] | |
| RuntimeDirectory=uwsgi | |
| RuntimeDirectoryMode=755 | |
| User=emperor | |
| Group=www-data | |
| ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites | |
| Restart=always |
| [uwsgi] | |
| # Django-related settings | |
| # the base directory (full path) | |
| chdir = /home/ubuntu/(project-dir) | |
| # Django's wsgi file | |
| module = (project-name).wsgi:application | |
| # the virtualenv (full path) | |
| home = /home/ubuntu/.venv/(venv-name)/ |
| #!/bin/bash | |
| # uWSGI & nginx installation script | |
| # Created at 2017-06-27 by Frank Yang (https://github.com/puilp0502) | |
| # Tested on Ubuntu Server 16.04 LTS | |
| # Check if user is root | |
| if [[ $UID -ne '0' ]]; then | |
| echo "This script needs to be run as root; exiting..." | |
| exit 0 |
| 0x56e292a201c0cfFC3c7b008cc4d572D7F82AA733 |
I hereby claim:
To claim this, I am signing this object:
| pragma solidity ^0.4.0; | |
| contract KVStore { | |
| mapping(uint64 => string) public map; | |
| function set(uint64 key, string value) public { | |
| map[key] = value; | |
| } | |
| function get(uint64 key) public view returns (string) { | |
| return map[key]; |
| #!/bin/sh | |
| # Docker CE Installation Script | |
| # Based on https://docs.docker.com/install/linux/docker-ce/ubuntu | |
| # Uninstall old versions | |
| sudo apt-get remove docker docker-engine docker.io containerd runc | |
| # Setup the repositories | |
| sudo apt-get update | |
| sudo apt-get install -y \ |