MIT license.
- KeePass Password Safe
- Plugins / KPScript
MIT license.
Cygwin の dvipdfmx で rml フォントの設定がコメントアウトされている事により PDF への変換に失敗する以下の件に関するパッチである。
#!/usr/bin/env bash | |
# | |
# httpdate.sh - Get date information from http | |
# Copyright (c) 2017 Koichi OKADA. All rights reserved. | |
# This script is distributed under the MIT license. | |
# | |
function help () | |
{ | |
cat<<-EOD |
#!/usr/bin/env bash | |
# | |
# USB hub rebind | |
# Copyright (c) 2017 Koichi OKADA. All rights reserved. | |
# This script is distributed under the MIT license. | |
# | |
function usbhub_rebind () #= usb[0-9]+ | |
{ | |
local PCIDEV="$(realpath "/sys/bus/usb/devices/${1}")" |
/** | |
* Usage: gethash FULLPATH EXT | |
* ex) | |
* gethash C:\Users\kou\Pictures\20160904_090200.PNG .PNG | |
* | |
* Copyright (c) 2017 Koichi OKADA. | |
* License: | |
* GPLv3 or later. | |
*/ |
FROM ubuntu | |
MAINTAINER kou1okada <[email protected]> | |
env DEBIAN_FRONTEND=noninteractive | |
RUN \ | |
apt-get update &&\ | |
apt-get install -y apache2 &&\ | |
a2enmod rewrite &&\ | |
apt-get install -y xymon &&\ |
#!/usr/bin/env bash | |
VBoxManage list hdds|sed -r -e 's/\r//g'|awk 'match($0,/^Location: *(.+)$/,m){fn=idx[0+n]=m[1];n++;"ls -ls '\''"fn"'\''"|getline; prop[fn,"alloc"]=$1*1024;prop[fn,"size"]=$6;}match($0,/^Capacity: /){prop[fn,"capacity"]=$2*1024*1024}END{printf("%15s %15s %15s %s\n", "capacity", "allocated", "size", "filename");for(i=0;i<n;i++){fn=idx[i]; printf("%'\''15d %'\''15d %'\''15d %s\n", prop[fn,"capacity"], prop[fn,"alloc"],prop[fn,"size"],fn)}}' |
cmake_minimum_required(VERSION 2.8) | |
set(CMAKE_LEGACY_CYGWIN_WIN32 0) | |
project(ReaderModeExample) | |
if(MSVC) | |
add_compile_options("/MP") | |
endif() | |
add_executable(ReaderModeExample WIN32 | |
ReaderModeExample.c |
For example, if xhere
called below parameters from cmd.exe
,
C:\cygwin64\bin\mintty -e /bin/xhere /bin/bash "C:\Program Files"
xhere
must recieve "$2" = "C:\Program Files".
But currently xhere
recieves "$2" = ""C:\Program Files"". :-(
Maybe this causes by argv parser of cygwin.