Skip to content

Instantly share code, notes, and snippets.

# 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
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
end_of_line = crlf
insert_final_newline = true
[*.cs]
# top-most EditorConfig file
root = true
[*]
end_of_line = crlf
insert_final_newline = true
[*.cs]
charset = utf-8
indent_style = space
@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##*/}"
@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 / 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 / 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"