# toolkits **Repository Path**: baiwenchao/toolkits ## Basic Information - **Project Name**: toolkits - **Description**: toolkits for regular work - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-05 - **Last Updated**: 2022-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # toolkits toolkits for regular work * `ip_updater` * `update_linux` * example: ```bash python update_linux.py github.com ``` * command above will update ipaddr for the given domain (e.g. github.com) * the ipaddr is fetched from * for some domain (e.g. baidu.com), relevant response will return more than 1 ip address, then the command will write all of them into /etc/hosts * `update_win` * example: ```bash python update_win.py github.com ``` * to use linux-like command, we should config env variable for Git (since Git contains Linux commands such as "sed") * the example path: D:\Softwares\Git\usr\bin * proxy should be turned off in order to avoid ValueError: `check_hostname requires server_Hostname`