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 / cursor-pos-test.sxl
Created April 10, 2014 02:43
cursor position after sixel image test
P0;0;8q"1;1
#0;2;0;0;0#1;2;64;75;90#2;2;45;39;58#3;2;45;26;23#4;2;51;59;49#5;2;28;45;73#6;2;99;94;90#7;2;29;44;71#8;2;17;14;20#9;2;87;80;55#10;2;100;100;100#11;2;20;27;53#12;2;15;4;2#13;2;25;35;71#14;2;100;95;88#15;2;1;1;1
#0!100@$
#0!100A$
#0!2C#10!96C#0!2C$
#0!2G#10!96G#0!2G$
#0!2O#10!2O#7!92O#10!2O#0!2O$
#0!2_#10!2_#7!92_#10!2_#0!2_$
-
#0!2@#10!2@#7!92@#10!2@#0!2@$
@ttdoda
ttdoda / errormsg.txt
Created June 5, 2014 02:27
MyFleetGirls Client 0.13.6 エラーメッセージ
---------------------------------------------
Welcome to MyFleetGirls Client Ver 0.13.6
---------------------------------------------
Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
@ttdoda
ttdoda / gist:c9db22ed1668e2e29a76
Last active August 29, 2015 14:03
Application Escape Key Mode改良試験用設定
let &t_SI .= "\e[?14004h"
let &t_EI .= "\e[?14004l"
inoremap <special> <Esc>[=27%~ <nop>
noremap <special> <Esc>[=27%~ <nop>
@ttdoda
ttdoda / yamada.ttl
Created July 14, 2014 13:03
Tera Term は山田を動かすことができる便利ツールです
;;; yamada.ttl --- 山田が踊ります
;; Copyright (C) 2013 by Wataru MIYAGUNI
;; Copyright (C) 2014 by IWAMOTO Kouichi
;; 作者: いわもと こういち
;; オリジナル版作者: Wataru MIYAGUNI (gonngo _at_ gmail.com)
;; Version: 0.0.1
;;; ライセンス:
@ttdoda
ttdoda / cal.txt
Last active August 29, 2015 14:08
date = getdate(time());
t = getdate(mktime(0, 0, 0, date.mon, 1, date.year));
offset = t.wday;
if (date.mon == 12) {
date.year += 1;
date.mon = 1;
}
else {
date.mon += 1;
@ttdoda
ttdoda / cal-messagebox.ttl
Created October 24, 2014 04:02
カレンダー表示Tera Termマクロ2
getdate y "%Y"
str2int year y
getdate m "%m"
str2int mon m
getdate d "%d"
str2int day d
getdate w "%w"
str2int wday w
offset = (wday + 8 - (day % 7)) % 7
@ttdoda
ttdoda / cal.ttl
Created October 24, 2014 04:00
カレンダー表示Tera Termマクロ1
getdate y "%Y"
str2int year y
getdate m "%m"
str2int mon m
getdate d "%d"
str2int day d
getdate w "%w"
str2int wday w
offset = (wday + 8 - (day % 7)) % 7
@ttdoda
ttdoda / haiku.ttl
Created March 2, 2015 04:53
俳句表示マクロ (要Tera Term 4.86)
strdim haiku 3
haiku[0] = "古池や 蛙飛び込む 水の音"
haiku[1] = "柿食えば 鐘が鳴るなり 法隆寺"
haiku[2] = "松島や ああ松島や 松島や"
; 端末初期化
; カーソル非表示(#27"[?25l")、代替スクリーンへ変更(#27"[?1049h")
; 左右マージンモード有効(#27"[?69h")、画面消去(#27"[2J")
dispstr #27"[?25l" #27"[?1049h" #27"[?69h" #27"[2J"
pause 1
@ttdoda
ttdoda / ja.po.diff
Created March 16, 2015 09:02
GnuPG 2.1.2で、日本語環境で鍵の期限を無期限にした時に落ちる問題の修正。
--- po/ja.po.orig 2015-03-11 18:04:23.000000000 +0900
+++ po/ja.po 2015-03-11 18:05:19.000000000 +0900
@@ -4630,11 +4630,11 @@
#: g10/keygen.c:2392
msgid "Key does not expire at all\n"
-msgstr "%sは無期限です\n"
+msgstr "鍵は無期限です\n"
#: g10/keygen.c:2393
@ttdoda
ttdoda / poderosa-dh-g14.diff
Created April 21, 2015 08:03
Poderosaのkexでdiffie-hellman-group1-sha1をdiffie-hellman-group14-sha1に置き換える差分
diff --git a/Granados/SSH2Connection.cs b/Granados/SSH2Connection.cs
index d798c3b..a42853f 100644
--- a/Granados/SSH2Connection.cs
+++ b/Granados/SSH2Connection.cs
@@ -1180,7 +1180,7 @@ namespace Granados.SSH2 {
}
private void SendKEXINIT(Mode mode) {
- const string kex_algorithm = "diffie-hellman-group1-sha1";
+ const string kex_algorithm = "diffie-hellman-group14-sha1";