Skip to content

Instantly share code, notes, and snippets.

View kinichiro's full-sized avatar

Kinichiro Inoguchi kinichiro

View GitHub Profile
@kinichiro
kinichiro / Screen Shots
Last active June 28, 2020 14:49
lmms-1.2.0 with zynaddsubfx
Instrument Plugins:
https://user-images.githubusercontent.com/4927823/85950622-e5cff480-b998-11ea-8689-b41ea1195475.PNG
My Presets:
https://user-images.githubusercontent.com/4927823/85950692-42cbaa80-b999-11ea-8704-1be8d0044744.PNG
Loading demos:
https://user-images.githubusercontent.com/4927823/85950716-76a6d000-b999-11ea-8b02-9ff2f0418f56.PNG
/*
* Public domain
*
* BSD socket emulation code for Winsock2
* File IO compatibility shims
* Brent Cook <[email protected]>
* Kinichiro Inoguchi <[email protected]>
*/
#define NO_REDEF_POSIX_FUNCTIONS
@kinichiro
kinichiro / b64tv.pl
Created March 7, 2020 13:16
convert openssl-1.1.1d/test/recipes/30-test_evp_data/evpencod.txt to base64test.c data
#!/usr/bin/perl
my $infile = $ARGV[0];
my $num, $comment, $encoding, $input, $output;
my $inlen, $outlen, $validlen;
open(IN, "< $infile") || die "open";
$num = 0;
while (<IN>) {
@kinichiro
kinichiro / mttest.c
Last active February 19, 2020 16:32
mttest.c - multi thread test, copied from OpenSSL 1.0.2 codebase and modified
/* mttest.c */
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#ifndef _WIN32
#include <pthread.h>
#else
#include <windows.h>
@kinichiro
kinichiro / pwrite_pread.c
Created February 26, 2018 13:31
test program for pread and pwrite
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <fcntl.h>
#include <unistd.h>
#define FILENAME "pwrite_pread.dat"
void test_pwrite()
@kinichiro
kinichiro / ocsptest.sh
Created June 25, 2016 04:14
OCSP test script
#!/bin/sh
#
# ocsptest.sh - test script
#
openssl_bin=/usr/local/bin/openssl
function section_message {
echo ""
echo "#---------#---------#---------#---------#---------#---------#---------#--------"
@kinichiro
kinichiro / tls_debug.c
Created May 1, 2016 08:30
tls_debug.c
#include <time.h>
#include <sys/time.h>
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <tls.h>
#include "tls_internal.h"
#define TLS_DEBUG_LOG_LEVEL_NONE 0
#define TLS_DEBUG_LOG_LEVEL_MSG_ONLY 1
#define TLS_DEBUG_LOG_LEVEL_MSG_WITH_DUMP 2
@kinichiro
kinichiro / 1_Hello_libtls
Last active October 2, 2023 14:56
Hello libtls - libressl libtls API sample program
Hello libtls - libressl libtls API sample program
@kinichiro
kinichiro / README_image_macro.txt
Last active November 3, 2015 06:31
fix_fuzzing_by_changing_image_macro
This script fixes fuzzing caused by change of image: -> image::.
Search "#. type: Target for macro image" or
"#. type: Named 'alt' AttributeList argument for macro 'image'"
from po file, and set proper string to msgstr.
Usage:
image_macro.pl <lang>
To run:
@kinichiro
kinichiro / testscript.sh
Created October 22, 2015 09:16
testscript.sh
#!/bin/sh
openssl_bin=../apps/openssl/.libs/openssl
function section_message {
echo ""
echo "#---------#---------#---------#---------#---------#---------#---------#--------"
echo "==="
echo "=== (Section) $1 `date +'%Y/%m/%d %H:%M:%S'`"
echo "==="