Skip to content

Instantly share code, notes, and snippets.

Avatar
🐒

imlonghao imlonghao

🐒
View GitHub Profile
View intermediate_ca.crt
-----BEGIN CERTIFICATE-----
MIIBzjCCAXOgAwIBAgIRALRm9ekZjPJ9nPMUmSGTh4AwCgYIKoZIzj0EAwIwMDES
MBAGA1UEChMJaW1sb25naGFvMRowGAYDVQQDExFpbWxvbmdoYW8gUm9vdCBDQTAe
Fw0yMjAxMTAxMjQ2MzNaFw0zMjAxMDgxMjQ2MzNaMDgxEjAQBgNVBAoTCWltbG9u
Z2hhbzEiMCAGA1UEAxMZaW1sb25naGFvIEludGVybWVkaWF0ZSBDQTBZMBMGByqG
SM49AgEGCCqGSM49AwEHA0IABO5G2CWEODVl6DJKYy36co6J6K12Y+OftCXUihhG
pvKbKNM5/vImNTwDzAyCKrKcM8Da+1WTIJnIZM9qlLG8ZdajZjBkMA4GA1UdDwEB
/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBSogpZKpXI5Y/hq
gHbM97xX0Kz1qDAfBgNVHSMEGDAWgBRph7IpR8ExGEi0Jz6dkNcnmhaiKjAKBggq
hkjOPQQDAgNJADBGAiEAwdZAx5QmAGR2Sj2yihFyKE+m1M6Kj/tY+syOJNPxqXgC
View gist:95ce3991118933818b087220918db9b6
#!/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)
View alpine.sh
#!/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
View install.sh
#!/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
@imlonghao
imlonghao / as-set.py
Created Sep 4, 2017
Get all the aut-num from as-set
View as-set.py
#!/usr/bin/env python3
#
# Copyright (c) 2017 imlonghao <shield@fastmail.com>
#
# 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
#
View gist:ff33310183bcca9e7c8ad541b8cc9176
#!/bin/bash
# ----------------
AS=
SUBNET=
ROUTER_ID=
GATEWAY_IP=
SUBNET_v6=
GATEWAY_IP_v6=
SNMP_IP=