Skip to content

Instantly share code, notes, and snippets.

View ozaki-r's full-sized avatar

Ryota Ozaki ozaki-r

View GitHub Profile
@ozaki-r
ozaki-r / ipgen-output-summary.txt
Last active October 25, 2024 09:35
ipgen with I226-V on GMKtec NucBox M7 Pro (direct loopback)
rfc2544 tolerable error rate: 0.0100%
rfc2544 trial duration: 10 sec
rfc2544 pps resolution: 0.1000%
rfc2544 interval: 0 sec
rfc2544 warming duration: 1 sec
framesize|0G 1G 2G 3G 4G 5G 6G 7G 8G 9G 10Gbps
---------+----+----+----+----+----+----+----+----+----+----+
64 |####### 1398.81Mbps, 2732043/ 3720238pps, 73.44%
128 |########### 2150.34Mbps, 2099938/ 2111486pps, 99.45%
@ozaki-r
ozaki-r / dmesg.txt
Created October 6, 2024 16:01
Redox OS
user:~# cat /scheme/sys/log > dmesg.txt
user:~# cat dmesg.txt
kernel::arch::x86_shared::device::local_apic:INFO -- Detected x2APIC
kernel::acpi:INFO -- RSDP: RSDP { signature: [82, 83, 68, 32, 80, 84, 82, 32], _checksum: 124, _oemid: [66, 79, 67, 72, 83, 32], revision: 0, rsdt_address: 2147361845, _length: 0, xsdt_address: 0, _extended_checksum: 95, _reserved: [83, 77, 51] }
RSDT:
APIC: FEE00000: 1
X2APIC 0
LocalApic(MadtLocalApic { processor: 0, id: 0, flags: 1 })
This is my local APIC
LocalApic(MadtLocalApic { processor: 1, id: 1, flags: 1 })
@ozaki-r
ozaki-r / cpuinfo.txt
Last active September 29, 2024 03:03
GMKtec NucBox M7 Pro
processor : 0
vendor_id : AuthenticAMD
cpu family : 25
model : 68
model name : AMD Ryzen 9 PRO 6950H with Radeon Graphics
stepping : 1
microcode : 0xa404102
cpu MHz : 2019.843
cache size : 512 KB
physical id : 0
@ozaki-r
ozaki-r / ippatsushiken_memo.md
Last active September 7, 2024 14:55
自動車免許一発試験メモ

これはなに?

これが私が東京都にある府中運転免許試験場で一発試験(もしくは飛び込み試験)で普通自動車免許を取得したときに学んだ手続きや試験日当時の流れ等をまとめたものです。試験場が違うと状況がかなり違うと思うので別の場所で受験する人にはあまり参考にならないかもです。運転技術については書いていません。

Takeaways

  • 一発試験(飛び込み試験)は、一般的な教習所による免許取得より安く取れるが時間がかかる
  • 時間がかかる理由は、技能試験が難しくて落ちることが多いというわけではなく、技能試験の予約が最短でも一ヶ月先になるから
  • キャンセルで試験枠が空くを狙うことで早めることは可能だけどうまくいく確率はかなり低そう
@ozaki-r
ozaki-r / gist:356439eac313eb0fbf1afae54942587b
Last active February 3, 2023 06:25
詳解システム・パフォーマンス 差分
まえがき
1章 イントロダクション
1.1 システムパフォーマンス
1.2 職種
1.3 作業
1.4 分析の視点
1.5 パフォーマンスエンジニアリングの難しさと面白さ
1.5.1 主観的な性質
1.5.2 複雑さ
@ozaki-r
ozaki-r / get_likes.py
Last active January 1, 2024 14:44
Get items from the playlist of Your Likes via YouTube Data API (See https://developers.google.com/youtube/v3/quickstart/python?hl=ja)
#!/usr/bin/python
import httplib2
import os
import sys
import json
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
ip link add name tx-veth0 type veth peer name tx-veth1
ip netns add af_xdp
ip link set tx-veth1 netns af_xdp
ip link add name rx-veth0 type veth peer name rx-veth1
ip link set rx-veth1 netns af_xdp
ip link set up dev tx-veth0
ip link set up dev rx-veth0
ip a add 10.0.1.2/24 dev tx-veth0
ip a add 10.0.2.2/24 dev rx-veth0
@ozaki-r
ozaki-r / setup.md
Last active January 8, 2021 08:19
Setups for a newly created VM on GCP

Fill $vmname and $username with yours.

  • gcloud compute ssh $vmname -- tmux -u new-session -A -s main
  • git clone https://github.com/ozaki-r/dotfiles
    • cd dotfiles
    • sh setup.sh
  • sudo apt install zsh
  • sudo passwd $username
  • chsh
    • /usr/bin/zsh
@ozaki-r
ozaki-r / gce_idle_suspend.sh
Last active June 3, 2021 20:31
GCE: automatically suspend the underlying VM on idle
#!/bin/sh
if [ $# -lt 2 ]; then
echo "usage: $0 name zone [time]"
exit 1
fi
# TODO: check if authenticated and suggest 'gcloud auth login'
name=$1
@ozaki-r
ozaki-r / sys-papers.md
Last active December 3, 2024 11:16
システム系論文紹介のまとめ