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
-----BEGIN CERTIFICATE----- | |
MIIBzjCCAXOgAwIBAgIRALRm9ekZjPJ9nPMUmSGTh4AwCgYIKoZIzj0EAwIwMDES | |
MBAGA1UEChMJaW1sb25naGFvMRowGAYDVQQDExFpbWxvbmdoYW8gUm9vdCBDQTAe | |
Fw0yMjAxMTAxMjQ2MzNaFw0zMjAxMDgxMjQ2MzNaMDgxEjAQBgNVBAoTCWltbG9u | |
Z2hhbzEiMCAGA1UEAxMZaW1sb25naGFvIEludGVybWVkaWF0ZSBDQTBZMBMGByqG | |
SM49AgEGCCqGSM49AwEHA0IABO5G2CWEODVl6DJKYy36co6J6K12Y+OftCXUihhG | |
pvKbKNM5/vImNTwDzAyCKrKcM8Da+1WTIJnIZM9qlLG8ZdajZjBkMA4GA1UdDwEB | |
/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBSogpZKpXI5Y/hq | |
gHbM97xX0Kz1qDAfBgNVHSMEGDAWgBRph7IpR8ExGEi0Jz6dkNcnmhaiKjAKBggq | |
hkjOPQQDAgNJADBGAiEAwdZAx5QmAGR2Sj2yihFyKE+m1M6Kj/tY+syOJNPxqXgC |
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 python | |
import json | |
from elasticsearch import Elasticsearch | |
from elasticsearch.helpers import bulk | |
def g(): | |
with open('a.log') as f: | |
for i in f: | |
data = json.loads(i) |
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
#!/bin/sh | |
set -ex | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
KEYMAP="us us" | |
HOST=hostname-changeme | |
USER=rancher | |
ROOT_FS=ext4 | |
BOOT_FS=ext4 |
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
#!/bin/sh | |
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list | |
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable | |
apt update | |
apt install wireguard-dkms wireguard-tools -y | |
apt dist-upgrade -y | |
cat > /etc/rc.local << EOF | |
#!/bin/sh |
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 | |
# | |
# Copyright (c) 2017 imlonghao <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
#!/bin/bash | |
# ---------------- | |
AS= | |
SUBNET= | |
ROUTER_ID= | |
GATEWAY_IP= | |
SUBNET_v6= | |
GATEWAY_IP_v6= | |
SNMP_IP= |