This file contains hidden or 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
| unit Functs; | |
| interface | |
| uses | |
| WinTypes, Classes, Graphics, SysUtils; | |
| type | |
| TPoint2D = record |
This file contains hidden or 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
| // tabs = 2 | |
| // ----------------------------------------------------------------------------------------------- | |
| // | |
| // MD5 Message-Digest for Delphi 4 | |
| // | |
| // Delphi 4 Unit implementing the | |
| // RSA Data Security, Inc. MD5 Message-Digest Algorithm | |
| // | |
| // Implementation of Ronald L. Rivest's RFC 1321 | |
| // |
This file contains hidden or 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 | |
| # Get values from device and format output | |
| # Usage: | |
| # snmp-printf.sh [PARAMS] <OID1> <OID2> <OID3> ... | |
| # PARAMS: | |
| # -i <IP> | |
| # -v <SNMP Ver> | |
| # -c <Community> | |
| # -f <Format> | |
| # -o <Base OID> |
This file contains hidden or 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 | |
| # Concatenate all commanline params and print result | |
| result="" | |
| for var in "$@" | |
| do | |
| result=${result}${var} | |
| done |
This file contains hidden or 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 | |
| # Get ZyXEL software ID | |
| # Usage: | |
| # snmp-zyxel-getVer.sh [PARAMS] | |
| # PARAMS: | |
| # -i <IP> | |
| # -v <SNMP Ver> | |
| # -c <Community> | |
| # -o <Base OID> |
This file contains hidden or 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 | |
| # Get CISCO Version Parts | |
| # Usage: | |
| # cisco-getVer.sh [-t|-v] [PARAMS] | |
| # OPTIONS: | |
| # -t Get software type | |
| # -s Get software version | |
| # PARAMS: | |
| # -i <IP> | |
| # -v <SNMP Ver> |
This file contains hidden or 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 | |
| # Get ZyXEL Software ID from Zabbix DATABASE | |
| # | |
| # Usage: | |
| # | |
| # getSwZyXEL.sh -h <host> [PARAMS] | |
| # | |
| # PARAMS: | |
| # -d <Database> | |
| # -u <User> |
This file contains hidden or 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 | |
| # Get CISCO Software ID from Zabbix DATABASE | |
| # | |
| # Usage: | |
| # | |
| # getSwCISCO.sh -h <host> [-t|-v] [PARAMS] | |
| # | |
| # OPTIONS: | |
| # -t Get software type | |
| # -s Get software version |
This file contains hidden or 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
| uses graphABC; | |
| // объявление переменных | |
| var X1,X2,X3,X4: integer; | |
| var Y1,Y2,Y3,Y4: integer; | |
| begin | |
| // Ввод данных | |
| write ('Введите координаты X1; Y1'); | |
| read (X1); read (Y1); | |
| writeln (': ', X1, ', ', Y1); |
This file contains hidden or 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
| get_ether() { | |
| # 0-<interface>, 1-<mac address>, 2-<broadcast> | |
| local net[0]=$1 | |
| net[1]=`ip -0 -o addr show dev ${net[0]} | grep -oiP '(?<=link\/ether)\s+([0-9a-f]{2}\:?){6}' | tr -d '[[:space:]]'` | |
| net[2]=`ip -0 -o addr show dev ${net[0]} | grep -oiP '(?<=brd)\s+([0-9a-f]{2}\:?){6}' | tr -d '[[:space:]]'` | |
| echo "${net[@]}" | |
| } | |
| get_ipv4() { | |
| # 0-<interface>, 1-<full network>, 2-<interface ip>, 3-<network bits>, 4-<broadcast> |
OlderNewer