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/bash | |
. /etc/lunar/config | |
preserve() | |
{ | |
if [ -f $1 ] ; then | |
mv -f $1 $1.old | |
fi | |
} |
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
[Unit] | |
Description=dhcpd | |
After=network.target | |
[Service] | |
ExecStart=/usr/sbin/dhcpd -q eth0 -f | |
Restart=always | |
RestartSec=60 | |
[Install] |
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
diff --git a/Makefile.am b/Makefile.am | |
index f3ab908..08d773d 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -1846,7 +1846,8 @@ libudev_la_LDFLAGS = \ | |
-Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym | |
libudev_la_LIBADD = \ | |
- libsystemd-shared.la | |
+ libsystemd-shared.la \ |
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
try { | |
TownyWorld tw = TownyUniverse.getWorld(world.getName()); | |
TownBlock tb = tw.getTownBlock(new Coord(xx, zz)); | |
if (tb.hasTown()) | |
return true; | |
} catch (NotRegisteredException e) { | |
e.printStackTrace(); | |
} |
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
List<String> StringList = getConfig().getStringList("list"); | |
StringList.add("stringvalue"); | |
getConfig().set("list", StringList); | |
saveConfig(); |
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
Kerbal Space Program - 0.90.0.0 (LinuxPlayer) Steam BETA | |
OS: Linux 3.6 Lunar Linux 1.6.5-nubs-alpha 32bit | |
CPU: Intel(R) Core(TM) i7 CPU X 990 @ 3.47GHz (12) | |
RAM: 5994 | |
GPU: GeForce 9800 GT/PCIe/SSE2 (1024MB) | |
SM: 30 (OpenGL 3.3 [3.3.0 NVIDIA 304.60]) | |
RT Formats: ARGB32, Depth, ARGBHalf, RGB565, ARGB4444, ARGB1555, Default, DefaultHDR, ARGBFloat, RGFloat, RGHalf, RFloat, RHalf, R8 |
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 | |
# how to use: | |
# | |
# - packages required: inotify-tools, git | |
# - change SAVENAME into the name of your savegame (folder name) | |
# - cd into your savegame folder, and execute: | |
# git init | |
# git add * */* */*/* | |
# git commit -a --message "Initial Checkin." |
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
minetest.register_chatcommand("dump", { | |
params = "", | |
description = "Dump all objects in the global table", | |
func = function() | |
print("_G has "..#_G.." elements") | |
for k,v in pairs(_G) do | |
if k~="_G" then | |
if type(v)=="string" or type(v)=="number" then | |
print("G["..k.."]="..v) | |
elseif type(v)=="table" 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
local s = "" | |
local function dd(ss) | |
s = s .. ss | |
end | |
-- alt version2, handles cycles, functions, booleans, etc | |
-- - abuse to http://richard.warburton.it | |
-- output almost identical to print(table.show(t)) below. | |
function print_r (t, name, indent) |
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
diff --git a/src/mods.cpp b/src/mods.cpp | |
index f5174ac..a8874fa 100644 | |
--- a/src/mods.cpp | |
+++ b/src/mods.cpp | |
@@ -85,15 +85,12 @@ void parseModContents(ModSpec &spec) | |
} | |
} | |
-std::map<std::string, ModSpec> getModsInPath(std::string path, bool part_of_modpack, const std::string &worldpath) | |
+std::map<std::string, ModSpec> getModsInPath(std::string path, bool part_of_modpack, const Settings &worldmt_settings) |
OlderNewer