Skip to content

Instantly share code, notes, and snippets.

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

TheBunnyMan123

💭
Doing random projects...
  • 16:38 (UTC -06:00)
View GitHub Profile
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()
@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
@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 / 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 / remote
Last active July 1, 2024 06:40
Script that automatically mounts an SFTP remote and prints the directory to STDOUT
#!/usr/bin/env bash
mkdir -p "$HOME/.remote-mount"
if mountpoint -q "$HOME/.remote-mount"
then
umount "$HOME/.remote-mount"
fi
if [ ! -z "$(ls -A "$HOME/.remote-mount")" ]
#!/usr/bin/env bash
exec 3>&1;
result=$(dialog --radiolist "Power Options" 0 0 2>&1 1>&3 5 "Shut Down" 1 "on" "Restart" 2 "off" "Suspend" 3 "off" "Hibernate" 4 "off" "Hybrid Sleep" 5 "off")
exec 3>&-;
if [[ "$result" = "Shut Down" ]]
then
systemctl poweroff
elif [[ "$result" = "Restart" ]]
@TheBunnyMan123
TheBunnyMan123 / squarecorners.theme.css
Last active August 19, 2024 22:16
Square Corners discord theme
/* *
* @name Square Corners
* @author TheKillerBunny
* @description Squares off corners
* @version 1.0
* @license MIT
* @source https://gist.github.com/TheBunnyMan123/6315b2b6db6096ae8485736b4ebbceff
*/
nav[class*="guilds"] * {
border-radius: 0;