Skip to content

Instantly share code, notes, and snippets.

@yak1ex
yak1ex / README.md
Last active August 29, 2015 14:00
Pod::Weaver::Section::AllowOverride and bizarre behavior on Perl 5.10 with Dist::ZIlla

Only on Perl 5.10, a bizarre error occurs like https://travis-ci.org/yak1ex/String-Unescape/jobs/24323913

It is reproduced in my local environment (Cygwin) by the following procedure.

  • Clone https://github.com/yak1ex/String-Unescape
  • Install newly Perl-5.10.1 environment by perlbrew
  • Install Dist::Zilla like perlbrew exec --with perl-5.10.1 cpanm Dist::Zilla
  • Install dependent modules like dzil authordeps | perlbrew exec --with perl-5.10.1 cpanm
  • perlbrew exec --with perl-5.10.1 perl /usr/local/bin/dzil build causes error shown in output.log
@yak1ex
yak1ex / .gitignore
Last active August 29, 2015 14:00
Tree selection test by AngularJS
bower_components/
ez-file-tree/
node_modules/
@yak1ex
yak1ex / out.md
Last active August 29, 2015 14:00
openssl speed rsa

Cygwin32 @ Windows 8.1 Pro / Core i7 4500U 1.8GHz

OpenSSL 1.0.1g 7 Apr 2014
built on: Tue Apr  8 11:04:36 CEST 2014
options:bn(64,32) md2(int) rc4(8x,mmx) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: gcc -D_WINDLL -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS  -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
                  sign    verify    sign/s verify/s
rsa  512 bits 0.000144s 0.000016s   6923.1  62466.3
rsa 1024 bits 0.000778s 0.000045s   1284.7  22272.9
@yak1ex
yak1ex / ie.cpp
Created December 31, 2013 12:50
COM / DistHelper samples
// ref. http://www.ne.jp/asahi/hishidama/home/tech/vcpp/webbrowser.html
// This document includes MANY misleading explanations but is useful anyway for implementation reference.
#include <iostream>
#include <windows.h>
#include <exdisp.h>
#include <comdef.h>
__CRT_UUID_DECL(IWebBrowser2, 0xd30c1661, 0xcdaf, 0x11d0, 0x8a, 0x3e, 0x00, 0xc0, 0x4f, 0xc9, 0xe2, 0x6e);
@yak1ex
yak1ex / gist:7554236
Last active December 28, 2015 19:59
FLAC option for EAC
-V --replay-gain -T "TITLE=%title% " -T "ALBUM=%albumtitle%" -T "TRACKNUMBER=%tracknr%" -T "ARTIST=%artist%" -T "GENRE=%genre%" -T "DATE=%year%" -T "TOTALTRACKS=%numtracks%" -T "DISCNUMBER=%cdnumber%" -T "TOTALDISCS=%totalcds%" -T "DESCRIPTION=%comment%" "--picture=%coverfile%" %source% %dest%
ref.
http://www.xiph.org/vorbis/doc/v-comment.html
http://www.exactaudiocopy.de/en/index.php/support/faq/
@yak1ex
yak1ex / memo.md
Created March 4, 2013 14:54
メモ: Eclipse プラグインでコンソールに出力
@yak1ex
yak1ex / std_tuple_adapter.hpp
Created May 31, 2011 14:52
Fusion adapter for variadic std::tuple
#ifndef YAK_FUSION_STD_TUPLE_ADAPTER_HPP
#define YAK_FUSION_STD_TUPLE_ADAPTER_HPP
#include <boost/config.hpp>
#ifdef BOOST_NO_VARIADIC_TEMPLATES
#error Need to enable variadic templates
#endif
#include <cstddef>
#include <tuple>