Skip to content

Instantly share code, notes, and snippets.

View cundi's full-sized avatar
🎯
Focusing

m.l cundi

🎯
Focusing
View GitHub Profile
@cundi
cundi / qiye.json
Last active May 28, 2023 14:06
qiye.json
{"msg":"","result":{\"CMIBackbone\":[{\"backconeid\":\"df30f650-7027-3686-9d01-68fde89b41bb\",\"connectionInfo\":{\"bandwidth\":500,\"bandwidthUnit\":\"Mbps\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"string\"},\"connectionPoints\":{\"destinationPE\":{\"id\":3,\"neId\":\"2390\",\"peName\":\"ap-hongkong-pop-pl1\",\"cVlanId\":0,\"eaPermitNumber\":\"12-G120-230733\",\"interfaceSerialNumber\":\"4J5FWH3\",\"interfaceType\":\"NNI\",\"making\":\"SD-WAN BX4000\",\"interfaceId\":\"10\",\"peAddress\":{\"city\":\"香港\",\"floor\":\"4\",\"geoPoint\":{\"lat\":114.276852,\"lon\":22.286531},\"province\":\"香港\",\"postalCode\":\"999077\",\"rackNumber\":\"HA12\",\"streetName\":\"西贡区将军澳工业村骏昌街3号3\",\"addressType\":\"physical\",\"buildingName\":\"将军澳机房\",\"officeNumber\":\"香港特别行政区西贡区将军澳工业村骏昌街3号\",\"streetNumber\":\"3号\",\"countryRegion\":\"中国\"},\"peId\":null,\"sVlanId\":0,\"wanIp\":{\"ipType\":\"static\",\"portId\":\"10\",\"portName\":\"eth1\",\"portTy
{"msg":"","result":"{\"completionDate\":\"2023-05-28T00:00:00.000Z\",\"content\":[{\"connectionInfo\":{\"bandwidth\":\"1099\",\"bandwidthUnit\":\"Gbps\",\"buyerId\":\"dAafuXfGWgyOBZU9\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"string\"},\"connectionPoints\":{\"boneId\":\"df30f650-7027-3686-9d01-68fde89b41bb\",\"destinationPE\":{\"cVlanId\":0,\"eaPermitNumber\":\"1000\",\"interfaceId\":\"32\",\"interfaceSerialNumber\":\"e62aa4b24adcfcccfed32803c\",\"interfaceType\":\"NNI\",\"making\":\"DELL\",\"peAddress\":{\"addressType\":\"physical\",\"buildingName\":\"65 Dachak-ro\",\"city\":\"首尔\",\"countryRegion\":\"韩国\",\"floor\":\"12\",\"geoPoint\":{\"lat\":37.5518911,\"lon\":126.9917937,},\"officeNumber\":\"180-11224-1424\",\"postalCode\":\"string\",\"province\":\"string\",\"rackNumber\":\"1\",\"streetName\":\"Ihwa-dong\",\"streetNumber\":\"65 Dachak-ro\"},\"peId\":\"string\",\"sVlanId\":0,\"wanIp\":{\"ipAddress\":\"CT Dynamic\",\"ipType\"
{"msg":"","result":"[{\"completionDate\":\"2023-05-24T00:00:00.000Z\",\"content\":[{\"connectionInfo\":{\"bandwidth\":\"569\",\"bandwidthUnit\":\"Gbps\",\"buyerId\":\"dAafuXfGWgyOBZU9\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"232\"},\"connectionPoints\":{\"boneId\":\"2dd35e62aa4b24adcfcccfed32803ca8\",\"destinationPE\":{\"cVlanId\":0,\"eaPermitNumber\":\"1000\",\"interfaceId\":\"32\",\"interfaceSerialNumber\":\"e62aa4b24adcfcccfed32803c\",\"interfaceType\":\"NNI\",\"making\":\"DELL\",\"peAddress\":{\"addressType\":\"physical\",\"buildingName\":\"65 Dachak-ro\",\"city\":\"首尔\",\"countryRegion\":\"韩国\",\"floor\":\"12\",\"geoPoint\":{\"lat\":37.5518911,\"lon\":126.9917937},\"officeNumber\":\"180-11224-1424\",\"postalCode\":\"string\",\"province\":\"string\",\"rackNumber\":\"1\",\"streetName\":\"Ihwa-dong\",\"streetNumber\":\"65 Dachak-ro\"},\"peId\":\"333\",\"sVlanId\":0,\"wanIp\":{\"ipAddress\":\"CT Dynamic\",\"ipType\":\"dynamic\
{"msg":"","result":"[{\"backconeContent\":[{\"backboneConnectionInfo\":{\"bandwidth\":\"200\",\"bandwidthUnit\":\"Mbps\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"8lwx90cmoxgvk24h\"},\"backboneConnectionPoints\":{\"destinationPE\":{\"cVlanId\":53,\"sVlanId\":52,\"eaPermitNumber\":\"1\",\"interfaceId\":\"1\",\"interfaceSerialNumber\":\"ec640774738f2cf04071ec1d76c7c\",\"interfaceType\":\"UNI\",\"making\":\"BX3000\",\"peAddress\":{\"addressType\":\"physical\",\"buildingName\":\"4\",\"city\":\"西雅图\",\"countryRegion\":\"美国\",\"floor\":\"1\",\"geoPoint\":{\"lat\":47.6062095,\"lon\":-122.3320708},\"officeNumber\":\"3433\",\"postalCode\":\"200316\",\"province\":\"zhejiang\",\"rackNumber\":\"5\",\"streetName\":\"xihu avenu\",\"streetNumber\":\"1516\"},\"peId\":\"HB20190107000039\",\"wanIp\":{\"ipAddress\":{\"addressType\":\"Ipv4\",\"ipList\":\"2.2.2.2\"},\"ipType\":\"static\",\"portId\":\"string\",\"portType\":\"UNI\",\"portTypeId\":\"123\
{"msg":"","result":"{\"CTGBackbone\":[{\"backconeid\":\"df30f650-7027-3686-9d01-68fde89b41bb\",\"connectionInfo\":{\"bandwidth\":\"500\",\"bandwidthUnit\":\"Mbps\",\"linkServiceProvider\":{\"linkServiceProviderName\":\"CMI\",\"linkServiceProviderType\":\"cross-border\"},\"sellerId\":\"2\"},\"connectionPoints\":{\"destinationPE\":{\"cVlanId\":0,\"sVlanId\":0,\"eaPermitNumber\":\"12-G120-230733\",\"interfaceId\":\"10\",\"interfaceSerialNumber\":\"4J5FWH3\",\"interfaceType\":\"NNI\",\"making\":\"SD-WAN BX4000\",\"peAddress\":{\"geoPoint\":{\"lat\":59.344425,\"lon\":18.064489},\"addressType\":\"virtual\",\"serviceCity\":\"string\",\"cloudProvider\":\"string\",\"countryRegion\":\"string\",\"serviceRegion\":\"string\",\"cloudConnectId\":\"string\",\"cloudInterfaceType\":\"Direct\"},\"peId\":\"d1c40470-9175-4d7e-88e4-4c744467061e\",\"wanIp\":{\"ipType\":\"static\",\"portId\":\"string\",\"portType\":\"UNI\",\"ipAddress\":{\"ipList\":\"2.2.2.2\",\"addressType\":\"Ipv4\"},\"portTypeId\":\"123\"}},\"linkType\":\"pe-pe\"
@cundi
cundi / Tornado AsyncHTTPClient POST JSON example.py
Created January 21, 2019 09:11 — forked from Integralist/Tornado AsyncHTTPClient POST JSON example.py
[Tornado AsyncHTTPClient POST form params example] #python #tornado #post #httpclient #asynchttpclient
# synchronous api
# response = sg.client.mail.send.post(request_body=data)
# except urllib.error.HTTPError as exc:
# async implementation
api_endpoint = 'https://api.sendgrid.com/v3/mail/send'
headers = {'Authorization': f'Bearer {sendgrid_api_key}',
'Content-Type': 'application/json'}
@cundi
cundi / gencert.py
Created November 4, 2018 01:35 — forked from toolness/gencert.py
Python script to create server SSL certs and sign them with a custom CA.
#! /usr/bin/python
"""
This simple script makes it easy to create server certificates
that are signed by your own Certificate Authority.
Mostly, this script just automates the workflow explained
in http://www.tc.umn.edu/~brams006/selfsign.html.
Before using this script, you'll need to create a private
@cundi
cundi / vsphere_info.py
Created October 31, 2018 05:55 — forked from deviantony/vsphere_info.py
VMWare Vsphere info in Python using pyvmomi
#!/usr/bin/env python
import pyVmomi
import argparse
import atexit
import itertools
from pyVmomi import vim, vmodl
from pyVim.connect import SmartConnect, Disconnect
import humanize
@cundi
cundi / resources.md
Created August 1, 2018 14:05 — forked from fffaraz/resources.md
CS 306 - Linux/UNIX Programming
@cundi
cundi / what-forces-layout.md
Created June 5, 2018 05:50 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()