What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-08 02:05:10
dockerize flask app
FROM ubuntu:16.04 MAINTANER Your Name "[email protected]" RUN apt-get update -y && \ apt-get install -y python-pip python-dev # We copy just the requirements.txt first to leverage Docker cache COPY ./requirements.txt /app/requi... Add solution -
Shell/Bash 2021-10-04 08:03:02
how to host a discord bot on a raspberry pi
#how to create and host a Discord Bot on a rasberry pi 1. Navigate to the Discord Developer Console 2. Click "New App" 3. Give it a name, and then click "Create App" 4. Click "Create a Bot User" 5. Keep note of the Token, as... Add solution -
Shell/Bash 2021-09-27 18:29:02
why installing pandas take time in docker
FROM python:3.8-alpine RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories RUN apk add --update --no-cache py3-numpy py3-pandas@testing ENV PYTHONPATH=/usr/lib/python3.8/site-packages COPY . /app... Add solution -
Shell/Bash 2021-09-21 11:52:02
free ssl certificate for nginx
# add repository sudo apt-add-repository -r ppa:certbot/certbot # update system sudo apt update # install certbot sudo apt install certbot python3-certbot-nginx # generate and create SSL for server certbot --nginx -d example.com -d www.example.com Add solution -
Python 2021-09-19 22:01:02
change the default python version mac
#install or update brew $ brew install pyenv #install $ pyenv install 3.7.3 #make default $ pyenv global 3.7.3 # and verify $ pyenv version 3.7.3 (set by /Users/mbbroberg/.pyenv/version) $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n &n... Add solution -
Other 2021-09-17 01:29:02
nick j dotfiles
# I would consider these packages essential or very nice to have. The GTK # version of Vim is to get +clipboard support, you'd still run terminal Vim. sudo apt-get update && sudo apt-get install -y \ vim-gtk \ tmux \ git \ gpg \ curl \ ... Add solution -
Python 2021-09-11 23:52:02
E: Unable to locate package python3-pip docker file
.... # use this for ubuntu 14.04 or 16.04 RUN apt-get update -y && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa RUN apt-get update -y && apt-get install -y \ python3.6 \ python3-pip \ ... Add solution