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/sh | |
Echo_c(){ | |
echo "\033[1;33m\n$1\n\033[0m" | |
} | |
Rand_Name(){ | |
openssl rand -base64 8 | md5sum | cut -c1-8 | |
} |
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
name: Build With Docker Push | |
on: | |
watch: | |
types: [started] | |
jobs: | |
Build_With_Docker_Push: | |
name: AWVS14 Docker Build | |
runs-on: ubuntu-latest | |
steps: |
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
name: Delete old workflow runs | |
on: | |
schedule: | |
- cron: '0 0 * * MON' | |
workflow_dispatch: | |
inputs: | |
days: | |
description: 'Number of days.' | |
required: true | |
default: "20" |
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
- uses: dev-drprasad/delete-older-releases@v0.2.0 | |
with: | |
repo: User/repo | |
keep_latest: 3 | |
delete_tag_pattern: "" | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} |
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
- name: Get version | |
id: time_now | |
run: echo "::set-output name=dir::$(date +%Y_%m_%d)" | |
- | |
name: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: "App/**" | |
body: "README" | |
tag_name: ${{ steps.time_now.outputs.dir }} |
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 | |
# =================基本配置================= | |
NETWORK_CARD='eth2' | |
# =================基本配置================= | |
# 将屏幕输出的文件,同时保存在文档中 | |
# 用到知识点:文件描述符与重定向,管道 | |
logfile=checkSystemConfig.log | |
fifofile=checkSystemConfig.fifo |
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
[ ca ] | |
default_ca = CA_default | |
[ CA_default ] | |
default_md = sha256 | |
[ v3_ca ] | |
subjectKeyIdentifier=hash | |
authorityKeyIdentifier=keyid:always,issuer | |
basicConstraints = critical,CA:true | |
[ req ] | |
distinguished_name = req_distinguished_name |
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/env bash | |
set -ex | |
Docker_backup(){ | |
backup_data=$1-$(date +%Y-%m-%d-%H:%M:%S) | |
echo -e "\n###### Docker Stop $1 ######\n" >> $Logs_path/$backup_data.log | |
docker stop $1 >> $Logs_path/$backup_data.log | |
backup_num=$(ls -l $Backup_path/$1* | wc -l) | |
echo -e "\n###### $1 Backup ######\n" >> $Logs_path/$backup_data.log | |
zip -r $Backup_path/$backup_data.zip /docker/$2/ >> $Logs_path/$backup_data.log |
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
#!/usr/bin/env python3 | |
import sys, shutil, os | |
SYSTEMDISK = "MacintoshHD-DATA" | |
NEWPATH = sys.argv[1] | |
OLDPATH = "/Volumes/" + SYSTEMDISK + NEWPATH | |
def getinfo(): | |
print("@1: PWD: " + os.path.dirname(NEWPATH)) |
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
#!/usr/bin/env sh | |
clear | |
echo "#########################\n\nWorking on the WIZ tunnel\n" | |
if [ "$(ps -e | grep "0.0.0.0:9999" | grep -v "grep" | cut -d " " -f 1)" == "" ]; then | |
ssh -C -T -N -L 0.0.0.0:9999:10.0.4.6:80 wiz@bit & | |
else | |
kill $(ps -e | grep "0.0.0.0:9999" | grep -v "grep" | cut -d " " -f 1) | |
ssh -C -T -N -L 0.0.0.0:9999:10.0.4.6:80 wiz@bit & |
OlderNewer