mirror of
https://github.com/KevinMidboe/schleppe-lab.git
synced 2025-10-29 17:50:39 +00:00
Align code block to new color scheme
Codeblock with line numbers change format of copy code button, updated.
This commit is contained in:
@@ -42,7 +42,30 @@ RouteMetric=10
|
||||
|
||||
The PiKVM configuration override goes in `/etc/kvmd/override.yaml`. Make sure to run `rw` to make the filesystem writeable before editing it, and `ro` when you are done. I’m using the default IP of the Tesmart and a /31 subnet to avoid changing it, but if you do change the IP you’d change it here as well.
|
||||
|
||||
```yaml
|
||||
{% highlight ruby %}
|
||||
def print_hi(name)
|
||||
puts "Hi, #{name}"
|
||||
end
|
||||
print_hi('Tom')
|
||||
#=> prints 'Hi, Tom' to STDOUT.
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
<figure id="highlight-figure">
|
||||
<figcaption>File: folderName/fileName.rb</figcaption>
|
||||
{% highlight ruby %}
|
||||
def print_hi(name)
|
||||
puts "Hi, #{name}"
|
||||
end
|
||||
print_hi('Tom')
|
||||
#=> prints 'Hi, Tom' to STDOUT.
|
||||
{% endhighlight %}
|
||||
</figure>
|
||||
|
||||
|
||||
<figure id="highlight-figure">
|
||||
<figcaption>File: folderName/fileName.rb</figcaption>
|
||||
{% highlight yaml linenos %}
|
||||
kvmd:
|
||||
gpio:
|
||||
drivers:
|
||||
@@ -135,4 +158,102 @@ kvmd:
|
||||
- ["#Minilab", server5_led, server5_switch|Switch]
|
||||
- ["#OPNsense", server6_led, server6_switch|Switch]
|
||||
- ["#Iridium", server7_led, server7_switch|Switch]
|
||||
```
|
||||
{% endhighlight %}
|
||||
</figure>
|
||||
|
||||
|
||||
{% highlight yaml linenos %}
|
||||
kvmd:
|
||||
gpio:
|
||||
drivers:
|
||||
tes:
|
||||
type: tesmart
|
||||
host: 192.168.1.10
|
||||
port: 5000
|
||||
scheme:
|
||||
server0_led:
|
||||
driver: tes
|
||||
pin: 0
|
||||
mode: input
|
||||
server0_switch:
|
||||
driver: tes
|
||||
pin: 0
|
||||
mode: output
|
||||
switch: false
|
||||
server1_led:
|
||||
driver: tes
|
||||
pin: 1
|
||||
mode: input
|
||||
server1_switch:
|
||||
driver: tes
|
||||
pin: 1
|
||||
mode: output
|
||||
switch: false
|
||||
server2_led:
|
||||
driver: tes
|
||||
pin: 2
|
||||
mode: input
|
||||
server2_switch:
|
||||
driver: tes
|
||||
pin: 2
|
||||
mode: output
|
||||
switch: false
|
||||
server3_led:
|
||||
driver: tes
|
||||
pin: 3
|
||||
mode: input
|
||||
server3_switch:
|
||||
driver: tes
|
||||
pin: 3
|
||||
mode: output
|
||||
switch: false
|
||||
server4_led:
|
||||
driver: tes
|
||||
pin: 4
|
||||
mode: input
|
||||
server4_switch:
|
||||
driver: tes
|
||||
pin: 4
|
||||
mode: output
|
||||
switch: false
|
||||
server5_led:
|
||||
driver: tes
|
||||
pin: 5
|
||||
mode: input
|
||||
server5_switch:
|
||||
driver: tes
|
||||
pin: 5
|
||||
mode: output
|
||||
switch: false
|
||||
server6_led:
|
||||
driver: tes
|
||||
pin: 6
|
||||
mode: input
|
||||
server6_switch:
|
||||
driver: tes
|
||||
pin: 6
|
||||
mode: output
|
||||
switch: false
|
||||
server7_led:
|
||||
driver: tes
|
||||
pin: 7
|
||||
mode: input
|
||||
server7_switch:
|
||||
driver: tes
|
||||
pin: 7
|
||||
mode: output
|
||||
switch: false
|
||||
view:
|
||||
table:
|
||||
- ["TESMART Switch"]
|
||||
- []
|
||||
- ["#Terra NAS", server0_led, server0_switch|Switch]
|
||||
- ["#Megalab", server1_led, server1_switch|Switch]
|
||||
- ["#PVE1", server2_led, server2_switch|Switch]
|
||||
- ["#PVE2", server3_led, server3_switch|Switch]
|
||||
- ["#PVE3", server4_led, server4_switch|Switch]
|
||||
- ["#Minilab", server5_led, server5_switch|Switch]
|
||||
- ["#OPNsense", server6_led, server6_switch|Switch]
|
||||
- ["#Iridium", server7_led, server7_switch|Switch]
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user