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
| import random | |
| ''' | |
| # Задан набор IP-адресов, | |
| # нужно найти минимальную подсеть, | |
| # содержащую эти адреса. | |
| # Написать реализацию и правильный набор тестов. | |
| ''' |
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
| ubuntu@maas-boot-vm-dc1:~$ cat 00-maas-01-lldp-i40e-stop | |
| #!/bin/sh | |
| echo "Disabling LLDP agent on all ports of NICs using i40e driver..." | |
| for cmd in /sys/kernel/debug/i40e/*/command; do echo "lldp stop" > ${cmd}; done | |
| ubuntu@maas-boot-vm-dc1:~$ maas maas commissioning-scripts create name=00-maas-01-lldp-i40e-stop content@=./00-maas-01-lldp-i40e-stop | |
| Success. | |
| Machine-readable output follows: |
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
| * = FE40 | |
| FE40 A0 00 LDY #$00 | |
| FE42 B9 50 FE LDA $FE50,Y | |
| FE45 99 00 04 STA $0400,Y | |
| FE48 C8 INY | |
| FE49 C0 40 CPY #$40 | |
| FE4B D0 F5 BNE $FE42 | |
| FE4D 4C 00 04 JMP $0400 | |
| FE50 78 SEI | |
| FE51 D8 CLD |
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
| { | |
| "id": "bc-template-network", | |
| "description": "Instantiates network interfaces on the crowbar managed systems. Also manages the address pool", | |
| "attributes": { | |
| "network": { | |
| "start_up_delay": 30, | |
| "mode": "single", | |
| "teaming": { | |
| "mode": 6 | |
| }, |
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
| ####### | |
| # EC2 # | |
| ####### | |
| [composite:ec2] | |
| use = egg:Paste#urlmap | |
| /: ec2versions | |
| /services/Cloud: ec2cloud | |
| /services/Admin: ec2admin | |
| /latest: ec2metadata |