This file contains 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
#!/bin/bash | |
# NOTE: Tested on Kubuntu 24.04, using bash 5.2.21 | |
host_info="${1}" | |
relative_dir="${2}" | |
if [ -z $relative_dir ]; then | |
relative_dir=$(dirname "${PWD}") | |
fi |
This file contains 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
import time | |
import urllib.request | |
# Sleep for 2 minutes before sending the next keep alive | |
# This value is in seconds | |
DELAY = 120 | |
# Url that we will be requesting. | |
URL = "https://example.com" |
This file contains 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
from gpiozero import LED, Button | |
from time import sleep | |
from gpiozero import PushButton | |
red = LED(25) | |
yellow = LED(8) | |
green = LED(7) | |
button = Button(21) | |
This file contains 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
//This is skeleton/prototype code, just to explain how setting a custom LanguageManager would work | |
import net.glowstone.util.lang.LanguageManager; | |
class MyLanguage extends LanguageManager() { | |
/* | |
Methods and etc for the class, however you want it to work. | |
*/ | |
} | |
/* | |
* Now to the plugin |