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
  • ミハル・アイヴァス『もうひとつの街』【Amazon】
  • イサベル・アジェンデ『精霊たちの家』【Amazon】
  • チママンダ・ンゴズィ・アディーチェ『アメリカーナ』【Amazon】
  • マーガレット・アトウッド『侍女の物語』【Amazon】
  • カズオ・イシグロ『日の名残り』【Amazon】
  • アーヴィン・ウェルシュ『マラボゥストーク』【Amazon】
  • ミシェル・ウエルベック『素粒子』【Amazon】
  • ウンベルト・エーコ『フーコーの振り子』【Amazon】
  • ミルチャ・エリアーデ『ムントゥリャサ通りで』【Amazon】
  • スティーヴ・エリクソン『黒い時計の旅』【Amazon】
@enukane
enukane / gist:02e97641117552baa59b6ec0f458cee1
Created November 13, 2017 07:19
bitvisor-gdb boot failed
Version 2.15.1236. Copyright (C) 2012 American Megatrends, Inc.
8A361 BIOS XG001 03/19/2015
EVALUATION COPY.
Press <DEL> or <ESC> to enter setup.
iPXE initialising devices...ok
iPXE 1.0.0+ (fc2f0) -- Open Source Network Boot Firmware -- http://ipxe.org
Features: DNS HTTP iSCSI TFTP AoE ELF MBOOT PXE bzImage Menu PXEXT
@enukane
enukane / dns64perfer.rb
Created October 11, 2017 08:02
utilize dns64perf++
#!/usr/bin/env ruby
require "resolv"
class DNS64Perf
TEST_INTERVALS=[1, 1000, 1000*1000] # 1GHz, 1MHz, 1kHz, 1Hz
TEST_THREADS=[1,2,4,8]
TEST_BURSTS=[1,2,4,8,16]
def self.default_configs
% dig www.iij.ad.jp [](09/11/17 8:23)
; <<>> DiG 9.8.3-P1 <<>> www.iij.ad.jp
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63477
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;www.iij.ad.jp. IN A
% sudo iw wlp2s0 set bitrates legacy-5 6
[2254484.280915] ath10k_pci 0000:02:00.0: firmware crashed! (uuid 8880338c-053e-46e5-b572-4e8c03972473)
[2254484.292677] ath10k_pci 0000:02:00.0: firmware register dump:
[2254484.299048] ath10k_pci 0000:02:00.0: [00]: 0x4100016C 0x000015B3 0x009BF931 0x00955B31
[2254484.307741] ath10k_pci 0000:02:00.0: [04]: 0x009BF931 0x00060530 0x00000010 0xFFFFFFFF
[2254484.316437] ath10k_pci 0000:02:00.0: [08]: 0x0044D9B8 0x0000C001 0x00000000 0x00000005
[2254484.325148] ath10k_pci 0000:02:00.0: [12]: 0x00000009 0x00000000 0x00957F04 0x00957F12
[2254484.333895] ath10k_pci 0000:02:00.0: [16]: 0x00958080 0x0094085D 0x00000000 0x00000000
[2254484.342649] ath10k_pci 0000:02:00.0: [20]: 0x409BF931 0x0040AA44 0x00420854 0x00440198
[2254484.351379] ath10k_pci 0000:02:00.0: [24]: 0x809BF9A1 0x0040AAA4 0x003C5908 0xC09BF931
@enukane
enukane / ping-0727-132935.log
Created July 31, 2017 02:15
janog40-wifi: clocked pinging
2017-07-27 13:29:37 OK 1062.751 ms
2017-07-27 13:29:39 OK 16.481 ms
2017-07-27 13:29:40 OK 16.512 ms
2017-07-27 13:29:41 OK 17.358 ms
2017-07-27 13:29:42 OK 16.017 ms
2017-07-27 13:29:43 OK 16.387 ms
2017-07-27 13:29:44 OK 17.487 ms
2017-07-27 13:29:45 OK 757.490 ms
2017-07-27 13:29:47 OK 612.222 ms
2017-07-27 13:29:49 OK 17.877 ms
% ifconfig
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether ac:bc:32:bc:XX:XX
inet6 fe80::aebc:32ff:febc:26bd%en0 prefixlen 64 scopeid 0x4
inet 192.168.21.14 netmask 0xfffffc00 broadcast 192.168.23.255
inet6 240b:13:2280:a900:aebc:32ff:febc:XXXX prefixlen 64 autoconf
inet6 240b:13:2280:a900:d106:75c3:1f6d:ab49 prefixlen 64 autoconf temporary
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
[enukane@lamhirh] ~/Sources/cuishark % make [](07/22/17 18:13)
c++ -std=c++11 -Wno-format-security -g -O0 -I./lib -o cuishark main.cc -lncurses -lpcap
In file included from main.cc:9:
In file included from ./TuiFrontend.h:12:
./PacketListPane.h:31:7: warning: delete called on 'ToggleList_Element' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor]
delete details[i];
^
./PacketListPane.h:213:69: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
sprintf(sstr, "%5zd %-13ld %-20s %-20s %-6s %5zd %-10s" , number, time,
~~~~~~ ^~~~
@enukane
enukane / nsl-new2f.md
Last active May 9, 2017 03:55
国会図書館Free-Wi-Fi @新館2F閲覧室

キャプティブポータル認証前

  • FREESPOTベースでのキャプティブポータルがかかっている
  • httpsでは通信できる。のでgmailとかは見れる。httpだけリダイレクト。twitterすらできる。
  • ping, traceroute, http, speedtest_cliは通らない
  • 外側IPアドレスは以下の通り  ( https://www.cman.jp/network/support/go_access.cgi )
121.112.46.224
( i121-112-46-224.s41.a013.ap.plala.or.jp )
@enukane
enukane / hc-notice.rb
Created April 5, 2017 05:01
HipChat Notifier script
require "faraday"
require 'securerandom'
require "optparse"
class HCNotifier
HC_URL = "https://www.hipchat.com"
HC_PATH_PREFIX = "/v2/room/"
HC_PATH_SUFFIX = "/notification?auth_token="
HC_COLORS = [