csrutil disable
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
| --- | |
| apiVersion: policy/v1 | |
| kind: PodDisruptionBudget | |
| metadata: | |
| name: zookeeper-pod-disruption-budget | |
| namespace: plausible | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: zookeeper |
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
| CREATE TABLE default.location_data ON cluster '{cluster}' | |
| ( | |
| `type` LowCardinality(String), | |
| `id` String, | |
| `name` String | |
| ) | |
| ENGINE = ReplicatedMergeTree('/clickhouse/{cluster}/tables/{shard}/{database}/{table}', '{replica}') | |
| ORDER BY (type, id) | |
| SETTINGS index_granularity = 128 | |
| COMMENT '2024-07-09'; |
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 bash | |
| # Function to validate IPv4 and IPv6 addresses or CIDR notation | |
| validate_ip() { | |
| local ip="$1" | |
| if [[ "$ip" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}(/[0-9]{1,2})?$ ]]; then | |
| # Validate IPv4 octets and CIDR range | |
| IFS='.' read -r -a octets <<< "$(echo "$ip" | cut -d '/' -f1)" | |
| for octet in "${octets[@]}"; do | |
| if ((octet < 0 || octet > 255)); then |
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 bash | |
| set -e | |
| SNAP_DATA=/var/snap/microk8s/current | |
| SNAP=/snap/microk8s/current | |
| CONFIG_DIR=/var/snap/microk8s/current/args | |
| source ${SNAP}/actions/common/utils.sh | |
| # update the kube-apiserver | |
| refresh_opt_in_local_config "enable-admission-plugins" "PodNodeSelector" kube-apiserver | |
| refresh_opt_in_local_config "feature-gates" "IPv6DualStack=true,StatefulSetMinReadySeconds=true" kube-apiserver |
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 style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
| <head> | |
| <meta name="viewport" content="width=device-width" /> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>{{object}}: {{event}}</title> | |
| <style type="text/css"> | |
| img { | |
| max-width: 100%; | |
| } |
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 calCulate(time) { | |
| var time = parseInt(document.getElementById("day").value); | |
| //const yearDay = 365; | |
| //const monthDay = 30; | |
| //const weekDay = 7; | |
| var year = 0, | |
| month = 0, | |
| week = 0, | |
| day = 0; |
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
| module.exports = { | |
| parser: "@typescript-eslint/parser", | |
| extends: [ | |
| "react-app", | |
| "prettier", | |
| "plugin:@typescript-eslint/recommended", | |
| "plugin:prettier/recommended" | |
| ], | |
| plugins: ["@typescript-eslint", "react-hooks", "react"], | |
| rules: { |
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
| { | |
| "success":true, | |
| "data":[ | |
| [ | |
| { | |
| "q":"Cum quaerat alias ut atque ab error.", | |
| "a":"At fuga neque recusandae voluptatem cum rerum excepturi. Dolorum id ullam cum alias asperiores. Quis voluptas eius voluptatem ipsam." | |
| }, | |
| { | |
| "q":"Totam eos repellendus iste eligendi laudantium voluptatem.", |
NewerOlder