Skip to content

Instantly share code, notes, and snippets.

View kiyoka's full-sized avatar

Kiyoka Nishiyama kiyoka

View GitHub Profile
kiyoka ~$ curl -v https://agents.deepsecurity.trendmicro.com:443/
* Trying 52.54.240.176...
* TCP_NODELAY set
* Connected to agents.deepsecurity.trendmicro.com (52.54.240.176) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
C:\Users\kiyoka>curl -v https://agents.deepsecurity.trendmicro.com:443/
* Trying 34.206.146.6...
* TCP_NODELAY set
* Connected to agents.deepsecurity.trendmicro.com (34.206.146.6) port 443 (#0)
* schannel: SSL/TLS connection with agents.deepsecurity.trendmicro.com port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 199 bytes...
* schannel: sent initial handshake data: sent 199 bytes
* schannel: SSL/TLS connection with agents.deepsecurity.trendmicro.com port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
@kiyoka
kiyoka / loop.scm
Created September 3, 2014 13:56
Translate to Scheme from LLVM-IR code
;; simple loop program for Gauche
;; --- library
(define (icmp-slt a b)
(< a b))
;; --- target program
(define (main argv)
;; %1
;; %total
@kiyoka
kiyoka / loop1.el
Created September 3, 2014 13:49
Translate to Elisp from LLVM-IR code
;; loop1.el
;; --- library
(defun icmp-slt(a b)
(< a b))
;; --- target program
(defun %main()
;; %1
;; %total
@kiyoka
kiyoka / loop.c
Created September 3, 2014 13:44
simple loop program.
#include <stdio.h>
int main(void)
{
int total = 0;
volatile int i;
for( i = 0 ; i < (1000000 * 1000) ; i++ ) {
total += i+1;
}
printf( "total = %d\n", total );
@kiyoka
kiyoka / gist:11291245
Last active August 29, 2015 14:00
Ruby and Gauche(Scheme)'s equal operators
ruby 2.0.0p353
$ irb
irb(main):001:0> a = "abc"
=> "abc"
irb(main):002:0> b = "abc"
=> "abc"
irb(main):003:0> a == b
=> true
irb(main):004:0> a === b
=> true
@kiyoka
kiyoka / gist:4615251
Created January 23, 2013 22:46
crash report of PasteHub.app 0.2.0 on Mac OS X 10.6.8 with base SDK 10.6 and target OS 10.6.
Process: PasteHub [1327]
Path: /Applications/PasteHub.app/Contents/MacOS/PasteHub
Identifier: PasteHub.net.PasteHub
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [117]
Date/Time: 2013-01-24 07:42:56.883 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@kiyoka
kiyoka / gist:4594883
Created January 22, 2013 14:06
crash report of PasteHub.app 0.2.0 on Mac OS X 10.6.8
Process: PasteHub [356]
Path: /Applications/PasteHub.app/Contents/MacOS/PasteHub
Identifier: PasteHub.net.PasteHub
Version: 0.2.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [117]
Date/Time: 2013-01-22 23:05:31.857 +0900
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@kiyoka
kiyoka / gist:4594203
Created January 22, 2013 12:14
crash report of PasteHub.app 0.2.0 on Mac OS X 10.5.8
Process: PasteHub [964]
Path: /Applications/PasteHub.app/Contents/MacOS/PasteHub
Identifier: PasteHub.net.PasteHub
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [164]
Interval Since Last Report: 899 sec
Crashes Since Last Report: 2
Per-App Interval Since Last Report: 0 sec
@kiyoka
kiyoka / gist:4243704
Created December 9, 2012 07:04
Error on fluent-logger and msgpack-jruby
This file is exist, but fluent-logger dose not use this file.
/usr/local/stow/ruby-1.7.0-jruby/lib/ruby/gems/shared/gems/msgpack-jruby-1.3.0-java/lib/msgpack.rb
error message is:
backtrace is /usr/local/stow/ruby-1.7.0-jruby/lib/ruby/shared/rubygems/custom_require.rb:55:in `require'
/usr/local/stow/ruby-1.7.0-jruby/lib/ruby/gems/shared/gems/fluent-logger-0.4.3/lib/fluent/logger /fluent_logger.rb:18:in `(root)'
/home/kiyoka/work/github/pastehub/lib/pastehub/log.rb:1:in `(root)'
/home/kiyoka/work/github/pastehub/lib/pastehub/log.rb:22:in `initialize'