Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 195ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
liueic

liueic / install_l4d2_plugins.sh

Last active 14 hours ago
0 0 1
1 #!/usr/bin/env bash
2 # install_l4d2_plugins.sh
3 # 自动安装 Left 4 Dead 2 必选插件脚本(Ubuntu, Bash)
4
5 set -euo pipefail
6
7 # 检查 rsync 并安装
8 if ! command -v rsync >/dev/null 2>&1; then
9 echo "检测到未安装 rsync,正在安装..."
10 apt-get update
liueic

liueic / addSwap.sh

Last active 14 hours ago
0 0 1
1 #!/bin/bash
2
3 # 检查是否是 root 用户
4 if [ "$EUID" -ne 0 ]; then
5 echo "请使用 root 权限运行此脚本"
6 exit 1
7 fi
8
9 # 设置 swap 大小(单位:G)
10 SWAP_SIZE=2
Newer Older