Document Date: 2025-XX-XX
Intended Status: Informational or Standards Track (to be determined)
Expires: 2025-XX-XX
This file contains 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
from flask import Flask, request, jsonify | |
from lxml import etree | |
app = Flask(__name__) | |
def validate_xml_against_xsd(xml_content, xsd_content): | |
# Attempt to parse the XML content | |
try: | |
xml_doc = etree.fromstring(xml_content) | |
except etree.XMLSyntaxError as e: |
This file contains 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
fs.file-max = 2097152 | |
kernel.core_uses_pid = 1 | |
kernel.msgmax = 65536 | |
kernel.msgmnb = 65536 | |
kernel.panic = 10 | |
kernel.printk = 4 4 1 7 | |
kernel.shmall = 4194304 | |
kernel.shmmax = 4294967296 | |
kernel.sysrq = 0 | |
net.core.netdev_max_backlog = 262144 |
This file contains 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 argparse | |
import string | |
import re | |
import random | |
from urllib.parse import urlparse | |
def main(): | |
parser = argparse.ArgumentParser(description='Namespace Generator') |
This file contains 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
nginx_error , err = parse_nginx_log(.message, "error") | |
if err == null { | |
if is_string(nginx_error.request) { | |
method_path, err = parse_regex(nginx_error.request, r'^(?P<method>[A-Z]+) (?P<path>[^\s]+)') | |
if err == null { | |
nginx_error.method = method_path.method | |
nginx_error.path = method_path.path | |
} | |
} |
This file contains 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
// you must add analytics script into your project first | |
// put this script any where you like into your js of project, in callback, on load, on click or etc you want | |
aai.event({ | |
// requirement fields | |
c: "news", // must be regex: /^[a-z0-9_]{1,31}$/ ... All lowercase include number and `_` min 1 character until 31 character | |
a: "viewed", // must be regex: /^[a-z0-9_]{1,31}$/ ... All lowercase include number and `_` min 1 character until 31 character | |
// optional fiedlds | |
l: "Any thing yo like", // any string you like |
This file contains 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
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp1s0: | |
routes: | |
- to: 0.0.0.0/0 | |
via: 172.31.1.1 | |
on-link: true | |
addresses: [ 5.5.5.5/32 ] |
This file contains 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
default_type application/octet-stream; | |
types { | |
# essentials | |
application/xhtml+xml xhtml; | |
application/xml xml; | |
application/xslt+xml xsl; | |
text/calendar ics; | |
text/css css; | |
text/csv csv; |
This file contains 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 csv | |
import subprocess | |
import re | |
import json | |
from datetime import datetime | |
def map_entry(s: str) -> str: |
This file contains 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
package main | |
import ( | |
"crypto/tls" | |
"errors" | |
"fmt" | |
"log" | |
"os" | |
"strings" |
NewerOlder