Skip to content

Instantly share code, notes, and snippets.

View knok's full-sized avatar

NOKUBI Takatsugu knok

View GitHub Profile
@knok
knok / request.json
Created February 19, 2016 08:02
Cloud Visoin Result
{
"requests":[
{
"image":{
"content":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEP
ERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4e
Hh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAJYAlgDASIA
AhEBAxEB/8QAHQAAAQUBAQEBAAAAAAAAAAAAAgABAwQFBgcICf/EAEUQAAEDAwMDAgUCBAQEBQIG
AwEAAhEDBCEFMUEGElFhcQcTIoGRMqEUQrHBCCNS0RUWM+EkQ2Lw8VNyFzRUY4KSorLC/8QAGgEA
AwEBAQEAAAAAAAAAAAAAAAECAwQFBv/EAC0RAQEAAgEEAgICAAYCAwAAAAABAhEDBBIhMUFRBRMU
WARNING: rake-compiler found compiled files in 'ext/groonga' directory. Please remove them.
/usr/bin/ruby2.1 -rubygems test/run-test.rb
Loaded suite test/run-test
Started
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
@knok
knok / my-gcal.el
Last active August 29, 2015 14:06
;;
;; Create Google Calendar link
;;
;; 2014 NOKUBI Takatsugu <[email protected]>
;;
(defvar my-gcal-title "東京エリアDebian勉強会"
"予定のタイトル")
(defvar my-gcal-description ""
@knok
knok / dlperl.rb
Created September 10, 2014 08:02
An example code to call libperl from ruby using DL::Import
# call libperl from ruby 1.9.x
require 'dl'
require 'dl/import'
require 'dl/struct'
require 'pp'
module Perl
extend DL::Importer
dlload "libperl.so"
@knok
knok / wl-epg-verify.el
Created July 25, 2014 05:55
PGP/MIME verify for Wanderlust using Easy PGP(epg)
; PGP/MIME verify for Wanderlust using Easy PGP(epg)
;
(defun my-mail-verify-message ()
(interactive)
(save-selected-window
(wl-summary-jump-to-current-message)
(wl-mime-pgp-verify-region-with-epg (line-beginning-position) (line-end-position))))
### Keybase proof
I hereby claim:
* I am knok on github.
* I am knok (https://keybase.io/knok) on keybase.
* I have a public key whose fingerprint is 9945 2B4D D28B EEAC 8AB5 C931 B066 62EC 9C0C 1404
To claim this, I am signing this object:
@knok
knok / gist:0f1841bf3de1f1e43166
Created July 18, 2014 11:49
Debian installer patch for linux-source (#747284)
for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747284
Index: debian/installer/modules/mmc-modules
===================================================================
--- debian/installer/modules/mmc-modules (revision 21561)
+++ debian/installer/modules/mmc-modules (working copy)
@@ -1,5 +1,6 @@
mmc_block
sdhci
sdhci-pci ?
@knok
knok / gist:515a61abac7a47e7ae5f
Created July 18, 2014 10:47
LIVA dmesg (3.14.0-bpo.1~bpo70+1)
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.14-0.bpo.1-amd64 ([email protected]) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.14.7-1~bpo70+1 (2014-06-21)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.14-0.bpo.1-amd64 root=UUID=c21dab4a-0eac-4a77-b4e4-5dbdc0dd9db5 ro quiet
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000008efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000008f000-0x000000000008ffff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x0000000000090000-0x000000000009dfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
@knok
knok / ruby-delayer-0.0.2-bpo70.diff
Created May 19, 2014 07:20
ruby-delayer 0.0.2 debian diff for wheezy
diff --git a/debian/changelog b/debian/changelog
index 9bd660a..e0cfe08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-delayer (0.0.2-1~bpo70+1) wheezy-backports; urgency=medium
+
+ * Rebuild for wheezy-backports.
+
+ -- NOKUBI Takatsugu <[email protected]> Mon, 19 May 2014 07:11:12 +0000
@knok
knok / cpuinfo
Created May 14, 2014 23:08
ECSA LIVA /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 55
model name : Intel(R) Celeron(R) CPU N2806 @ 1.60GHz
stepping : 3
microcode : 0x321
cpu MHz : 1597.000
cache size : 1024 KB
physical id : 0