This is a repo about init my dev environment
- 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.sh: change apt mirror sources of ubuntu16/18/19/20/22
- createdatabase.py: create database for django project
- build_development_environment.sh: install packages for python and vue develop environment
- did_upgrade_py.sh: make it easy for ubuntu to install python
Usage:
# Change source of pip to mirrors.cloud.tencent.com, worked at both Linux and Windows(Run with Git Bash).
curl https://raw.githubusercontent.com/waketzheng/carstino/main/pip_conf.py|python
# Change apt source of ubuntu16/18/19/20 to tencent cloud.
curl https://raw.githubusercontent.com/waketzheng/carstino/main/change_ubuntu_mirror_sources.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
- build_development_environment.sh: For new ubuntu machine(version>=16), just run this script.
./build_development_environment.sh
- Initial
cd
mkdir archives
cd archives
git clone https://github.com/waketzheng/carstino.git
cd carstino
cp to_my_server_43.139.125.122.sh ${ANY_PATH}/any_prefix_<target_ip_or_domain>.sh
# Remember to change `target_ip_or_domain` to your server ip or domain
- Usage
- ssh to your server
sh ${ANY_PATH}/any_prefix_<target_ip_or_domain>.sh
- scp file or directory to your server
# scp -r local_file user@host:~/
sh ${ANY_PATH}/any_prefix_<target_ip_or_domain>.sh /path/to/local/file_or_directory
# scp -r local_file user@host:~/subpath
SCP_DIR="subpath" sh ${ANY_PATH}/any_prefix_<target_ip_or_domain>.sh /path/to/local/file_or_directory
- scp file or directory from server to local
sh ${ANY_PATH}/any_prefix_<target_ip_or_domain>.sh /path/in/server/file_or_directory /local/path/