- document
- 文章
- context
- コンテキスト
- context propagation
- コンテキスト伝搬
- Metrics
- メトリック
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
alias coder="VSCODE_IPC_HOOK_CLI=`ls --sort=time /tmp/vscode-ipc-* | head -n 1` `ls ~/.vscode-server/bin/*/bin/code | head -1`" |
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
# change your display setting in VirtualBox to VBoxVGA | |
# execute 'cvt 2560 1360' to get the newmode line | |
xrandr --newmode "2560x1360_60.00" 293.50 2560 2744 3016 3472 1360 1363 1373 1410 -hsync +vsync | |
xrandr --addmode VGA-1 "2560x1360_60.00" | |
xrandr --output VGA-1 --mode 2560x1360_60.00 | |
# 2560x1400 is not working for me with below error and I don't know why | |
# |
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 sys | |
import cv2 | |
def sliding_window(image, stepSize, windowSize): | |
for y in range(0, image.shape[0], stepSize): | |
for x in range(0, image.shape[1], stepSize): | |
# yield the current window | |
yield (x, y, image[y : y + windowSize[1], x : x + windowSize[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
#!/usr/bin/env python3 | |
import sys | |
import os | |
import unicodedata | |
from tempfile import NamedTemporaryFile | |
def is_nfd(line): | |
for char in line.strip(): |
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
package main | |
import ( | |
"context" | |
"math/rand" | |
"time" | |
) | |
// DummySubscriber is an dummy | |
type DummySubscriber struct { |
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
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"os/exec" | |
) | |
// copied from internal/common/common.go |
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
package info.tdoc.spring.example.tracer; | |
import io.opencensus.trace.Tracing; | |
import io.opencensus.trace.Tracer; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.hibernate.resource.jdbc.spi.StatementInspector; | |
import io.opencensus.trace.AttributeValue; | |
import org.springframework.stereotype.Component; |
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
package main | |
import ( | |
"fmt" | |
"github.com/shirou/gopsutil/disk" | |
) | |
func main() { | |
parts, err := disk.Partitions(true) |
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 | |
# fetch Inventory from SSM | |
INVENTORY=$(aws ssm get-inventory --output json | jq -r '.Entities[].Id' ) | |
# select with Tag.Name by peco | |
EC2=$(aws ec2 describe-instances --instance-ids $INVENTORY --output json --query 'Reservations[].Instances[*].{Id:InstanceId,Name:Tags[?Key==`Name`].Value}' | jq -r '.[][0] | (.Id) + " " + (.Name[0])' | peco) | |
# parse instance-id | |
INSTANCE_ID=$(echo ${EC2} | cut -f 1 -d " ") |