Skip to content

Instantly share code, notes, and snippets.

View TheBunnyMan123's full-sized avatar
💭
Doing random projects...

TheBunnyMan123

💭
Doing random projects...
View GitHub Profile
@TheBunnyMan123
TheBunnyMan123 / setup-gps.lua
Created May 30, 2024 09:17
Setup ComputerCraft GPS servers
print("X?")
x = tonumber(read())
print("Y?")
y = tonumber(read())
print("Z?")
z = tonumber(read())
file = fs.open("/startup.lua", "w")
file.write('shell.run("gps", "host", ' .. x .. ', ' .. y .. ', ' .. z .. ')')
file.close()
@TheBunnyMan123
TheBunnyMan123 / gterm-alacritty.sh
Created February 10, 2024 07:05
Gnome terrminal alacritty script. Symlink /usr/bin/gnome-terminal to it for gnome to use alacritty instead of gnome-terminal
if [ -z $2 ]
then
exec alacritty $1
else
exec alacritty --command $2
fi
@TheBunnyMan123
TheBunnyMan123 / .bash_profile
Last active February 8, 2024 00:25
Single file configs
# If it's an interactive shell, run bashrc
if [ -f $HOME/.bashrc ]
then
if [[ $- == *i* ]]
then
source $HOME/.bashrc
fi
fi
term.setCursorPos(1,1)
local firmwareName = "BunnyOS"
local author = "TheKillerBunny"
local firmwareVersion = "0.1"
term.clear()
print("Welcome to "..firmwareName.." version "..firmwareVersion)
print("This firmware was made by "..author)
function password()