This is a repo about init my
- a script to init my development environment at a new machine.
- Some useful scripts for linux os system.
- rstrip.py: strip white spaces at the end of every line.
- pip_conf.py: switch pip source to aliyun or douban or qinghua.
- change_ubuntu_mirror_sources.py: change apt mirror sources of ubuntu16/18
- createdatabase.py: create database for django project
- django_manage_completion.bash: auto completion for my custom command
mg
, which is for django manage - .switch_source_pipenv.py: switch pip source of Pipfile
Usage:
# Change source of pip to huawei.com, worked at both Linux and Windows(Run with Git Bash).
curl https://raw.githubusercontent.com/waketzheng/carstino/master/pip_conf.py|python
# Change apt source of ubuntu16/18/19 to huawei cloud.
curl https://raw.githubusercontent.com/waketzheng/carstino/master/change_ubuntu_mirror_sources.py|python
# Swith source of pipenv to huawei
curl https://raw.githubusercontent.com/waketzheng/carstino/master/.switch_source_pipenv.py|python
- init_my_dev.py: setting for vim, git store, pipenv aliases.
PS: I usually init my development environment in a new machine as following
git clone https://github.com/waketzheng/carstino.git
cd carstino
./init_my_dev.py
vagrant box add https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/eoan/current/eoan-server-cloudimg-amd64-vagrant.box --name ubuntu/eoan
vagrant up; vagrant ssh
git clone https://github.com/waketzheng/carstino
./carstino/change_ubuntu_mirror_courses.py
vagrant reload; vagrant ssh