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
Loaded /Users/reutsharabani/Library/Application Support/Steam/steamapps/common/dota 2 beta/game/bin/osx64/dota2.app/Contents/MacOS/libengine2.dylib, got 0x2d69b820 | |
Using breakpad crash handler | |
[S_API] SteamAPI_Init(): Loaded '/Users/reutsharabani/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/steamclient.dylib' OK. | |
Setting breakpad minidump AppID = 570 | |
Forcing breakpad minidump interfaces to load | |
Looking up breakpad interfaces from steamclient | |
Calling BreakpadMiniDumpSystemInit | |
found breakpad via in process memory: '/Users/reutsharabani/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/Frameworks/Breakpad.framework/Versions/A/Resources' | |
Installing breakpad crash handler | |
Looking up breakpad interfaces from steamclient |
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
Computer Information: | |
Manufacturer: Apple | |
Model: iMac19,1 | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz | |
CPU Family: 0x6 |
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
import inspect | |
import itertools | |
import networkx as nx | |
from networkx.drawing.nx_agraph import to_agraph | |
class Provided: | |
pass | |
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
# NLBs followed ALBs. | |
# All this does is divides healthy by total (once for NLB and once for ALB) and formats them nicely. | |
label_replace( | |
aws_networkelb_healthy_host_count_average offset 15m / (aws_networkelb_healthy_host_count_average offset 15m + aws_networkelb_un_healthy_host_count_average offset 15m), | |
"target_group", | |
"$2-$3", | |
"target_group", | |
"targetgroup/k8s-([A-Za-z]+)-([A-Za-z]+)-([A-Za-z0-9]+)/(.*)" | |
) | |
or |
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
metrics: | |
- aws_namespace: AWS/ApplicationELB | |
aws_metric_name: HealthyHostCount | |
aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup] | |
aws_statistics: [Average] | |
- aws_namespace: AWS/ApplicationELB | |
aws_metric_name: UnHealthyHostCount | |
aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup] | |
aws_statistics: [Average] | |
- aws_namespace: AWS/NetworkELB |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
service.beta.kubernetes.io/aws-load-balancer-type: nlb-ip | |
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: proxy_protocol_v2.client_to_server.header_placement=on_first_ack,proxy_protocol_v2.enabled=true | |
name: my-nlb | |
spec: | |
ports: | |
- port: 80 |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
service.beta.kubernetes.io/aws-load-balancer-type: nlb-ip | |
name: my-nlb | |
spec: | |
ports: | |
- port: 80 | |
protocol: TCP |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: my-ingress | |
annotations: | |
# provision application load balancer | |
kubernetes.io/ingress.class: alb | |
# on a public subnet | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
# register pods to Load Balancer (not nodes) |
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
Computer Information: | |
Manufacturer: Apple | |
Model: iMac19,1 | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz | |
CPU Family: 0x6 |
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 itertools import chain | |
import inspect | |
# very naive deastruct implementation (not native...) | |
def _destruct(selector): | |
def _(value): | |
if isinstance(selector, dict): | |
yield from chain.from_iterable(_destruct(selector[k])(value[k]) for k in selector) |
NewerOlder