Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
# You can use proxies if you have network trouble in accessing GitHub, e.g.
irm get.scoop.sh -Proxy 'http://' | iex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# define color | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
function enable_proxy() { | |
git config --global http.proxy "$1" | |
git config --global https.proxy "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# retry command with max retries and sleep time | |
# Notes: No Spaces between commas | |
# usage: $(call retry_command, command[,max_retries[,sleep_time]]) | |
# example1: $(call retry_command, command -v jx,3,1s) | |
# example2: $(call retry_command, command -v jx) | |
# example3: $(call retry_command, command -v jx,3) | |
define retry_command | |
@max_retries=$(or $(2),10); \ | |
sleep_time=$(or $(3),5s); \ | |
retries=0; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: help | |
.DEFAULT_GOAL := help | |
# Show help | |
help: | |
@echo "" | |
@echo "Usage:" | |
@echo " make [target]" | |
@echo "" | |
@echo "Targets:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent any | |
stages { | |
stage('Conventional Analysis') { | |
steps { | |
script { | |
echo "GERRIT_CHANGE_SUBJECT: ${GERRIT_CHANGE_SUBJECT}" | |
def changeSubj = "$GERRIT_CHANGE_SUBJECT".trim() | |
def match = (changeSubj =~ /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z]+\))?:\s.+$/) | |
if (!match) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: Compose specification | |
services: | |
proxy: | |
image: nginx | |
container_name: nginx | |
restart: always | |
ports: | |
- "8080:80" | |
healthcheck: | |
# 1. if curl or wget is not available, maybe try this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[base] | |
name=CentOS-vault-6.10 - Base - mirrors.aliyun.com | |
failovermethod=priority | |
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/ | |
http://mirrors.aliyuncs.com/centos-vault/6.10/os/$basearch/ | |
http://mirrors.cloud.aliyuncs.com/centos-vault/6.10/os/$basearch/ | |
gpgcheck=1 | |
gpgkey=http://mirrors.aliyun.com/centos-vault/RPM-GPG-KEY-CentOS-6 | |
#released updates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"registry-mirrors":[ | |
"https://hub-mirror.c.163.com/", | |
"https://docker.mirrors.ustc.edu.cn/", | |
"https://reg-mirror.qiniu.com/", | |
"https://registry.docker-cn.com", | |
"https://mirror.ccs.tencentyun.com" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#============================================================================= | |
# dark_powered.toml --- dark powered configuration example for SpaceVim | |
# Copyright (c) 2016-2022 Wang Shidong & Contributors | |
# Author: Wang Shidong < wsdjeg@outlook.com > | |
# URL: https://spacevim.org | |
# License: GPLv3 | |
#============================================================================= | |
# All SpaceVim option below [option] section | |
[options] |
NewerOlder