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 / gist:dbe31e47ac75ba488f59
Created June 23, 2015 07:02
syscons ws_{x,y}pixel対応
Index: sys/dev/syscons/scvidctl.c
===================================================================
--- sys/dev/syscons/scvidctl.c (revision 284698)
+++ sys/dev/syscons/scvidctl.c (working copy)
@@ -237,6 +237,8 @@
return 0;
wsz.ws_col = scp->xsize;
wsz.ws_row = scp->ysize;
+ wsz.ws_xpixel = scp->xpixel;
+ wsz.ws_ypixel = scp->ypixel;
@ttdoda
ttdoda / sayaka.php.diff
Created June 11, 2015 08:46
sixel画像表示後のカーソル位置非互換の吸収
diff --git a/sayaka.php b/sayaka.php
index cdcf37b..900ed7e 100644
--- a/sayaka.php
+++ b/sayaka.php
@@ -426,9 +426,10 @@ function showstatus($status, $s)
// 今のところローカルアカウントはない
$profile_image_url = $s->user->profile_image_url;
+ print "\n\n\n".CSI."3A".ESC."7";
show_icon(unescape($s->user->screen_name), $profile_image_url);
@ttdoda
ttdoda / gist:a17cd034ef56c321e427
Created May 17, 2015 13:30
MyFleetGirls error
sue@nagato% sh -x MyFleetGirls.sh
+ dirname MyFleetGirls.sh
+ cd .
+ java -jar update.jar
myfleetgirls.keystoreに変更はありません
LICENSEに変更はありません
application.conf.sampleに変更はありません
MyFleetGirls.jarは存在しません。ダウンロードします。
おやっ、IOExceptionです!
java.io.EOFException
@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";
@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 / 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 / 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 / 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
;;; ライセンス: