This file contains hidden or 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
OIFS="$IFS" | |
IFS=$'\n' | |
KUBECONFIG_FILES=( $(find $HOME/.kube/ -type f -name 'kubeconfig.*.yaml') ) | |
IFS=$OIFS | |
KUBECONFIG=$(echo ${KUBECONFIG_FILES[@]} | tr ' ' ':') kubectl config view --flatten > $HOME/.kube/config | |
chmod 600 $HOME/.kube/config | |
export KUBECONFIG=$HOME/.kube/config |
This file contains hidden or 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 reactor = peripheral.find("fissionReactorLogicAdapter") | |
local turbine = peripheral.find("turbineValve") | |
local target_energy_percent = 0.9 | |
data = {reactor = {}, turbine = {}} | |
data.print = function (self) |
This file contains hidden or 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 state, data, reactor, turbine, info_window, rules_window | |
local STATES = { | |
READY = 1, -- Reactor is off and can be started with the lever | |
RUNNING = 2, -- Reactor is running and all rules are met | |
ESTOP = 3, -- Reactor is stopped due to rule(s) being violated | |
UNKNOWN = 4, -- Reactor or turbine peripherals are missing | |
} | |
------------------------------------------------ |
This file contains hidden or 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 state, data, reactor, turbine, info_window, rules_window | |
local STATES = { | |
READY = 1, -- Reactor is off and can be started with the lever | |
RUNNING = 2, -- Reactor is running and all rules are met | |
ESTOP = 3, -- Reactor is stopped due to rule(s) being violated | |
UNKNOWN = 4, -- Reactor or turbine peripherals are missing | |
} | |
------------------------------------------------ |
This file contains hidden or 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
print("starting mob slaughter...") | |
while true do | |
while redstone.getInput("front") do | |
turtle.attack(); | |
sleep(0.5); | |
end | |
turtle.turnRight() | |
turtle.turnRight() | |