Skip to content

Instantly share code, notes, and snippets.

View tkusano's full-sized avatar

Takayuki KUSANO tkusano

View GitHub Profile
@tkusano
tkusano / ubuntu-18.04-obs-eos80d-webcam.txt
Last active May 11, 2020 09:56
Ubuntu 18.04 + OBS Studio で EOS 80D を webcam として使う
$ sudo apt-get install gphoto2 v4l2loopback-utils
$ gphoto2 --abilities
カメラの性能 : Canon EOS 80D
シリアルポートのサポート : いいえ
USB サポート : はい
取り込みの選択 :
: 画像
: プレビュー
: Trigger Capture
セッティングのサポート : はい
@tkusano
tkusano / charms.sql
Created May 20, 2018 18:20
ちゃーむずが共演したイベントの一覧
WITH q AS (
SELECT count(e.event_id),e.event_id,e.name,e.start_time
FROM event e,actor a,performer p
WHERE ( a.name='永野愛理' OR a.name='山下七海' )
AND e.event_id=p.event_id
AND p.person_id=a.actor_id
GROUP BY e.event_id )
SELECT * FROM q WHERE count=2 ORDER BY q.start_time;
@tkusano
tkusano / AppleMobileBackup.log
Created September 20, 2016 13:40
Entries in console when "iPhone Disconnected Error During Restore" is occured
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|SocketStreamHandler.c:_SocketLogCallback| ERROR: SocketSend (data): error 32: Broken pipe
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|StreamHandler.c:_WriteFunc| ERROR: Error sending data: Can't send data
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|DeviceLinkConnection.c:_DLSendBytesAndDisconnectOnError| ERROR: Could not send data: 'Error writing length of data'
2016/09/20 21:38:25.299 AppleMobileBackup[568]: 568:2019934208|DeviceLinkConnection.c:_DLSendBytesAndDisconnectOnError| ERROR: Could not send data: 'StreamHandler is NULL'
2016/09/20 21:38:25.300 AppleMobileBackup[568]: 568:2019934208|DeviceLinkConnection.c:_DLMainThreadMessagePortCallback| ERROR: Error creating components from read data: 'NULL data returned from read'
2016/09/20 22:26:52.680 AppleMobileBackup[465]: 465:2752512|SocketStreamHandler.c:_SocketLogCallback| ERROR: SocketRecv (data): return of 0 bytes
2016/09/20 22:26:52.680 AppleMobileBack
@tkusano
tkusano / nihon-tv-animation-taizen.txt
Created December 18, 2014 12:42
日本TVアニメーション大全 原稿執筆者一覧
日本TVアニメーション大全
発行日2014年12月30日 初版第1刷発行
ISBN 978-4-418-14091-8
http://www.sekaibunka.com/book/exec/cs/14901.html
奥付より、執筆者等抜粋:
作品解説執筆:
山中貴幸、皆川ゆか、五味洋子、ぽろり春草、石黒直樹、古城文康、
神武団四郎、加々美利治、松田はる菜、沖本茂義、高崎計三、足立加勇、
@tkusano
tkusano / gist:355224e6d8bf33b9830c
Created November 27, 2014 01:42
cloudfront DNS trouble 2014-11-27 10:42 (+0900)
$ dig +norec @205.251.194.154 d36cz9buwru1tt.cloudfront.net.
; <<>> DiG 9.9.5-3-Ubuntu <<>> +norec @a.root-servers.net d36cz9buwru1tt.cloudfront.net.
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10611
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 16
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
diff -x tests -x __pycache__ -uNr dajaxice.orig/core/__init__.py dajaxice/core/__init__.py
--- dajaxice.orig/core/__init__.py 2014-01-19 18:17:40.000000000 +0900
+++ dajaxice/core/__init__.py 2014-07-03 18:02:09.260024999 +0900
@@ -1,6 +1,6 @@
from django.conf import settings
-from Dajaxice import Dajaxice, dajaxice_autodiscover
+from .Dajaxice import Dajaxice, dajaxice_autodiscover
--- 20140124.html 2014-06-09 16:37:40.839201388 +0900
+++ 20140124.html.orig 2014-06-09 16:37:31.307201438 +0900
@@ -113,7 +113,7 @@
<li>資料4-1<a href="data/0010_04_01.pdf" target="_blank"><img src="/common/images/icon_pdf.gif" width="12" height="12" alt="" class="file" />排水路に関する調査と対策状況について[東京電力]【PDF:2.95MB】<img src="/common/images/icon_window.gif" width="12" height="12" alt="別ウインドウで開きます" class="external" /></a></li>
<li>資料4-2<a href="data/0010_04_02.pdf" target="_blank"><img src="/common/images/icon_pdf.gif" width="12" height="12" alt="" class="file" />排水路に関する調査と対策状況について[東京電力]【PDF:3.24MB】<img src="/common/images/icon_window.gif" width="12" height="12" alt="別ウインドウで開きます" class="external" /></a></li>
<li>資料5<a href="data/0010_05.pdf" target="_blank"><img src="/common/images/icon_pdf.gif" width="12" height="12" alt="" class="file" />護岸付近の地下水からの告示濃度限度を超える放射性物質の検出等に関する対応 について[東京電力]【PDF:2.02MB】<img src="/common/images/icon_window.gif" width="12" height="12" alt="別ウインドウで開きます" class="external" /></a></l
@tkusano
tkusano / django-dajaxice-ng-0.5.6.5-python3.patch
Last active August 29, 2015 13:56
python3 patch for django-dajaxice-0.5.6.5
diff -uNr django-dajaxice-ng-0.5.6.5.orig/core/__init__.py django-dajaxice-ng-0.5.6.5/core/__init__.py
--- django-dajaxice-ng-0.5.6.5.orig/core/__init__.py 2014-01-19 18:17:40.000000000 +0900
+++ django-dajaxice-ng-0.5.6.5/core/__init__.py 2014-02-26 15:17:16.122867309 +0900
@@ -1,6 +1,6 @@
from django.conf import settings
-from Dajaxice import Dajaxice, dajaxice_autodiscover
+from .Dajaxice import Dajaxice, dajaxice_autodiscover
$ host www.melbourneit.com.au
www.melbourneit.com.au has address 203.27.227.79
$ telnet 203.27.227.79 80
Trying 203.27.227.79...
Connected to 203.27.227.79.
Escape character is '^]'.
GET /blog/ HTTP/1.1
Host: www.melbourneit.com.au
Connection: close
@tkusano
tkusano / gist:6153061
Created August 5, 2013 02:27
freerdb 1.0.1 jp keyboard fix (for Ubuntu 13.04)
Index: freerdp-1.0.1/libfreerdp-core/freerdp.c
===================================================================
--- freerdp-1.0.1.orig/libfreerdp-core/freerdp.c 2013-08-05 10:55:39.000000000 +0900
+++ freerdp-1.0.1/libfreerdp-core/freerdp.c 2013-08-05 11:03:46.108837876 +0900
@@ -35,6 +35,18 @@
rdp = instance->context->rdp;
+ {
+ rdpSettings* settings;