This file contains hidden or 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
##### zabbix agent2 for debian11 | |
apt update && apt install -y wget | |
wget https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.2+debian11_all.deb | |
dpkg -i zabbix-release_latest_7.2+debian11_all.deb | |
apt update && apt install -y zabbix-agent2 | |
sed -i 's/^Server=127.0.0.1/Server=10.10.1.51/' /etc/zabbix/zabbix_agent2.conf | |
sed -i 's/^ServerActive=127.0.0.1/ServerActive=10.10.1.51/' /etc/zabbix/zabbix_agent2.conf | |
grep -q '^Hostname=' /etc/zabbix/zabbix_agent2.conf \ |
This file contains hidden or 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
[juff@omen2025 ~]$ cat ~/.local/share/Steam/steamapps/common/Counter-Strike\ Global\ Offensive/game/csgo/cfg/autoexec.cfg | |
cl_showfps 1 | |
fps_max 300 | |
rate 786432 | |
sensitivity 2.0 | |
bind "F1" "buy ak47; buy vesthelm" | |
host_writeconfig | |
[juff@omen2025 ~]$ |
This file contains hidden or 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
[root@omen2025 ~]# cat /etc/pacman.d/hooks/copy-kernel.sh | |
#!/bin/bash | |
if ! mountpoint -q /boot; then | |
echo "/boot is not mounted, skipping kernel copy" >&2 | |
exit 0 | |
fi | |
cp -v /boot/vmlinuz-linux /boot/EFI/refind/vmlinuz-linux | |
cp -v /boot/initramfs-linux.img /boot/EFI/refind/initramfs-linux.img | |
cp -v /boot/initramfs-linux-fallback.img /boot/EFI/refind/initramfs-linux-fallback.img |
This file contains hidden or 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
root@gnizdo ~/cloudflare # cat calico-cloudflare.sh | |
#!/bin/bash | |
# Получить актуальные IPv4-адреса Cloudflare | |
CF_IPS_V4=$(curl -s https://www.cloudflare.com/ips-v4) | |
# Создать YAML для GlobalNetworkPolicy | |
cat <<EOF > cloudflare-ipv4-policy.yaml | |
apiVersion: projectcalico.org/v3 | |
kind: GlobalNetworkPolicy |
This file contains hidden or 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
sudo /usr/local/bin/k3s-uninstall.sh | |
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="--flannel-backend=none --cluster-cidr=192.168.0.0/16 --disable-network-policy --disable=traefik" sh - | |
kubectl get nodes | |
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/tigera-operator.yaml | |
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/custom-resources.yaml | |
kubectl get nodes | |
watch kubectl get pods --all-namespaces | |
kubectl get nodes | |
kubectl get nodes -o wide |
This file contains hidden or 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
root@host ~ # cat cf2netpol.sh | |
#!/bin/bash | |
# URL to fetch the latest Cloudflare IP ranges | |
cloudflare_url="https://api.cloudflare.com/client/v4/ips" | |
# Path to the YAML file to be updated | |
yaml_file="traefik-networkpolicy.yaml" | |
# Fetch Cloudflare IP ranges | |
echo "Fetching Cloudflare IP ranges..." |
This file contains hidden or 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
curl -sfL https://get.k3s.io | sh -s - --disable=traefik | |
helm repo add traefik https://traefik.github.io/charts | |
helm install traefik traefik/traefik --namespace kube-system | |
kubectl edit svc traefik -n kube-system | |
### comment or remove web/80 port config | |
This file contains hidden or 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
root@k3s01:~/scripts# cat /root/scripts/check_and_send_logs.sh | |
#!/bin/bash | |
##### and add this script to CRON "* * * * * /root/scripts/check_and_send_logs.sh" | |
# Variables from environment | |
ELAN_BOTURL="https://api.telegram.org/bot6022113232328:AAEfdsfdsdsadsadsadmh0niW_XDw9fsdfdsfdsfdsSMFU" | |
ELAN_CHATID="-8101111111" | |
BOT_URL=$ELAN_BOTURL |
This file contains hidden or 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
[[metric]] | |
context = "scheduler_jobs" | |
labels = [ "job_name", "state" ] | |
metricsdesc = { job_name = "Name of the scheduler job.", state = "Current state of the scheduler job.", value = "scheduler jobs metric with values." } | |
request = ''' | |
SELECT | |
JOB_NAME AS job_name, | |
STATE AS state, | |
COUNT(*) AS value | |
FROM |
This file contains hidden or 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
job "keycloak" { | |
datacenters = ["test-dc1"] | |
type = "service" | |
group "keycloak" { | |
count = 1 | |
task "keycloak" { | |
driver = "docker" |
NewerOlder