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 / 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
@ttdoda
ttdoda / uudecode.ttl
Created July 8, 2014 11:18
Tera Termマクロでのuudecodeの実装
setsync 1
timeout = 0
; getspecialfolder save_dir "MyDocuments"
getspecialfolder save_dir "Desktop"
; save_dir = "C:\My Documents"
; save_dir = ""
do
recvln
% 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)
@ttdoda
ttdoda / pyonpyon.rb
Last active August 4, 2017 18:56
あぁ^~端末がぴょんぴょんするんじゃぁ^~
#!/usr/bin/env ruby
#
# License: CC0
#
gravity = 3
require 'timeout'
include Math
$stdout.sync = 1
@ttdoda
ttdoda / multisend.ttl
Created July 31, 2017 02:23
サーバに接続した状態で別のサーバにコマンドを送るサンプル
server_b="server-b mcast"
prompt="%"
connect "server-b"
wait prompt
setmulticastname server_b
unlink
connect "server-a"
wait prompt
@ttdoda
ttdoda / broadcast-test.ttl
Created July 27, 2017 14:07
Tera Termを250枚開くマクロ
total=250
xcount=20
xdelta=50
ydelta=50
for i 1 total
call opentt
unlink
next
@ttdoda
ttdoda / vim-lrm-il-fix.diff
Created July 19, 2017 15:14
左右マージン(垂直スクロールリージョン)使用時のカーソル位置修正
diff --git a/src/screen.c b/src/screen.c
index 0ec9ea2..01ea728 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -9732,6 +9732,7 @@ screen_ins_lines(
int j;
unsigned temp;
int cursor_row;
+ int cursor_col = 0;
int type;
@ttdoda
ttdoda / vim-lrm-req.diff
Created July 19, 2017 15:05
VimでのDECRQMによる左右マージン利用自動判定
diff --git a/src/main.c b/src/main.c
index 268c256..04edcad 100644
--- a/src/main.c
+++ b/src/main.c
@@ -825,6 +825,7 @@ vim_main2(void)
may_req_termresponse();
may_req_bg_color();
+ may_req_lrm_status();
#endif