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
| # Set your shard ip/port | |
| $ipAddress = "" | |
| $port = 2593 | |
| # Raw packet data | |
| $byteArray = [byte[]]( | |
| 0x00, 0x01, 0x02, 0x03, # Seed | |
| 0xF1, # Freeshard protocol stats packet id | |
| 0x00, 0x04, # Length | |
| 0xFF # Info type, 0xFF = extended, 0xFE = compact |
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/sh -ex | |
| # Author: Jabin Bastian <jabin@simplywallst.com> | |
| # ./build-rpm.sh | |
| # | |
| # This script builds an RPM using mock via the mmornati/mock-rpmbuilder docker container. | |
| # The container requires privileged access in order to run, @see https://github.com/mmornati/docker-mock-rpmbuilder | |
| # Source RPMs are fetched from the Fedora Rawhide repo. | |
| # | |
| # Variables: |
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/sh | |
| # @author: Alexandre Plennevaux | |
| # @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP | |
| # | |
| # FTP LOGIN | |
| HOST='sftp://ftp.domain.com' | |
| USER='ftpusername' | |
| PASSWORD='ftppassword' | |
| # DISTANT DIRECTORY |
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
| <?php | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use GuzzleHttp\Client as Client; | |
| use GuzzleHttp\Exception\RequestException; | |
| use Psr\Http\Message\ResponseInterface; |
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
| <?php | |
| class PolCfgParser | |
| { | |
| const ENTRY_REGEX = "/^(?<entry_type>\\w+)\\s+(?<entry_name>\\w+|\\d+)$\\s*\\{\\s*(?<entry_content>[\\w\\s\\d\\+\\:|\\'|\\\"]*)\\s*\\}/smi"; | |
| const PROP_REGEX = "/\\s*(?<cprop>CProp)*\\s*(?<param>\\w+)\\s+(?<value>[\\d|\\w|\\h|\\\"|\\'|\\:|\\+]+)/smi"; | |
| public $pattern; | |
| public $recurse; | |
| public $flags; |
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
| <?php | |
| class PolCfgParser | |
| { | |
| const ENTRY_REGEX = "/^(?<entry_type>\\w+)\\s+(?<entry_name>\\w+|\\d+)$\\s*\\{\\s*(?<entry_content>[\\w\\s\\d\\+\\:|\\'|\\\"]*)\\s*\\}/smi"; | |
| const PROP_REGEX = "/\\s*(?<cprop>CProp)*\\s*(?<param>\\w+)\\s+(?<value>[\\d|\\w|\\h|\\\"|\\'|\\:|\\+]+)/smi"; | |
| public $pattern; | |
| public $recurse; | |
| public $flags; |