Skip to content

Instantly share code, notes, and snippets.

View niemyjski's full-sized avatar
😀

Blake Niemyjski niemyjski

😀
View GitHub Profile
@niemyjski
niemyjski / DiagnoseRedisErrors-ClientSide.md
Created July 19, 2016 11:36 — forked from JonCole/DiagnoseRedisErrors-ClientSide.md
Diagnosing Redis errors caused by issues on the client side

Diagnosing Redis errors on the client side

Customers periodically ask "Why am I getting errors when talking to Redis". The answer is complicated - it could be a client or server side problem. In this article, I am going to talk about client side issues. For server side issues, see here

Clients can see connectivity issues or timeouts for several reason, here are some of the common ones I see:


###Memory pressure

@niemyjski
niemyjski / Example1.cs
Created May 19, 2016 17:26 — forked from davidfowl/Example1.cs
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@niemyjski
niemyjski / cliff-notes.md
Created April 28, 2016 12:25 — forked from shiftkey/cliff-notes.md
Working Distributed - Cliff Notes
@niemyjski
niemyjski / .profile
Created April 6, 2016 14:21 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@niemyjski
niemyjski / CLA.md
Last active May 30, 2017 13:22
Exceptionless Contributor License Agreement

Exceptionless Contributor License Agreement

The document below clarifies the terms under which You (the copyright owner or legal entity authorized by the copyright owner), may make “The Contributions” (software, bug fixes, configuration changes, documentation, or any other materials) to “The Work” (Exceptionless/Exceptionless). This license protects You, “The Company” (Exceptionless) and licensees; it does not change your rights to use your own contributions for any other purpose.

Please complete the following information about You and The Contributions. If you have questions about these terms, please contact us at team@exceptionless.com.

You and “The Company” (Exceptionless) agree:

  1. You grant to “The Company” (Exceptionless) a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, relicenseable, transferable license under all of Your relevant intellectual property rights, to use, copy, prepare derivative works of, distribute and publicly perform and display “The Contributions”
@niemyjski
niemyjski / FailWidget.html
Created December 9, 2015 00:20 — forked from theit8514/FailWidget.html
Shows error .plugin/e.fn[c]/<@http://kendo.cdn.telerik.com/2015.3.930/js/kendo.all.min.js:10
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled</title>
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.rtl.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.default.min.css">
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2015.3.930/styles/kendo.mobile.all.min.css">
@niemyjski
niemyjski / gist:8217e18e66df7f4f47bd
Last active March 24, 2017 07:28
librato statsd ubuntu setup
apt-get install nodejs
apt-get install npm
cd /opt
git clone https://github.com/etsy/statsd.git
npm install -g forerver
cd statsd
nano config.js and copy the config file below
npm install statsd-librato-backend
apt-get install upstart monit
nano /etc/init/statsd.conf ( http://zzarbi.tumblr.com/post/43762180430/statsd-and-ubuntu-server-12-10)
@niemyjski
niemyjski / ProxySubmissionClient.cs
Created October 1, 2015 23:41
Setting Exceptionless proxy settings during runtime
// Override the default submission client
public class ProxySubmissionClient : SubmissionClient {
protected override HttpWebRequest CreateHttpWebRequest(ExceptionlessConfiguration config, string endPoint) {
var request = base.CreateHttpWebRequest(config, endPoint);
// Set the proxy info here.
try {
request.Proxy = new WebProxy("MyProxyAddress");
} catch (Exception) {}
@niemyjski
niemyjski / gist:e0bb970cc5ea59a28a79
Last active August 29, 2015 14:21
JavaScript/TypeScript plugin pipeline
function plugin1(context, next) {
console.log('plugin1');
console.log(context.event);
next();
}
function plugin2(context, next) {
console.log('plugin2');
someIO(next);
}
@niemyjski
niemyjski / gist:65bb407f17d210f9639f
Last active August 29, 2015 14:19
Exceptionless.JavaScript api design
// I'm working on the client api for submitting log messages, feature usages and exceptions to https://github.com/exceptionless/Exceptionless..
// Please leave a comment with what you like or what you prefer.
// ------ log messages -----
//Considerations: only message param is required.
// I like this as it feels native to js, but I don't like that source is the first,
// when it could be inferred if not set.. You could find yourself doing client.log(null, message) all over..
client.log(source, message, level);