Skip to content

Instantly share code, notes, and snippets.

View enukane's full-sized avatar
🏠
Working from home

naoya Kaneko enukane

🏠
Working from home
View GitHub Profile
@enukane
enukane / recap2023.md
Last active January 1, 2024 05:38
2023年の振り返り

2023年の振り返り

今年消化した遣りたいことリストの項目

  • ジンギスカン鍋で焼き肉をする
  • John Wick 4を観る
  • 家の対外回線をモバイルで冗長化する
  • サンボに牛丼食べに行く
@enukane
enukane / wlan-modules.md
Last active September 13, 2023 04:26
無線LANアダプタデバイス一覧

PCIe

メーカー 型番 (チップ) 個数 チップメーカー バス 規格 バンド ストリーム数 備考
intel AX200 (AX200) 1 intel PCIe x1 802.11ax/ac 2.4/5 2x2
intel Wireless-AC 8265 (8265NGW) 1 intel m.2 802.11ac 2.4/5 2x2
intel Wireless-AC 9260 1 intel m.2 802.11ac 2.4/5 2x2
intel Wireless-AC 7260 1 intel mpcie 802.11ac 2.4/5 2x2
intel Wireless-N 7260 1 intel mpcie 802.11agn 2.4/5 2x2
intel WIFi Link 5300 533AN_HMW 1 intel mpcie 802.11agn 2.4/5 3x3
@enukane
enukane / gist:238ede585d3f974846ea0b7c4a80a2c5
Last active August 1, 2023 08:47
別インタフェースでAAA.AAA.0.0/16と同じコネクティッドルートを持っているホストB(10.20.10.100)へ、AAA.AAA.0.0/16にいるホストたちが無変更でAAA.AAA.0.XX/16だと思ってアクセスするためのNEC IXコンフィグ
#
# 外側の真正のネットワーク vrf-out vrf-in ホストBが持ってる余計なルート
# (AAA.AAA.0.0.0/16) -- GE0(AAA.AAA.0.XX) __ NEC-IX __ GE1(BBB.BBB.0.1) --UTPケーブルで直結-- GE2:1(BBB.BBB.0.2) __ NEC-IX __ GE2:2(10.20.10.1) -- eth0(10.20.10.100) HostB eth1 (AAA.AAA.0.0/16)
#
ip route vrf vrf-in AAAA.AAAA.0.0/16 BBB.BBB.0.1
ip route vrf vrf-out default ${AAA.AAA.0.0/16のデフォゲ}
ip route vrf vrf-out 10.20.10.0/24 BBB.BBB.0.2
ip dhcp enable
!
!
@enukane
enukane / chatgpt-int.py
Last active March 2, 2023 07:19
Single conversation with ChatGPT API
#!/usr/bin/env python3
import openai
import pit
import sys
openai.api_key = pit.Pit.get("openai")['api_key']
roles = ["assistant", "user"]
@enukane
enukane / lookback2022.md
Last active January 16, 2023 08:20
2022年の振り返り

2022年の振り返り

今年消化したやりたいことリストの項目

  • HSK2級受けたい
  • 無線LAN完全自壊マニュアルvol.3だしたい
  • C100以降にサークル参加したい
  • HSK1級受けたい
#!/usr/bin/env ruby
require "optparse"
OPTS={
:bpm => 60.0,
:output => "output.gif",
}
opt = OptionParser.new
opt.on("-b BPM", "--bpm=BPM") {|v|
@enukane
enukane / dmesg.txt
Last active July 12, 2022 13:35
unifi lite6
U6-Lite-BZ.6.0.14# dmesg
[ 0.081647] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 4.268203] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 4.268213] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 4.268224] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 4.268372] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.177597] Synchronize counters for CPU 1: done.
[ 4.034649] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 4.034656] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 4.034663] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
@enukane
enukane / lookback2021.md
Last active December 31, 2021 12:03
2021年の振り返り

2021年の振り返り

lookback2021_v2

今年消化したやりたいことリストの項目達

  • スペイン語検定試験受ける (落ちた)
  • フランス語検定試験受ける (4, 5級受かった)
  • Certified Wireless Network Administrator試験受ける (受かった)
@enukane
enukane / chromium-build.sh
Created December 2, 2021 02:16
chromium build
#!/bin/sh
set -ex
echo "in chromium directory"
mkdir chromium && cd chromium
echo "fetch chromium"
fetch --nohooks chromium
echo "in src directory"
cd src
echo "build deps"
./build/install-build-deps.sh
@enukane
enukane / gist:1f760bda013ea4855c193d2faca785a2
Created May 28, 2021 11:12
aerohiveでhs2.0有効化できたときの関係しそうなコンフィグ
ssid glenda9-hs20-ah
ssid glenda9-hs20-ah security-object glenda9-hs20
security-object glenda9-hs20
security-object glenda9-hs20 security aaa radius-server primary 172.20.0.254
security-object glenda9-hs20 security protocol-suite wpa2-aes-8021x
interface wifi1 ssid glenda9-hs20-ah
interface wifi0 ssid glenda9-hs20-ah