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, Response | |
import requests, logging | |
_FIELD_SEPARATOR = ':' | |
class SSEClient(object): | |
"""Implementation of a SSE client. | |
See http://www.w3.org/TR/2009/WD-eventsource-20091029/ for the | |
specification. | |
""" |
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
# create EKS cluster | |
module "base" { | |
source = "./base/" | |
cluster_name = var.cluster_name | |
name_prefix = var.name_prefix | |
main_network_block = var.main_network_block | |
subnet_prefix_extension = var.subnet_prefix_extension | |
zone_offset = var.zone_offset | |
eks_managed_node_groups = var.eks_managed_node_groups |
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
curl http://127.0.0.1:4040/api/tunnels |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
contract HelloWeb3{ | |
string public _string = "Hello Web3!"; | |
} |
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 to the notebook output style -=)) | |
((* if not cell_style is defined *)) | |
((* set cell_style = 'style_jupyter.tplx' *)) | |
((* endif *)) | |
((=- Inherit from the specified cell style. -=)) | |
((* extends cell_style *)) | |
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 | |
# | |
# Title: CentOS7.6_x64_upgrade_kernel_script | |
# Author: ZNing | |
# Date: 2019-7-3 23:13:09 | |
# Pass on the Aliyun CentOS7.6 x64 | |
# You should run this script three times. The first is yum update, the second is kernel upgrade to 5, the final one is optional when you decided to maunal which is deleting old kernel. | |
# Having fun to using it. (*^▽^*) Best wishes from Misaka Mikoto and Misaka 10086. | |
clear; |