Skip to content

Instantly share code, notes, and snippets.

@unix2xp
unix2xp / Dockerfile
Last active September 24, 2019 10:05
Dockerfile for jupyter environment
FROM ubuntu:latest
MAINTAINER x zx unix2xp@gmail.com
RUN apt-get update && apt-get install --no-install-recommends -y -q wget bzip2 nano tzdata sudo unzip && rm /etc/localtime && echo "Asia/Shanghai" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && useradd -ms /bin/bash samx && addgroup samx sudo
USER samx
RUN wget --no-check-certificate https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && bash ~/miniconda.sh -b -p ~/miniconda && rm ~/miniconda.sh && ~/miniconda/bin/conda install numpy pandas lxml jupyter -y && ~/miniconda/bin/pip install bs4 && ~/miniconda/bin/pip install threadpool tushare pyecharts pyecharts_snapshot apscheduler && cd ~ && wget --no-check-certificate https://gist.github.com/unix2xp/95d7dc8ffa24c68a525bdfa3f90c1adb/raw/7e71ccf459215ff1ba90176fd5ec0f7ca965eace/jupyter_config.py https://gist.github.com/unix2xp/95d7dc8ffa24c68a525bdfa3f90c1adb/raw/7e71ccf459215ff1ba90176fd5ec0f7ca965eace/startnb.sh && mkdir /home/samx/notebooks
WORKDIR /home
@unix2xp
unix2xp / ubuntu_initialize_script.sh
Last active December 23, 2023 18:11
OS: Ubuntu: Setup script
alias aptg='sudo apt-get install -y'
alias aptr="sudo apt-get remove --purge'
sudo apt-get install -y gnome-shell
sudo apt-get remove --purge totem -y
sudo apt-get install -y tilda gnome-do gnome-tweak-tool compizconfig-settings-manager proxychains vim smplayer nautilus-open-terminal
sudo apt-get autoremove --purge indicator-messages*
sudo apt-get autoremove --purge telepathy-indicator
# configurations