Skip to content

Instantly share code, notes, and snippets.

@kenjiuno
kenjiuno / Setup_Npgsql.nsi
Last active December 31, 2015 12:28
My sample NSIS setup script for Npgsql installer. You'll need ModifyDbProviderFactories/GACInstall/GACRemove. Only GAC install.
; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there.
;--------------------------------
!define APP "Npgsql"
@kenjiuno
kenjiuno / NpgsqlSetup.wxs
Last active December 31, 2015 20:19
Npgsql GAC installer by WiX Toolset
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<!--
Usage:
candle -dVER=2.0.14.3 -dEF=0 NpgsqlSetup.wxs && light -ext WixUIExtension NpgsqlSetup.wixobj
Location: Npgsql\installer
Folder structure:
Npgsql2.0.14.3-bin-ms.net2.0
@kenjiuno
kenjiuno / SSDLToPgSQL.tt
Created January 26, 2015 05:28
SSDLToPgSQL
<#
//---------------------------------------------------------------------
// This T4 template generates PostgreSQL queries from an instance of
// System.Data.Metadata.Edm.StoreItemCollection, an object representation
// of the SSDL. This query set is compatible with PostgreSQL x.x and higher.
//---------------------------------------------------------------------
// Inherited from:
// SSDLToFB.tt at http://sourceforge.net/p/firebird/NETProvider/ci/cb43606e32048b8c5175013ad4f296fc598c1844/tree/NETProvider/source/FirebirdSql/Data/Entity/SSDLToFB.tt
// History:
// SSDLToPgSQL.tt v0.1 2015/01/26 created by kenji uno
@kenjiuno
kenjiuno / notdll.sh
Last active May 6, 2021 15:19
Create re-director to a static link library for xxx.dll.a
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo "Usage: $0 /lib/*.dll.a"
exit 1
fi
for path_dll_a; do
path_notdll_a="${path_dll_a/\.dll\.a/\.notdll\.a}"
if [[ "$path_dll_a" != "$path_notdll_a" ]]; then
echo "Making notdll.a for $path_dll_a"
filename_dll_a="${path_dll_a##*/}"
# top-most EditorConfig file
root = true
[*]
end_of_line = crlf
insert_final_newline = true
[*.cs]
charset = utf-8
indent_style = space
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
end_of_line = crlf
insert_final_newline = true
[*.cs]
# Header, don't edit
NLF v6
# Language ID
1041
# Font and size - dash (-) means default
Meiryo UI
9
# Codepage - dash (-) means ASCII code page
932
# RTL - anything else than RTL means LTR
@kenjiuno
kenjiuno / acrt_iob_func.c
Last active September 21, 2018 02:33
_imp____acrt_iob_func for libjpeg-turbo
#include <stdio.h>
FILE *__acrt_iob_func(int handle) {
switch (handle) {
case 0: return stdin;
case 1: return stdout;
case 2: return stderr;
}
return NULL;
}
全角ひらがな 全角カタカナ 半角カタカナ
あ ア ア
い イ イ
う ウ ウ
ヴ ヴ ヴ
え エ エ
お オ オ
ぁ ァ ァ
ぃ ィ ィ
ぅ ゥ ゥ
---------------------------
tsf002
---------------------------
--- InputProcessorProfiles
{0000897B-83DF-4B96-BE07-0FB58B01C4A4}
{03B5835F-F03C-411B-9CE2-AA23E1171E36}
{07EB03D6-B001-41DF-9192-BF9B841EE71F}
{23E97BC9-F2D3-4B25-8EF3-D78391BF2150}
{531FDEBF-9B4C-4A43-A2AA-960E8FCDC732}
{6565D455-5030-4C0F-8871-83F6AFDE514F}