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
| # Install latest Docker Version | |
| curl -fsSL https://get.docker.com/ | sh && \ | |
| # Get latest Docker Compose version | |
| COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest \ | |
| | grep 'tag_name' \ | |
| | cut -d'"' -f4) && \ | |
| # Download latest Docker Compose | |
| sudo curl \ |
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
| #!/usr/bin/env python3 | |
| import socket | |
| import sys | |
| host, port = sys.argv[1].split(':') | |
| s = socket.socket() | |
| s.connect((host, int(port))) |
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
| function gera_id() { | |
| return parseInt((Math.random() * 0xFFFFFFFFFFFFFFFF)) | |
| .toString(16) | |
| .padEnd(16, '0'); | |
| } | |
| function preencheCampos(totalcampos) { | |
| for (let index = 0; index < totalcampos; index++) { | |
| id = gera_id() | |
| $$('.rfid_list')[index].value = id |
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
| #!/usr/bin/env python3 | |
| import socket | |
| import sys | |
| host, port = sys.argv[1].split(':') | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| s.connect((host, int(port))) |