Skip to content

Instantly share code, notes, and snippets.

View zcweng's full-sized avatar
🎯
working for better life

suke zcweng

🎯
working for better life
  • 找工作
  • china sichuan chengdu
View GitHub Profile
@zcweng
zcweng / gist:d68cc59ff7de3900d41194d6b6f35499
Last active September 1, 2024 10:59
Cron的简单实现
package org.example;
import lombok.RequiredArgsConstructor;
import java.time.LocalDateTime;
import java.time.temporal.TemporalAdjusters;
import java.util.Arrays;
import java.util.Objects;
import java.util.OptionalInt;
import java.util.stream.Collectors;
1、安装gclient环境、git、python2.7以上
2、使用翻GFW代理并导出配置代理环境变量:
suke-2:engine suke$ export http_proxy="http://127.0.0.1:8001"; export HTTP_PROXY="http://127.0.0.1:8001"; export https_proxy="http://127.0.0.1:8001"; export HTTPS_PROXY="http://127.0.0.1:8001"
3、配置git代理:
suke-2:engine suke$ git config --global http.proxy $HTTP_PROXY
suke-2:engine suke$ git config --global https.proxy $HTTPS_PROXY
PS.>>>git拉取完成后记得关闭:
suke-2:engine suke$ git config --global --unset http.proxy
suke-2:engine suke$ git config --global --unset https.proxy