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
-- | |
-- Created by NotePad++. | |
-- User: ProjectSky | |
-- Date: 2020/01/24 | |
-- Time: 13:58 | |
-- Export file save in %USERPROFILE%/Zomboid/Lua/ItemName_%s.txt | |
-- | |
-- get current language code | |
local clang = tostring(Translator.getLanguage()) |
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
local modName = "Hydrocraft"; | |
local list = 0 | |
function run() | |
local w = getFileWriter("ModStats_"..modName); | |
local count = {}; | |
local types = {}; | |
for v in DataManager.Objects do | |
if v.IsMod then |
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
# 常用正则表达式记录 | |
^(?!.*?str).*$ 查找不包含add的整行 | |
.*str.* 查找包含str的整行 |
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 | |
#Simple login script (No password) | |
show_all() { | |
cat <<USERLIST | |
Select login user: | |
1: user1 | |
2: user2 | |
3: user3 | |
USERLIST | |
} |
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
find / -type f | grep " " #查找目录中带有空格的文件夹 | |
grep -r "str" /home/ #查找目录下所有匹配指定字符串的文件 | |
update-rc.d parsoid defaults & remove #服务添加 & 删除 | |
sysv-rc-conf #服务管理 | |
usermod -aG sudo user #添加指定用户至sudo组 | |
sudo docker ps -a | awk '{print $1}' | grep -v CONTAINER | xargs sudo docker rm #清除无效docker容器1 | |
sudo docker images | grep "<none>" | awk '{print $3}' | xargs sudo docker rmi #清除无效docker容器2 | |
sudo docker rmi $(sudo docker images -f "dangling=true" -q) #清除无效docker容器3 | |
nc -ul 1080 #使用udp模式监听1080端口 | |
nc -u x.x.x.x 1080 #使用udp模式连接1080端口 |
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
# To install Alsa sound (alsa-base, alsa-utils, alsa-tools and libasound2) enter this command: | |
sudo apt-get install alsa alsa-tools | |
# Add yourself to the group audio: | |
sudo adduser username audio | |
# Reboot System to take effect | |
sudo init 6 | |
# Alsamixer is sometimes muted by default, so you might need to unmute it. Run alsamixer: |
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
# Ubuntu 16.04 xenial 中科大镜像 | |
deb https://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse | |
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial main main restricted universe multiverse | |
deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse | |
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse | |
deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse | |
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse | |
deb https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse | |
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse | |
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
nightlengthmodifier=0.85 ;夜晚长度调整 | |
PVP=true ;开/关 PVP功能 | |
PauseEmpty=true ;开/关 服务器没有玩家时自动暂停服务器 | |
GlobalChat=false ;开/关 全球聊天功能 | |
Open=true ;开/关 是否开放服务器(白名单功能) | |
ServerWelcomeMessage= ;设置欢迎消息 | |
LogLocalChat=true ;开/关 记录聊天日志 | |
AutoCreateUserInWhiteList=false ;开/关 自动添加白名单 | |
DisplayUserName=true ;开/关 显示玩家的名称在头顶 | |
SpawnPoint=0,0,0 ;设定出生点(坐标点为X,Y,Z,如需自定义高级出生点请勿改动这里) |
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
SandboxVars = { | |
Zombies = 3, --僵尸数量(设定值为1-5) | |
Distribution = 2, --僵尸分布(设定值为1-2) | |
DayLength = 3, --一天长度(设定值为1-9) | |
StartYear = 1, --开始年份(设定值为1-99) | |
StartMonth = 4, --开始月份(设定值为1-12) | |
StartDay = 1, --开始天数(设定值为1-30) | |
StartTime = 1, --开始时间(设定值为1-9) | |
WaterShutModifier = 365, --停水时间(单位=天) | |
ElecShutModifier = 180, --停电时间(单位=天) |
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
--手动挖矿加速 | |
/c game.player.force.manual_mining_speed_modifier = 2 | |
--手动制造物品加速 | |
/c game.player.force.manual_crafting_speed_modifier = 2 | |
--研究加速 | |
/c game.player.force.laboratory_speed_modifier = 2 | |
--地上产出OO矿 |