摘要:        
魔法函数 __str__ vs __repr__ __str__是类实例化后。print(cls)触发调用,本质是print=>str=>str 调用 __repr__ 开发模式下,直接输出cls,会触发__repr__调用 __getitem__、__setitem__、__delitem__ 分    阅读全文
posted @ 2021-09-17 17:11
春树&暮云
阅读(55)
评论(0)
推荐(0)
        
            
        
        
摘要:        
多git账号配置 针对多个git分别生成公私秘钥 ssh-keygen -t rsa -C aa@git.com ssh-keygen -t rsa -C bb@git.com 将上述生成的公钥拷贝到对应git地址内的ssh key vim ~/.ssh/config Host github.com    阅读全文
posted @ 2021-09-17 15:04
春树&暮云
阅读(146)
评论(0)
推荐(0)
        
            
        
        
摘要:        
配置 vim ~/.tmux.conf 添加配置 set -g prefix C-a unbind C-b setw -g mode-keys vi set -g automatic-rename off set -g allow-rename off set-option -g history-l    阅读全文
posted @ 2021-09-17 14:53
春树&暮云
阅读(53)
评论(1)
推荐(0)
        
            
        
        
摘要:        
1. 在本机生成RSA公钥私钥 ssh-keygen -t rsa -f cc123 -C "cc123 key" #cc123指定产生的文件名, 默认id_rsa, -C 指定*.pub文件说明 一直回车,会在~/.ssh/目录下生成cc123、cc123.pub两个文件 2. 拷贝id_rsa.    阅读全文
posted @ 2021-09-17 14:43
春树&暮云
阅读(647)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1. 支持git拉取远程所有分支,脚本(git_pullall.sh)如下 #!/bin/env bash git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$r    阅读全文
posted @ 2021-09-17 14:34
春树&暮云
阅读(4156)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号