Skip to content

Instantly share code, notes, and snippets.

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

Magistol Magistol

🏠
Working from home
View GitHub Profile
$ telnet 2404:1a8:c023:3201::15 49881
Trying 2404:1a8:c023:3201::15...
Connected to 2404:1a8:c023:3201::15.
Escape character is '^]'.
GET /v6/route-info HTTP/1.1
Host: route-info.flets-east.jp:49881
Accept: */*
Connection: close
HTTP/1.1 200 OK
@Magistol
Magistol / Read.txt
Last active May 4, 2016 07:52
Twitterのライムラインからエゴサします
事前にPushoverのアカウント作成と通知クライアントアプリのダウンロードが必要
https://pushover.net/
Node.js用のライブラリをインストール
npm install config ntwitter pushover-notifications colors forever
設定ファイルの作成
mkdir config
vim config/default.json
実行
forever start egosa.js
@Magistol
Magistol / gist:4744779
Last active December 12, 2015 08:29
Mac OS X のファイルメニュー "Open With" のアプリケーションリストが重複するときの解決方法

###Mac OS X のファイルメニュー "Open With" のアプリケーションリストが重複するときの解決方法

Terminal で次のコマンドを入力する

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Control + Option を押しながら Dock の Finder を右クリックして Relaunch を選択。

@Magistol
Magistol / gist:4646641
Last active June 28, 2020 17:53
iOS 緊急速報音源メモ

##iOS 緊急速報音源メモ

Commercial Mobile Alert System (CMAS) for United States

ファイルの場所

/System/Library/Frameworks/CoreTelephony.framework/CellBroadcast/CellBroadcast_us.bundle/

cbs_alert_us.m4aリンク

@Magistol
Magistol / 0.OCNIPv6EEW.md
Last active March 28, 2017 22:16
OCN IPv6 を使って緊急地震速報を受信するメモ

OCN IPv6 マルチキャストを使って緊急地震速報を受信するメモ

参考1 IPv6マルチキャストのパケットが

参考2 Mac OS X で OCN IPv6 サービスに接続する (2)

その他、技術調査の結果のメモ。

  • 参考2は2006年の情報であり、OS X Mountaion Lion で実行するとメモリ関連のバグ?で落ちるので一部修正

OCN IPv6 に接続

参考2に従い、設定ファイルを作成する。ファイル名は options とする。