一、小班上

星期一星期二星期三星期四星期五星期六星期日















画画

16:30-19:45





宝灵童音

15:30-16:30


二、小班下

星期一星期二星期三星期四星期五星期六星期日












科探研究

10:20-11:20



画画

18:30-19:45

英语

18:30-20:30


乐高

18:40-20:00




三、小中班暑假

星期一星期二星期三星期四星期五星期六星期日












科探研究

10:20-11:20



画画

18:30-19:45

英语

18:30-20:30


乐高

18:40-20:00




四、中班上

星期一星期二星期三星期四星期五星期六星期日





幼儿体能

8:50-9:50

口才表演

10:00-11:20







电子琴

14:00-15:00



画画

18:30-19:45

英语

18:30-20:30


乐高

18:40-20:00



日常打卡:英语打卡25分钟;语文打开25分钟;

到家时间:周二20:10;周三21:00;周五20:30;


近期总是无法push代码,想着开启V2RAYN还是无效果,研究强制配置git走代理形式

命令行配置代理方式一

git config --global http.proxy http://代理服务器地址:端口号
git config --global https.proxy https://代理服务器地址:端口号

如果有用户名密码按照下面命令配置

git config --global http.proxy http://用户名:密码@代理服务器地址:端口号
git config --global https.proxy https://用户名:密码@代理服务器地址:端口号

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy



基于自动化配置需要,在使用Azure的时候发现可以快速进行自动化部署

以下采用VPC服务器、Python和Gunicorn进行自动化部署,配置文件如下:

name: Build and deploy Python app to Custom App

on:
    # 监听 push动作
    push:
        branches:
            - main
    # 手动触发
    workflow_dispatch:

jobs:
    deploy:
        runs-on: ubuntu-latest
        steps:
            -   name: 'Deploy to Custom App'
                uses: appleboy/ssh-action@master
                with:
                    host: ${{ secrets.DC_HOST }} # 公网 IP 或 域名
                    username: ${{ secrets.DC_USER }} # 登录名
                    password: ${{ secrets.DC_PASS }} # 密码
                    # 类似在服务端的终端-执行以下操作
                    script: |
                        cd /root/stock_py/
                        git pull
                        python3 -m venv venv
                        source venv/bin/activate
                        pip install -r requirements.txt
                        gunicorn -c gunicorn.conf.py wsgi:app


家里装了移动送的300Mbps宽带,8月份特殊时期结束以后,突然发现Github的代码提交成了一大难点,还是用了VPN等方式,仍然存在概率性问题。特此记录此方法。

1、查找真实IP

Github网站可以打开,但是提交代码就不行。先查看ssh.github.com 这个域名对应的ip是哪个?

这个可以直接在 https://ipaddress.com/website/ssh.github.com。查到该ip。

2023-09-16_225415.png

2、查找该IP是否可用。

ssh -T -p 443 [email protected]
The authenticity of host '[140.82.114.36]:443 ([140.82.114.36]:443)' can't be established.
ECDSA key fingerprint is SHA256:p2QA
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[140.82.114.36]:443' (ECDSA) to the list of known hosts.
XXXXXX

到此基本可以确定为有用的了,则进行配置直接访问该地址

3、这时候,找到当前用户目录下的.ssh/config 文件,如果没有就自己建一个。只要将Hostname ssh.github.com换成ip地址140.82.112.35即可。

Host github.com
Hostname 140.82.112.35
Port 443


基于Python在Win环境下总是出现各类问题,想着采用新的WSL环境来部署运行Python项目。

一、安装WSL系统,参考微软官方教程

wsl --install

安装完成后即可等待重启,然后运行Unbutu,首次会提示初始化,并设置用户名和密码,之后可在计算机里看到Linux目录。

二、安装pip等工具

Unbutu系统自带了python3,但是发现无pip命令,执行安装(sudo apt install python3-pip)时报错,报错如下

Package python3-pip is not available but is referred to by another package.
This may mean that the package is missing, has been obsoleted, oris only available from another source
E: Package 'python3-pip' has no installation candidate

执行以下命令后,即可

sudo apt-get update
sudo apt-get upgrade  #Optional
sudo apt install python3-pip

三、后续安装virtualenv时会提示警告,导致无法使用该命令

WARNING: The script virtualenv is installed in '/home/desk/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

解决方案如下:

echo 'export PATH=$PATH:$HOME/.local/bin' >>~/.bashrc
source ~/.bashrc