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 | |
# 获取当前分支名 | |
current_branch=$(git symbolic-ref --short HEAD) | |
# 拉取远程分支的最新代码 | |
git fetch origin $current_branch | |
# 检查本地分支和远程分支的差异 | |
diff=$(git rev-list HEAD...origin/$current_branch) |
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
<Configuration ID="2fc2abf4-a17b-477f-a0a5-7636e83ddfd5"> | |
<Info Description="Simple's Office Configuration" /> | |
<Add OfficeClientEdition="64" Channel="PerpetualVL2019"> | |
<Product ID="ProPlus2019Volume" PIDKEY="NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP"> | |
<Language ID="zh-cn" /> | |
<ExcludeApp ID="Access" /> | |
<ExcludeApp ID="Groove" /> | |
<ExcludeApp ID="Lync" /> | |
<ExcludeApp ID="OneDrive" /> | |
<ExcludeApp ID="Outlook" /> |
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
# https://mmgal.com | |
# https://okloli.com | |
# 环境变量 | |
$computername = [environment]::GetEnvironmentVariable('computername').ToLower() | |
$username = [environment]::GetEnvironmentVariable('username').ToLower() | |
$bookmarks = [environment]::GetEnvironmentVariable('bookmarks') | |
oh-my-posh init pwsh --config "$bookmarks/ohmyposh/paradox.omp.json" | Invoke-Expression | |
Import-Module posh-git |
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
// ==UserScript== | |
// @name Copy M3U8 URL | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @require https://cdn.jsdelivr.net/npm/jquery@3.4.0/dist/jquery.min.js | |
// @match *://*/* | |
// @grant unsafeWindow | |
// ==/UserScript== |
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 | |
cd ~ | |
yum install -y wget gcc | |
wget --no-check-certificate https://ffmpeg.org/releases/ffmpeg-4.3.3.tar.gz | |
tar -xf ffmpeg-4.3.3.tar.gz -C /usr/local/ | |
cd /usr/local/ffmpeg-4.3.3 | |
mkdir /usr/local/ffmpeg4 | |
./configure --disable-x86asm --prefix=/usr/local/ffmpeg4 | |
make | |
make install |
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
iwr -Uri "https://docs.spring.io/spring-boot/docs/current/reference/pdf/spring-boot-reference.pdf" ` | |
-OutFile "C:\Users\path\to\doc\spring-boot-reference.pdf"; ` | |
Start-Process C:\Users\path\to\SumatraPDF.exe C:\Users\path\to\doc\spring-boot-reference.pdf | |
iwr -Uri "https://docs.spring.io/spring-cloud/docs/current-SNAPSHOT/reference/pdf/spring-cloud.pdf" ` | |
-OutFile "C:\Users\path\to\doc\spring-cloud.pdf" | |
Start-Process C:\Users\path\to\SumatraPDF.exe C:\Users\path\to\doc\spring-cloud.pdf |
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 | |
printf '\n\n\n\n\n\n修改yum源\n\n\n\n\n\n' | |
sleep 3 | |
# 修改yum源 | |
sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup | |
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo | |
sudo sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo | |
sudo yum makecache |
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
git --version | |
Write-Host "###### Git ######`n`n" | |
java -version | |
Write-Host "###### Java ######`n`n" | |
go version | |
Write-Host "###### Go ######`n`n" | |
mvn -v |
NewerOlder