Skip to content

Instantly share code, notes, and snippets.

@kou1okada
kou1okada / apt-file.sh
Last active December 15, 2015 01:29
Subset version apt-file for cygwin.
#!/usr/bin/env bash
# Copyright (c) 2013 Koichi OKADA. All rights reserved.
# This script is distributed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
SCRIPTNAME=${0##*/}
function usage ()
{
#--------------------------------------------------------------------
@kou1okada
kou1okada / ezjtalk.sh
Last active December 15, 2015 03:59
easy use wrapper for open_jtalk
#!/usr/bin/env bash
# Copyright (c) 2013 Koichi OKADA. All rights reserved.
# This script is distributed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
SCRIPTNAME=${0##*/}
function usage ()
{
@kou1okada
kou1okada / upset.sh
Last active December 15, 2015 05:09
setup.ini maker for cygwin
#!/usr/bin/env bash
# Copyright (c) 2013 Koichi OKADA. All rights reserved.
# This script is distributed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
SCRIPTNAME=${0##*/}
function usage ()
{
cat <<EOD
@kou1okada
kou1okada / livedoorwiki_backup.sh
Last active September 4, 2023 00:37
backup script for livedoor wiki.
#!/usr/bin/env bash
# Copyright (c) 2013 Koichi OKADA. All rights reserved.
# This script is distributed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
SCRIPTNAME=${0##*/}
function usage ()
{
cat <<EOD
@kou1okada
kou1okada / POSIX1_rand.rb
Created April 2, 2013 14:41
rand, srand - pseudo-random number generator of POSIX.1 example implementation for Ruby.
# Copyright (c) 2013 Koichi OKADA. All rights reserved.
# This script is distributed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
# rand, srand - pseudo-random number generator of POSIX.1 example implementation for Ruby.
# see
# Wikipedia / POSIX
# http://ja.wikipedia.org/wiki/POSIX
# The Linux man-pages project / rand(3)
# https://www.kernel.org/doc/man-pages/
@kou1okada
kou1okada / deSFX.sh
Created April 5, 2013 01:30
LHa self-extracting archive to .lzh archive converter.
#!/usr/bin/env bash
# Copyright (c) 2013 Koichi OKADA. All rights reserved.
# This script is distributed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
if [ "$1" = "" ]; then
echo "LHa self-extracting archive to .lzh archive converter."
echo "Usage: ${0##*/} file ..."
echo
exit 1
@kou1okada
kou1okada / inkscape.exe.js
Created April 7, 2013 17:06
inkscape.exe wrapper for evading a bug of gtk_entry at Japanese environment.
/**
* inkscape.exe wrapper for evading a bug of gtk_entry at Japanese environment.
*
* Copyright (c) 2013 Koichi OKADA. All rights reserved.
* This script is distributed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
var INKSCAPE_PATH = [
// Please append here path for inkscape.exe if you want to use it preferentially.
@kou1okada
kou1okada / gimp-2.8.exe.js
Created April 7, 2013 18:47
gimp-2.8.exe wrapper for evading a bug of gtk_entry at Japanese environment.
/**
* gimp-2.8.exe wrapper for evading a bug of gtk_entry at Japanese environment.
*
* Copyright (c) 2013 Koichi OKADA. All rights reserved.
* This script is distributed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
//var REG_APP_PATH = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\gimp-2.8.exe\\";
var SEARCH_PATH = [
@kou1okada
kou1okada / sysbench.log
Last active January 4, 2019 04:51
Intel Core i7-4770 benchmark by sysbench on Ubuntu Desktop 13.04
2013-06-09 14:24:07
sysbench 0.4.12: multi-threaded system evaluation benchmark
Running the test with following options:
Number of threads: 8
Doing CPU performance benchmark
Threads started!
Time limit exceeded, exiting...
@kou1okada
kou1okada / Xorg.DL-DVI-D.log
Created June 26, 2013 17:13
Xorg.0.log of Intel Core i7-4770, ASRock H87 Pro4, DELL U2713HM, Ubuntu 13.04
[ 56.227]
X.Org X Server 1.13.3
Release Date: 2013-03-07
[ 56.227] X Protocol Version 11, Revision 0
[ 56.227] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[ 56.227] Current Operating System: Linux H87Pro4 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:07 UTC 2013 x86_64
[ 56.227] Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-3.8.0-25-generic root=UUID=63372e76-652a-422a-8d73-90d672c96202 ro rootflags=subvol=@ quiet splash vt.handoff=7
[ 56.227] Build Date: 17 April 2013 10:43:13PM
[ 56.227] xorg-server 2:1.13.3-0ubuntu6 (For technical support please see http://www.ubuntu.com/support)
[ 56.227] Current version of pixman: 0.28.2