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 processes = {} | |
local selectedPID | |
local selectedProcess | |
local lastSelected | |
local main = term.current() | |
local w, h = term.getSize() | |
local lastPID = 0 | |
_G.system = {} | |
local function selectProcess(pid) |
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
--[[ | |
This is an example installer for znepb's Installer program for ComputerCraft. | |
See the installer program here: https://gist.github.com/znepb/03a279207edbfd82cb821c0d3959c52f | |
]] | |
local repo = "znepb-cc/zOS/master" -- The GitHub repo for your program (user/repo/branch) | |
local installStart = "system" -- Where the installation will start at | |
local applicationName = "zOS" -- The name of your application | |
local promptPath = false -- Prompt the user to set a path to install to | |
local defaultPath = "" -- The path if PromptPath is disabled |
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
--[[ | |
CCInstaller | |
by znepb | |
Version 1.0 | |
Example configuration: https://gist.github.com/znepb/5f5be3a68faa8b8758ddaa141e253d8c | |
]] | |
local repo = "" -- The GitHub repo for your program (user/repo/branch) | |
local installStart = "" -- Where the installation will start at |
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 function getDiff(t) | |
return t - os.epoch("utc") / 1000 | |
end | |
local function dispTime(t) | |
t = math.abs(t) | |
local y = math.floor(t / 31536000) | |
local d = math.floor((t % 31536000) / 86400) | |
local h = math.floor((t % 86400) / 3600) | |
local m = math.floor((t % 3600) / 60) |
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 api = {} | |
local function formPostString(data) | |
local out = "" | |
for i, v in pairs(data) do | |
if i == 1 then | |
out = textutils.urlEncode(i) .. "=" .. textutils.urlEncode(v) | |
else | |
out = out .. "&" .. textutils.urlEncode(i) .. "=" .. textutils.urlEncode(v) | |
end |
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
--[[ | |
------------------------- READ ME ------------------------- | |
WARNING: THIS IS INTENDED TO BE USED AS A TOOL TO RUN LOTS | |
OF COMMANDS ON A COMPUTER QUICKLY WITH EASE. DO NOT PUT | |
THIS ON ANOTHER PERSON'S COMPUTER WITHOUT THEIR PERMISSION. | |
IF YOU GET BANNED OR SCREW UP SOMETHING REALLY BAD, | |
I AM NOT RESPONSIBLE. I WARNED YOU. | |
Warning out of the way, this is meant to be a tool. You |
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 f = fs.open("startup.lua", "w") | |
f.write("") | |
f.close() | |
local f = fs.open("startup.lua", "a") | |
f.write('term.clear()') | |
f.write('term.setCursorPos(1, 1)') | |
f.write('print("My OS 1.0")') | |
f.close() |
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
---- Minecraft Crash Report ---- | |
// You should try our sister game, Minceraft! | |
Time: 6/27/22 5:12 PM | |
Description: mouseReleased event handler | |
java.lang.NullPointerException: Registry entry not present: create:copper_backtank | |
at java.util.Objects.requireNonNull(Unknown Source) ~[?:1.8.0_333] {} | |
at com.simibubi.create.repack.registrate.util.entry.RegistryEntry.get(RegistryEntry.java:89) ~[create:mc1.16.5_v0.3.2g] {re:classloading} | |
at com.simibubi.create.foundation.item.CreateItemGroupBase.addItems(CreateItemGroupBase.java:56) ~[create:mc1.16.5_v0.3.2g] {re:classloading} |
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
-- A simple turtle pathfinding API for ComputerCraft. | |
--[[ | |
Copyright 2023 Marcus Wenzel | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to | |
do so, subject to the following conditions: |
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
--- Setup | |
-- This program requires Tuttle: https://gist.github.com/znepb/72981ce3e7a2e1f4e3423ed0b2ca9510 | |
-- The turtle's home should have a chest below (the output chest) and a chest above (the fuel chest). | |
-- As well as this, there should be NO OBSTACLES within the farm's area. They will be destroyed over time as the farm works. | |
--- Configuration Section | |
-- The block to search for and dig | |
local block = "minecraft:wheat" | |
-- The item to deposit into chests | |
local item = "minecraft:wheat" |
OlderNewer