Data update

This commit is contained in:
Ingy döt Net 2026-04-30 12:34:36 -04:00
parent 4bb20c9b71
commit cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions

View file

@ -0,0 +1,7 @@
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Sockets;
procedure Demo is
begin
Put_Line (GNAT.Sockets.Host_Name);
end Demo;

View file

@ -0,0 +1 @@
Hostname

View file

@ -0,0 +1 @@
for /f "tokens=*" %%a in ('hostname') do set "hostname=%%a"

View file

@ -0,0 +1 @@
set computername

View file

@ -0,0 +1 @@
echo %computername%

View file

@ -0,0 +1,6 @@
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName\ComputerName
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Hostname
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\NV
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Domain
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\NV Domain

View file

@ -0,0 +1,15 @@
identification division.
program-id. hostname.
data division.
working-storage section.
01 hostname pic x(256).
01 nullpos pic 999 value 1.
procedure division.
call "gethostname" using hostname by value length of hostname
string hostname delimited by low-value into hostname
with pointer nullpos
display "Host: " hostname(1 : nullpos - 1)
goback.
end program hostname.

View file

@ -0,0 +1 @@
(system-name)

View file

@ -0,0 +1,4 @@
os.execute("hostname > tmp")
local hostname = io.contents("tmp"):rstrip()
print($"Hostname is {hostname}")
os.remove("tmp")

View file

@ -0,0 +1 @@
$Env:COMPUTERNAME

View file

@ -0,0 +1 @@
[Net.Dns]::GetHostName()

View file

@ -0,0 +1 @@
print read dns://

View file

@ -0,0 +1,2 @@
cc os
host-info?

View file

@ -0,0 +1,2 @@
Set objNetwork = CreateObject("WScript.Network")
WScript.Echo objNetwork.ComputerName