Skip to content

Instantly share code, notes, and snippets.

View kinichiro's full-sized avatar

Kinichiro Inoguchi kinichiro

View GitHub Profile
@kinichiro
kinichiro / ERC error
Created October 12, 2015 11:18
ERC error
ERC error
@kinichiro
kinichiro / multi_byte_char.txt
Created September 27, 2015 05:38
multi byte char in adoc
CvPcb\cvpcb.adoc(13,47): This document is Copyright (C) 2010-2015 by it’s contributors as listed
CvPcb\cvpcb.adoc(52,25): by setting the component’s footprint field, or it is set in the schematic library
CvPcb\cvpcb.adoc(62,71): Equivalence files are lookup tables associating each component with it’s footprint.
CvPcb\cvpcb.adoc(491,40): Each name must be single quoted by the ’ character and the component and
Eeschema\eeschema_component_library_editor.adoc(285,47): image:images/toolbar_libedit_alias.png[images/étoolbar_libedit_alias.png].
Eeschema\eeschema_component_library_editor.adoc(377,17): will default to “U”. These properties changed later, but it is preferable to
Eeschema\eeschema_component_library_editor.adoc(435,21): The graphic options “Show pin number” and “Show pin name” define the
Eeschema\eeschema_component_library_editor.adoc(437,62): visible if the corresponding options are checked. The option “Place pin
Eeschema\eeschema_component_library_editor.adoc(438,13): names inside” defines the pin nam
@kinichiro
kinichiro / invalid_lists.pl
Created July 23, 2015 15:19
find invalid lists
#!/usr/bin/perl
foreach $in ( @ARGV ) {
next if( $in !~ /.+.adoc/ ) ;
printf "\n:-| processing [$in] ...\n";
open(IN, "<$in") || die "cant open file\n";
$line = 0;
$flag = 0;
while( <IN> ) {
++ $line;
@kinichiro
kinichiro / sign.sh
Last active August 29, 2015 14:25
openssl ca command test script
#!/bin/sh
#
# sign.sh
#
# input : none
# output : all files generated by this script go under $ssldir
#
openssl_bin=../apps/.libs/openssl
export LD_LIBRARY_PATH=../crypto/.libs/:../ssl/.libs/:
@kinichiro
kinichiro / conv_two2one.pl
Last active August 29, 2015 14:25
convert two-line-title to one-line-title
#!/usr/bin/perl
use strict;
use utf8;
binmode STDOUT, ":utf8";
my($a, $org, $line, $lb, $lc, $ld);
foreach $a ( @ARGV ) {
next if( $a !~ /.+.adoc/ ) ;
printf ":-| processing [$a] ...\n";
@kinichiro
kinichiro / ca-spkac.sh
Last active August 29, 2015 14:21
ca-spkac.sh
#!/bin/sh
#
# ca-spkac.sh
#
openssl_bin=../apps/openssl
if [ -e ../apps/openssl.exe ]; then
openssl_bin=../apps/openssl.exe
fi
@kinichiro
kinichiro / renametest.sh
Created May 11, 2015 11:31
renametest.sh
#!/bin/sh
#
# renametest.sh
#
# input : none
# output : all files generated by this script go under $ssldir
#
openssl_bin=../apps/openssl
if [ -e ../apps/openssl.exe ]; then
@kinichiro
kinichiro / enctest.sh
Created April 15, 2015 15:56
libressl enc test script
#!/bin/sh
# enctest.sh
openssl_bin=../apps/openssl
if [ -e ../apps/openssl.exe ]; then
openssl_bin=../apps/openssl.exe
fi
export OPENSSL_CONF=../apps/openssl.cnf
@kinichiro
kinichiro / 1 test_pstat_getproc.c
Created August 14, 2014 04:30
sample code for pstat_getproc()
/* test_pstat_getproc.c */
#include <stdio.h>
#include <unistd.h>
#include <sys/pstat.h>
int main() {
struct pst_status buf;
if(pstat_getproc(&buf, sizeof(buf), 0, getpid()) != 1) {
perror("pstat_getproc()");
@kinichiro
kinichiro / 1 test_pstat_getprocessor.c
Created August 14, 2014 02:09
sample code for pstat_getprocessor()
/* test_pstat_getprocessor.c */
#include <stdio.h>
#include <sys/pstat.h>
int main() {
int i;
for(i = 0; i < PST_MAX_PROCS; ++ i) {
struct pst_processor buf;