search unix2dos search dos2unix
[ apt | brew | yum ] install unix2dos
#!/bin/bash | |
export GitKey="github_tocken" | |
export GitUser="github_user" | |
export GitApi="https://api.github.com/repos" | |
# init | |
printf "%s\n" "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-ce-archive-keyring.gpg] https://download.docker.com/linux/debian buster stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list | |
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/docker-ce-archive-keyring.gpg | |
sudo apt update -y && sudo apt upgrade -y |
name: PR 预处理 | |
on: | |
push: | |
branches: | |
- 'feature/**' | |
permissions: | |
pull-requests: write | |
jobs: |
name: 编译测试 | |
# 该脚本仅在 PR MERGE 的时候进行测试,不建议 将测试结果上传到 github | |
# 可以通过变量来判断,比如 PR close 的时候 发布 github release & tag | |
on: | |
pull_request: | |
branches: | |
- master # 正式版本 | |
types: | |
- synchronize |
#!/usr/bin/env bash | |
# set -ex | |
clear | |
if curl -s -m 5 -o /dev/null -w "%{http_code}" www.google.com | grep -q "200"; then | |
ghproxy="https:/" | |
ghtype=false | |
else |
#!/usr/bin/env bash | |
sudo apt-get -qq install util-linux zsh git wget -y | |
sudo yum install util-linux zsh git wget -y | |
brew install zsh git wget | |
sudo chsh -s /bin/zsh | |
if curl -s -m 5 -o /dev/null -w "%{http_code}" www.google.com | grep -q "200"; then | |
ghtype=false | |
ghproxy="https:/" |
#!/usr/bin/env bash | |
/bin/bash -c "$(curl -fsSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | sed -e "s|https://github.com|https://mirror.ghproxy.com/https://github.com|g;s|https://raw.githubusercontent.com|https://mirror.ghproxy.com/https://raw.githubusercontent.com|g")" |
if curl -s -m 5 -o /dev/null -w "%{http_code}" www.google.com | grep -q "200"; then | |
echo "true" | |
else | |
echo "false" | |
fi |
FROM ubuntu:20.04 | |
WORKDIR /app | |
RUN apt-get -qq update \ | |
&& apt-get -qq upgrade \ | |
&& ln -sf "/usr/share/zoneinfo/${TZ}" /etc/localtime \ | |
&& echo "${TZ}" > /etc/timezone \ | |
&& ln -sf "$(which bash)" "$(which sh)" \ | |
&& apt-get -qq full-upgrade \ |
search unix2dos search dos2unix
[ apt | brew | yum ] install unix2dos
$portvalue = 33891 | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp' -name "PortNumber" -Value $portvalue | |
New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Program "%SystemRoot%\system32\svchost.exe" -Profile Any -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue | |
New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Program "%SystemRoot%\system32\svchost.exe" -Profile Any -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue | |
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" | |
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp' -name "PortNumber" |