View ci60s_timeout.xml
This file contains 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="riak@172.16.33.107" networkReadTimeout="60000" hostAddress="devUbuntu01" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
<node name="riak@172.16.33.138" networkReadTimeout="60000" hostAddress="devUbuntu02" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
<node name="riak@172.16.33.221" networkReadTimeout="60000" hostAddress="devUbuntu03" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
<node name="riak@172.16.34.56" networkReadTimeout="60000" hostAddress="devUbuntu04" pbcPort="8087" restScheme="http" restPort="8098" poolSize="20" /> | |
</nodes> | |
</riakConfig> |
View lag.sql
This file contains 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 |
View git-setup.sh
This file contains 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: " |
View .gitconfig
This file contains 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 = jeremiah.peschka@gmail.com | |
name = Jeremiah Peschka | |
[github] | |
user = peschkaj | |
[core] | |
autocrlf = input | |
safecrlf = true | |
excludesfile = /Users/jeremiah/.gitignore | |
editor = subl |
View test-client.cs
This file contains 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")] |
View message with show_terms
This file contains 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" |
View messageBody first 100 bytes
This file contains 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 |
View ListBuckets.cs
This file contains 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); |
View DatastaxDriverTest.cs
This file contains 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; |
View DatastaxDriverTest.cs
This file contains 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; |