Skip to content

Instantly share code, notes, and snippets.

View krote's full-sized avatar

tomo krote

View GitHub Profile

kibana

elasticsearchをダウンロードする

基本的に展開して、

%ES_HOME%/bin/elasticsearch.bat

を実行すれば起動するようになる。

kibanaをダウンロードする

###########################################
# MongoDB Sample
# Driver:https://github.com/mongodb/mongo-csharp-driver/releases
# MongoDB Bson Namespace : http://api.mongodb.org/csharp/current/
###########################################
Add-Type -Path "C:\mongodb-win32-x86_64-2008plus-2.4.6\CSharpDriver-1.9\MongoDB.Bson.dll"
Add-Type -Path "C:\mongodb-win32-x86_64-2008plus-2.4.6\CSharpDriver-1.9\MongoDB.Driver.dll"
$dbName = "test"
@krote
krote / classutil.ps1
Created February 18, 2013 06:11
powershell fake class sample (not worked)
# classutil.ps1
# source from http://mojibake.seesaa.net/article/56484188.html
# class to cls
# var to mem
# def to func
$global:__cls__=@{}
# this function is not worked. why...
function global:cls([string] $name, [ScriptBlock] $definition)
@krote
krote / Oracle Sample
Last active December 13, 2015 17:49
PowerShell Oracle Sample
[void][reflection.assembly]::LoadWithPartialName("System.Data.OracleClient")
$ConnectionString = "Data Source=/******/;User ID=/*****/;Password=/*****/;Integrated Security=false;"
$OraConn = New-Object System.Data.OracleClient.OracleConnection($ConnectionString)
$dtSet = New-Object System.Data.DataSet
$strSQL = "SELECT * FROM EMP"
#Make Data Adapter