sudo sed -e 's|^metalink=|#metalink=|g' \
-e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://mirrors.ustc.edu.cn/fedora|g' \
-i.bak \
/etc/yum.repos.d/fedora.repo \
/etc/yum.repos.d/fedora-updates.repo
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGaDp4IBEACte8Wp103v4cusgL5eaIPVVXi2wm996RargsCJ4RnBkOF3PuG0 | |
USwT+DlmtNgTpVGCf4EWsOdKlyc8aMriR06+HFSXa2Pv0jVkQzV9D2Ga88o5yTce | |
glyLkcpljgRkPHIuLhZuS1IpLYiucoq03pDQwztFrNQ71eE9bdYkreE7A+xxlFTC | |
zBWSahFBjlLM4gwuCxx9oxsn6Iwakg1eFiJRVKNBgWGiJOYz7czQ7VlFIw1B1YNF | |
TQ9xkuUpqXw2T/TzFIS3/c6eZqNW+BGkRUug13rUZV39D96UBotZ75EiH2s3iVbD | |
P1+WpM1YM8+c3fXMFQvlmoHpEdWyzuNxDsNux0mj4Rxdzmh1JpuE+HJkgTbshO08 | |
gK9XM52g73CqieT1pRThlO/kZWHcbVgHPuG6HC/kbwYTYe7NJXlFUG0ZnCLWLLwU | |
MR205Cfs+7veajqvjJLGd4y2Pizr05WD+kNrDnWRqEH+/4ye0a4Lb6Hqg/D8ZlO7 |
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 | |
KEY_NAME="sa-slchris.asc" | |
LOCAL_KEYSERVER="http://192.168.56.109:9001" | |
KEY="5BB4DC20DCA50A499219935036F2D646E2E89820" # Key fingerprint | |
GPG_DIR="/etc/portage/gnupg" | |
PASS="$(openssl rand -base64 32)" | |
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
{ | |
"load_type": "linear", | |
"iteration_count": 10000, | |
"duration": 10, | |
"debug": false, | |
"output": "stdout", | |
"env": { | |
"TARGET_ENDPOINT": "http://10.0.0.229/staging/echo" | |
}, | |
"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
[reload] | |
command:/bin/sh /usr/local/etc/unbound/blacklist-update.sh | |
parameter: | |
type:script_output | |
message: Unbound Blacklist Update | |
description: Centralized Blacklist Update for Unbound DNS Service |
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
mkfs.vfat -n BOOT /dev/sda3 | |
mkfs.btrfs -L root /dev/sda1 | |
cryptsetup luksFormat /dev/sda1 | |
# Enter the Password. | |
cryptsetup luksOpen /dev/sda1 enc-pv | |
# After Opening the Disk, Open Gparted and Format /dev/sda1 to btrfs for the btrfs logic block. |
https://docs.cilium.io/en/stable/installation/k0s/
curl -sSLf https://get.k0s.sh | sudo sh
# with ghproxy
curl -sSLf https://fetch.hikariai.net/api/v1/script/k0s-bootstrap.sh | sudo sh
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 | |
set -e | |
if [ -n "${DEBUG}" ]; then | |
set -x | |
fi | |
_k0s_latest() { | |
curl -sSLf "https://docs.k0sproject.io/stable.txt" |
NewerOlder