Skip to content

Instantly share code, notes, and snippets.

View thesixonenine's full-sized avatar
🎯
Focusing

Simple thesixonenine

🎯
Focusing
View GitHub Profile
@thesixonenine
thesixonenine / pre-commit
Created September 19, 2023 07:53
pre-commit
#!/bin/bash
# 获取当前分支名
current_branch=$(git symbolic-ref --short HEAD)
# 拉取远程分支的最新代码
git fetch origin $current_branch
# 检查本地分支和远程分支的差异
diff=$(git rev-list HEAD...origin/$current_branch)
@thesixonenine
thesixonenine / Configuration.xml
Created August 11, 2023 07:34
Office Configuration
<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" />
@thesixonenine
thesixonenine / Microsoft.PowerShell_profile.ps1
Last active August 12, 2023 09:42
PowerShell 的配置文件
# 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

Asciidoctor

2.1.1 账户信息查询

Description: 根据手机号等信息查询会员的信息

Method: Company.Product.Module.Method

Version: 1.0.0

Request:

// ==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==
#!/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
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
#!/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
@thesixonenine
thesixonenine / version.ps1
Created January 29, 2023 02:44
Print the software versions on your computer.
git --version
Write-Host "###### Git ######`n`n"
java -version
Write-Host "###### Java ######`n`n"
go version
Write-Host "###### Go ######`n`n"
mvn -v