This commit is contained in:
minoplhy 2025-04-10 14:30:18 +07:00
parent eca6d35af6
commit e23962defc
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
13 changed files with 1299 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

15
content/7/_index.md Normal file

@ -0,0 +1,15 @@
+++
title = "7"
date = 2024-03-09T08:43:04+00:00
menu = "main"
+++
This is my collection for [YABS](https://yabs.sh), [Network-Speed](https://nws.sh) and more from all servers that i own or currently used.
All my entries are customer experience and will always be
![Welcome](/images/7/welcome.avif)
{{< rawhtml >}}
<hr>
{{< /rawhtml >}}

@ -0,0 +1,21 @@
{{- /*
For use with 7
*/}}
<h3>Network Upstream</h3>
<details class="spoiler">
<summary>Click to show</summary>
<div class="spoiler-content">
<pre>*WARNING: only incoming upstream is count!* <a target="_blank" href=https://bgp.tools/kb/what-is-a-upstream>see</a></a></pre>
{{ range (split (string .Inner) "\n") }}
{{ $line := trim . " \t\r\n" }}
{{ if ne $line "" }}
{{ $asn := index (split $line " ") 0 }}
{{ $name := trim (replace $line $asn "" 1) " '" }}
{{ $asnNum := replace $asn "AS" "" }}
<pre><a target="_blank" href="https://bgp.tools/as/{{ $asnNum }}">{{ $asn }}</a> '{{ $name }}'</pre>
{{ end }}
{{ end }}
</div>
</details>

@ -0,0 +1,13 @@
{{- /*
For use with 7
*/}}
<h3>NWS.sh</h3>
<details class="spoiler">
<summary>Click to show</summary>
<div class="spoiler-content">
<pre>{{ .Inner | safeHTML }}</pre>
</div>
</details>

@ -0,0 +1,12 @@
{{- /*
For use with 7
*/}}
<h3>YABS</h3>
<details class="spoiler">
<summary>Click to show</summary>
<div class="spoiler-content">
<pre>{{ .Inner | safeHTML }}</pre>
</div>
</details>

@ -0,0 +1,52 @@
{{- /*
For use with 7
*/}}
{{- /* Get CPU Arguments. */}}
{{- $CPU := or (.Get "cpu") "N/a" }}
{{- $AESNI := or (.Get "aesni") "N/a" }}
{{- $VIRT := or (.Get "virt") "N/a" }}
{{- $HYPERVISOR := or (.Get "hypervisor") "N/a" }}
{{- /* Get Memory Arguments. */}}
{{- $MEMORY_TOTAL := or (.Get "memory_total") "N/a" }}
{{- $MEMORY_READ := or (.Get "memory_read") "N/a" }}
{{- $MEMORY_WRITE := or (.Get "memory_write") "N/a" }}
{{- /* Get DISK Arguments. */}}
{{- $DISK_TOTAL := or (.Get "disk_total") "N/a" }}
{{ $cpu := slice
(dict "type" "CPU" "value" $CPU)
(dict "type" "AES-NI" "value" $AESNI)
(dict "type" "Virtualization" "value" $VIRT)
(dict "type" "Hypervisor" "value" $HYPERVISOR)
}}
{{ $ram := slice
(dict "type" "Memory Total" "value" $MEMORY_TOTAL)
(dict "type" "Memory Read" "value" $MEMORY_READ)
(dict "type" "Memory Write" "value" $MEMORY_WRITE)
}}
{{ $storage := slice
(dict "type" "Disk Total" "value" $DISK_TOTAL)
}}
<h3>CPU</h3>
{{ range $cpu }}
<pre> <b>{{ .type }}:</b> {{ .value }}</pre>
{{ end }}
<h3>RAM</h3>
{{ range $ram }}
<pre> <b>{{ .type }}:</b> {{ .value }}</pre>
{{ end }}
<h3>STORAGE</h3>
{{ range $storage }}
<pre> <b>{{ .type }}:</b> {{ .value }}</pre>
{{ end }}

@ -0,0 +1,41 @@
{{- /*
For use with 7
*/}}
{{- /* Get LOCATION Arguments. */}}
{{- $ASN := or (.Get "asn") "N/a" }}
{{- $ASN_NAME := or (.Get "asn_name") "N/a" }}
{{- $COUNTRY := or (.Get "country") "N/a" }}
{{- $CITY := or (.Get "city") "N/a" }}
{{- /* Get OWNER Arguments. */}}
{{- $COMPANY := or (.Get "company") "N/a" }}
{{- $REGISTER_ID := or (.Get "register_id") "N/a" }}
{{- $COMPANY_STATE := or (.Get "company_state") "N/a" }}
{{- $COMPANY_COUNTRY := or (.Get "company_country") "N/a" }}
{{- $WEBSITE := or (.Get "website") "N/a" }}
{{- /* Get UPSTREAM Arguments. */}}
{{- $UPSTREAM := or (.Get "upstream") "N/a" }}
{{ $location := slice
(dict "type" "ASN" "value" (safeHTML (print "<a target=_blank href='https://bgp.tools/as/" $ASN "'>AS" $ASN "</a> " $ASN_NAME)))
(dict "type" "Country" "value" (print $CITY ", " $COUNTRY))
}}
{{ $owner := slice
(dict "type" "Company" "value" $COMPANY)
(dict "type" "Entity ID" "value" $REGISTER_ID)
(dict "type" "Company Location" "value" (print $COMPANY_STATE ", " $COMPANY_COUNTRY))
(dict "type" "Website" "value" (safeHTML (print "<a target=_blank href='https://" $WEBSITE "'>" $WEBSITE "</a>")))
}}
<h3>Location</h3>
{{ range $location }}
<pre> <b>{{ .type }}:</b> {{ .value }}</pre>
{{ end }}
<h3>Owner</h3>
{{ range $owner }}
<pre> <b>{{ .type }}:</b> {{ .value }}</pre>
{{ end }}

@ -0,0 +1,21 @@
{{- /* Get Provider Specs Arguments. */}}
{{- $CPU_MODEL := or (.Get "cpu_model") "N/a" }}
{{- $CPU_CORE := or (.Get "cpu_core") "N/a" }}
{{- $RAM_TOTAL := or (.Get "ram_total") "N/a" }}
{{- $STORAGE_TOTAL := or (.Get "storage_total") "N/a" }}
{{- $TRAFFIC_LIMIT := or (.Get "traffic_limit") "N/a" }}
{{- $TRAFFIC_TYPE := or (.Get "traffic_type") "" }}
{{- $TRAFFIC_SPEED := or (.Get "traffic_speed") "" }}
{{ $specs := slice
(dict "type" "CPU Model" "value" $CPU_MODEL)
(dict "type" "Cores" "value" $CPU_CORE)
(dict "type" "RAM" "value" $RAM_TOTAL)
(dict "type" "Storage" "value" $STORAGE_TOTAL)
(dict "type" "Traffic Limit" "value" (print $TRAFFIC_LIMIT " " $TRAFFIC_TYPE " " $TRAFFIC_SPEED))
}}
<h3>Specs</h3>
{{ range $specs }}
<pre> <b>{{ .type }}:</b> {{ .value }}</pre>
{{ end }}

Binary file not shown.

After

(image error) Size: 54 KiB