This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <riakConfig nodePollTime="5000" defaultRetryWaitTime="200" defaultRetryCount="3"> | |
| <nodes> | |
| <node name="[email protected]" networkReadTimeout="60000" hostAddress="devUbuntu01" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
| <node name="[email protected]" networkReadTimeout="60000" hostAddress="devUbuntu02" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
| <node name="[email protected]" networkReadTimeout="60000" hostAddress="devUbuntu03" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
| <node name="[email protected]" networkReadTimeout="60000" hostAddress="devUbuntu04" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
| </nodes> | |
| </riakConfig> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Let's review your sales, Jenkins... */ | |
| WITH sales AS ( | |
| SELECT h.SalesPersonID , | |
| ROW_NUMBER() OVER (PARTITION BY h.SalesPersonID | |
| ORDER BY DATEPART(yyyy, h.OrderDate), | |
| DATEPART(mm, h.OrderDate)) AS rn , | |
| DATEPART(yyyy, h.OrderDate) AS [Year], | |
| DATEPART(mm, h.OrderDate) AS [Month], | |
| SUM(h.SubTotal) AS TerritoryTotal | |
| FROM Sales.SalesOrderHeader AS h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # via https://gist.github.com/419201#file_gitconfig.bash | |
| # Install (from Matt's gist) these useful Git aliases & configurations with the following command: | |
| # $ bash <(curl -s https://raw.github.com/gist/419201/gitconfig.bash) | |
| git config --global color.ui auto # colorize output (Git 1.5.5 or later) | |
| git config --global color.interactive auto # and from 1.5.4 onwards, this will works: | |
| echo "Set your name & email to be added to your commits." | |
| echo -n "Please enter your name: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| email = [email protected] | |
| name = Jeremiah Peschka | |
| [github] | |
| user = peschkaj | |
| [core] | |
| autocrlf = input | |
| safecrlf = true | |
| excludesfile = /Users/jeremiah/.gitignore | |
| editor = subl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Cassandra.Data.Linq; | |
| using Cassandra; | |
| namespace CassandraTest | |
| { | |
| [AllowFiltering] | |
| [Table("sales")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "\0\0\0\0\0\nriak_index_testssandwiches_int*2258\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {byte[256]} | |
| [0]: 0 | |
| [1]: 0 | |
| [2]: 0 | |
| [3]: 0 | |
| [4]: 0 | |
| [5]: 10 | |
| [6]: 16 | |
| [7]: 114 | |
| [8]: 105 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public RiakResult<IEnumerable<string>> StreamListBuckets() | |
| { | |
| var lbReq = new RpbListBucketsReq { stream = true }; | |
| var result = UseDelayedConnection((conn, onFinish) => | |
| conn.PbcWriteStreamRead<RpbListBucketsReq, RpbListBucketsResp>(lbReq, lbr => lbr.IsSuccess && !lbr.Value.done, onFinish)); | |
| if(result.IsSuccess) | |
| { | |
| var buckets = result.Value.Where(r => r.IsSuccess).SelectMany(r => r.Value.buckets).Select(k => k.FromRiakString()); | |
| return RiakResult<IEnumerable<string>>.Success(buckets); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Cassandra; | |
| using Cassandra.Data; | |
| using Cassandra.Data.Linq; | |
| using metrics.Core; | |
| using metrics.Reporting; | |
| using System.Diagnostics; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Cassandra; | |
| using Cassandra.Data; | |
| using Cassandra.Data.Linq; | |
| using metrics.Core; | |
| using metrics.Reporting; | |
| using System.Diagnostics; |