Files
my-website/index.html
T
2026-08-28 18:33:33 +08:00

124 lines
3.7 KiB
HTML

<!doctype html>
<head>
<meta charset="utf-8"/>
<style>
footer {
height: 100px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 20px;
background-color: #e4e4e4;
position: fixed;
left: 0;
right: 0;
bottom: 0;
}
.filing-container {
width: 100%;
display: flex;
margin-top: 5px;
justify-content: center;
align-items: center;
}
.main-container {
padding-bottom: 100px;
}
</style>
<script>
window.onload = () => {
fetch("./website-update-logs.json")
.then(res => {
return res.json()
})
.then(data => {
for (let i = 0; i < data.length; i++) {
const date = data[i]["date"]
const detail = data[i]["detail"]
const liEle = document.createElement("li")
const listEle = document.getElementById("update-list")
liEle.innerText = `${date}: ${detail}`
listEle.appendChild(liEle)
}
})
}
</script>
</head>
<body>
<div class="main-container">
<div style="font-size: 20px; font-weight: bold;">资源</div>
<div>linux软件源</div>
<ul>
<li>
debian 12<br>
<code>
wget:<br>
wget -O sources.list https://assets.cancerai.top/linux-repo/debian_12_x86-64/sources.list<br>
cat sources.list > /etc/apt/sources.list<br>
rm -rf sources.list<br>
apt update<br><br>
curl:<br>
curl https://assets.cancerai.top/linux-repo/debian_12_x86-64/sources.list >
/etc/apt/sources.list<br>
apt update
</code>
</li>
<br>
<li>
debian 13<br>
<code>
wget:<br>
wget -O sources.list https://assets.cancerai.top/linux-repo/debian_13_arm64/sources.list<br>
cat sources.list > /etc/apt/sources.list<br>
rm -rf sources.list<br>
apt update<br><br>
curl:<br>
curl https://assets.cancerai.top/linux-repo/debian_13_arm64/sources.list >
/etc/apt/sources.list<br>
apt update
</code>
</li>
<br>
</ul>
<div>homebrew软件源</div>
<ul>
<li>
版本 >= 4.x<br>
<code>
echo '<br>
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"<br>
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"<br>
' >> ~/.zshrc && . ~/.zshrc && brew update
</code>
</li>
</ul>
<hr>
<div style="font-size: 20px; font-weight: bold;">更新日志</div>
<ul id="update-list">
</ul>
</div>
<footer>
<div class="filing-container">
<a href="https://beian.miit.gov.cn/" target="_blank">沪ICP备2026028815号-1</a>
</div>
<div class="filing-container" style="margin-top: 5px;">
<img src="./filing_icon.png" width="30px" height="30px"/>
<div style="width: 10px;"></div>
<a href="https://beian.mps.gov.cn/#/query/webSearch?code=31011702891982" rel="noreferrer" target="_blank">沪公网安备31011702891982号</a>
</div>
</footer>
</body>