Skip to content

Instantly share code, notes, and snippets.

View TheTrueShell's full-sized avatar
🎯
Focusing

Rory Durrant TheTrueShell

🎯
Focusing
View GitHub Profile
@TheTrueShell
TheTrueShell / atm.lua
Last active December 27, 2023 21:27
cc atm
-- ATM Script for Computercraft
-- Open modem
local modem = peripheral.find("modem")
if not modem then
print("No modem attached")
return
end
modem.open(2) -- Open on channel 2, for example
@TheTrueShell
TheTrueShell / main.lua
Last active December 27, 2023 21:25
cc main
-- Central Bank Server Script for Computercraft
-- Table to store account information
local accounts = {}
-- Load existing accounts from disk (if any)
local function loadAccounts()
if fs.exists("accounts") then
local file = fs.open("accounts", "r")
accounts = textutils.unserialize(file.readAll())

Keybase proof

I hereby claim:

  • I am TheTrueShell on github.
  • I am raimiastudios (https://keybase.io/raimiastudios) on keybase.
  • I have a public key whose fingerprint is FCEF EF5E 76C3 5E95 C965 058A 2C98 61EA 2535 409C

To claim this, I am signing this object: