I hereby claim:
- I am fnuecke on github.
- I am fnuecke (https://keybase.io/fnuecke) on keybase.
- I have a public key whose fingerprint is 8CAD 5DE5 0517 4D2F FF35 907B F8ED 74FB E43A 0800
To claim this, I am signing this object:
| #!/bin/bash | |
| ######################################################################### | |
| # GitHub to Gitea Starred Repository Mirror | |
| # | |
| # This script automatically mirrors your GitHub starred repositories to | |
| # a Gitea instance. | |
| # | |
| # - Fetches all repositories starred on GitHub | |
| # - Recreate organization / owner (as org) to mirror repos into |
| #if UNITY_EDITOR | |
| using System; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| /// <summary> | |
| /// Little utility for opening a "Game" view in fullscreen. Will be opened on whatever Unity thinks is the "main" | |
| /// monitor at the moment. The hotkey will toggle the window; however, if for some reason this breaks, fullscreen |
| local computer = require("computer") | |
| while true do | |
| local maxMem = 0 | |
| for i=1,10 do maxMem = math.max(maxMem, computer.freeMemory()) os.sleep(0) end | |
| print(maxMem) | |
| os.sleep(5) | |
| end |
| --[[ This script automatically saves the global environment periodically | |
| and restores it when this script is run. Recommended usage is with | |
| the standalone Lua interpreter like this: | |
| lua -i autosave.lua | |
| It was coded for and tested with Eris (https://github.com/fnuecke/eris). | |
| This approach is quite limited and could be improved in a number of ways: | |
| - Userdata cannot be persisted automatically, so if, for example, some |
| local m=component.proxy(component.list("modem")()) | |
| m.open(2412) | |
| local function respond(...) | |
| local args=table.pack(...) | |
| pcall(function() m.broadcast(2412, table.unpack(args)) end) | |
| end | |
| local function receive() | |
| while true do | |
| local evt,_,_,_,_,cmd=computer.pullSignal() | |
| if evt=="modem_message" then return load(cmd) end |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 | |
| 0000000000000000000000000000000000000000000 |
| local component = require("component") | |
| local controller = component.appeng_blocks_controller | |
| local modem = component.modem | |
| local items = dofile("/me/items.dat") | |
| local config = dofile("/me/level.cfg") | |
| local function sendRequest(color, count) | |
| modem.broadcast(45555, color, count) | |
| end |
| --[[ This software is licensed under the M.I.T. license. | |
| Author: David Bergman | |
| Source: https://code.google.com/p/lualisp/ | |
| This is a Scheme/Lisp interpreter, written in Lua. | |
| Adjusted for Lua 5.2 and amalgamated for OpenComputers. | |
| Run it without parameters to get into interpreter mode. | |
| Alternatively pass it a file name of a lisp script. | |
| ]] |
I hereby claim:
To claim this, I am signing this object: