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
| using System; | |
| using System.Xml.Serialization; | |
| using System.Collections.Generic; | |
| [XmlRoot(ElementName = "Document", Namespace = "urn:iso:std:iso:20022:tech:xsd:camt.052.001.08")] | |
| public class Document | |
| { | |
| [XmlElement(ElementName = "BkToCstmrAcctRpt", Namespace = "urn:iso:std:iso:20022:tech:xsd:camt.052.001.08")] | |
| public BkToCstmrAcctRpt BkToCstmrAcctRpt { get; set; } | |
| } |
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
| --- | |
| blueprint: | |
| name: AWTRIX Solar Energy Monitor | |
| description: > | |
| This blueprint will show the current solar energy received. | |
| It uses a icons 54156 (solar-green), 50557 (solar-white-dyn), 50546 (solar-static) that you need to install. | |
| domain: automation | |
| input: |
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
| <script type="text/javascript"> | |
| function validate() | |
| { | |
| const regexpEnvelope = /envelope-from.*/g; | |
| const regexpFrom = /From:.*>/g; | |
| const regexpTo = /\nTo: .*/g; | |
| var headerText = document.getElementById("txt").value; | |
| const matchesEnvelope = headerText.matchAll(regexpEnvelope); | |
| const matchesFrom = headerText.matchAll(regexpFrom); | |
| const matchesTo = headerText.matchAll(regexpTo); |
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 | |
| $result = array(); | |
| $result_html = ''; | |
| function getDnsRecords($domain) { | |
| $result = array(); | |
| $servers = array("8.8.8.8", "8.8.8.8", "8.8.8.8", "8.8.8.8", "8.8.8.8", "8.8.8.8", "8.8.8.8", "8.8.8.8"); | |
| foreach ($servers as $server) { | |
| $dnsResult = dns_get_record_from($server, "A", $domain); |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Sample PHP Database Application</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/css/bootstrap.min.css"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/js/bootstrap.min.js"></script> | |
| </head> |
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
| # https://<example.com>/<namespace>/<project>/-/jobs/artifacts/<tag>/download?job=pages | |
| # https://<example.com>/<namespace>/<project>/-/jobs/artifacts/<tag>/raw/<path_to_file>?job=pages | |
| # Where: | |
| # example.com - domain name your gitlab server | |
| # namespace - your name user on the gitlab | |
| # project - your project | |
| # tag - ref of current job. | |
| # If job run on only by tags, than ref will be named as tag name | |
| # If job run on only master, than ref will be named as "master", i.e.: https://<example.com>/<namespace>/<project>/-/jobs/artifacts/master/download?job=pages | |
| # path_to_file - path to file relative from root workspace folder |
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
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
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 cl_ReadJSON; | |
| interface | |
| uses System.Json, System.SysUtils, Vcl.Dialogs, System.Classes; | |
| procedure ReadJSON; | |
| implementation |
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 java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| /** | |
| * Haunted House Adventure | |
| * Original BASIC version from the 1983 Usborne computer book | |
| * Write Your Own Adventure Programs for Your Microcomputer |
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
| Example infrastructure outage incident report | |
| Friday, May 13, 2077 | |
| By the Example Security Team | |
| Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response. | |
| The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected. |
NewerOlder