Skip to content

Instantly share code, notes, and snippets.

View ttdoda's full-sized avatar

IWAMOTO Kouichi ttdoda

  • Kanagawa, Japan
View GitHub Profile
@ttdoda
ttdoda / multicast-example.ttl
Created April 10, 2019 16:40
sendmulticast を使用した複数端末の制御例
;
; multicast-example.ttl: sendmulticast を使用した複数端末の制御例
;
; COM2 で hoge を受信したら、sendmulticast を使って COM1 で fuga を送信する。
; COM1 はデータの送信のみ行える。
;
; License: CC0
; multicastname を "sender" に設定して、COM1 を開く
connect "/C=1 /mn=sender"
@ttdoda
ttdoda / .Xresources
Created February 26, 2019 10:29
xtermでマウス右ボタンでペーストする設定
*VT100*translations: #override \n\
~Ctrl ~Meta <Btn2Down>:start-extend() \n\
~Meta <Btn2Down>:select-extend() \n\
~Ctrl ~Meta <Btn2Up>:ignore() \n\
~Meta <Btn3Down>:ignore() \n\
~Ctrl ~Meta <Btn3Up>:insert-selection(SELECT, CUT_BUFFER0)
@ttdoda
ttdoda / locator-check.bash
Created January 25, 2019 08:53
DEC Locator mode対応確認
#!/usr/bin/env bash
#
# locator-check.bash: 端末が DEC Locator mode に対応しているか確認する
#
# 端末に ESC [ ? 55 n (ロケータ状態問い合わせ) を出力し、それへの応答で判断する
# ESC [ ? 50 n - 対応
# ESC [ ? 53 n - 非対応。ただしロケータ問い合わせ自体は理解出来ているので、
# 設定等で対応する可能性あり。
# 応答なし - 非対応
#
@ttdoda
ttdoda / eeeee_vt400.txt
Created December 18, 2018 06:21
eeeee for vt420 or later
[2*x[101;1;1;999;999$x[3;4;15;15;7$r[2;6;16;13;7$t[4;3;14;16;7$t[5;2;13;17;7$t[4;4;14;15;0$r[9;3;9;17;7$r[10;17;13;17;0$r[1;1;16;18;1;1;19;1$v[1;1;16;36;1;1;37;1$v[1;1;16;72;1;1;73;1$v[1;1;16;144;1;17;1;1$v[1;1;32;144;1;33;1;1$v
@ttdoda
ttdoda / eeeee_vt100.txt
Created December 18, 2018 06:18
eeeeeee for vt100
#8
@ttdoda
ttdoda / fall.rb
Last active November 15, 2018 11:33
端末が落ちます (下方向に)
#!/usr/bin/env ruby
#
# fall.rb -- 端末が落ちます (下方向に)
#
# 対応端末:
# dttermのウィンドウ制御シーケンスに一通り対応していれば動くはず……だけど意外と少ないんだ、これが
# 手元で動作するのを確認したのは xterm, Tera Term, mintty の三つ
#
# License: CC0
@ttdoda
ttdoda / vim-src-term.c-keypad.diff
Created May 9, 2018 03:31
Vim builtin_xterm キーパッド対応パッチ
diff --git a/src/term.c b/src/term.c
index 49dee03..fac101c 100644
--- a/src/term.c
+++ b/src/term.c
@@ -960,6 +960,16 @@ static struct builtin_term builtin_termcaps[] =
{K_KMULTIPLY, IF_EB("\033O*j", ESC_STR "O*j")}, /* keypad * */
{K_KENTER, IF_EB("\033O*M", ESC_STR "O*M")}, /* keypad Enter */
{K_KPOINT, IF_EB("\033O*n", ESC_STR "O*n")}, /* keypad . */
+ {K_K0, IF_EB("\033O*p", ESC_STR "O*p")}, /* keypad 0 */
+ {K_K1, IF_EB("\033O*q", ESC_STR "O*q")}, /* keypad 1 */
@ttdoda
ttdoda / kextest.txt
Created March 16, 2018 11:40
GitHub.com SSH KEX Info
% kextest github.com -v -a
Server version string: SSH-2.0-libssh_0.7.0
Protocol Version: 2 (2.0)
Server Version: libssh_0.7.0
Sending client version string: SSH-2.0-kextest_0.1
== Server Kex Info ==
cookie: c7 2b 1a f6 d3 ad e1 5c b1 ab fc 60 8b 66 0a 20
kex: curve25519-sha256@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group-exchange-sha256
hostkey: ssh-dss, ssh-rsa
% infocmp tmux-256color
# Reconstructed via infocmp from file: /usr/local/share/misc/terminfo.db
tmux-256color|tmux with 256 colors,
am, hs, km, mir, msgr, xenl,
colors#256, cols#80, it#8, lines#24, pairs#32767,
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
@ttdoda
ttdoda / gist:f48f4b32e1f0c76a32b11febd25d715d
Created October 25, 2017 10:44
MyFleetGirls エラー
13:34:25 [default-akka.actor.default-dispatcher-1422] ERROR c.p.h.ControllerActor - Poster Errorscala.MatchError: JNothing (of class org.json4s.JsonAST$JNothing$)
at com.ponkotuy.data.Material$.fromJson(Material.scala:33)
at com.ponkotuy.restype.Material$.postablesFromObj(Material.scala:22)
at com.ponkotuy.restype.Port$.postables(Port.scala:19)
at com.ponkotuy.http.ControllerActor$$anonfun$receive$2.applyOrElse(PostActor.scala:66)
at akka.actor.Actor$class.aroundReceive(Actor.scala:482)
at com.ponkotuy.http.ControllerActor.aroundReceive(PostActor.scala:59)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)