Skip to content

Instantly share code, notes, and snippets.

View timsavery's full-sized avatar

Tim Savery timsavery

View GitHub Profile

Keybase proof

I hereby claim:

  • I am timsavery on github.
  • I am timsavery (https://keybase.io/timsavery) on keybase.
  • I have a public key whose fingerprint is 0A47 6991 A506 DAA8 AA67 AC09 49C7 76FB 6D0C DEA8

To claim this, I am signing this object:

@timsavery
timsavery / chatham-devops.md
Created February 19, 2016 12:08
DevOps @ChathamFinTech

DevOps Engineer

Company Description:

At Chatham Financial, we’re committed to making a positive impact for our clients and markets, communities, and each other. That starts with hiring people who demonstrate intellectual curiosity, tenacity, and a desire for collaboration and growth. And yes, we know for many the word “financial” often conjures images of horror (e.g., suits and ties, cubicle farms, siloed teams, layers of creativity-killing bureaucracy). Don’t fret. Working here is a unique experience.

Our campus is designed to foster creativity and a collaborative spirit. No offices, an open floor plan with numerous gathering spaces, standup desk option, and plenty of whiteboards encourage communication and cross-team collaboration. The on-campus disc golf course, ping pong table, lounge and pub help too. Quarterly Hack Weeks in which teams and individuals pitch new product concepts and technology improvements similar to a startup weekend. Teams form around approved projects and in one week we take i

namespace FeatureToggle.Core
{
public interface IFeatureToggle
{
bool FeatureEnabled { get; }
}
}
var hiddenText = document.querySelector("#tfa_218");
var submitButton = document.querySelector("input[value='Submit']");
var nextPageButton = document.querySelector("input[value='Next Page']");
var previousPageButton = document.querySelector("input[value='Previous Page']");
var disableButtons = function () {
if (submitButton) {
submitButton.style.display = 'none';
}
@timsavery
timsavery / gist:6225396
Last active November 2, 2017 16:50
slnode Feedback

Console Output

  1. I'm not well versed with DTrace, but these error messages seem to be new when running under slnode.
  2. I didn't see anything in the "getting started" about installing memwatch, might be worth mentioning in the docs.
Tims-MacBook-Air:auth.chathamfinancial.com timsavery$ slnode src/index.js 
memwatch must be installed to use the instances feature
strong-agent profiling
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
@timsavery
timsavery / gist:5338637
Created April 8, 2013 17:28
jitsu deploy error
Tims-MacBook-Air:nodeph-website timsavery$ jitsu deploy
info: Welcome to Nodejitsu timsavery
info: jitsu v0.9.8
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/timsavery/github/nodephilly/nodeph-website/package.json
data:
public Stream RetrieveReportFileChunkable(int reportID, Chatham.Libraries.Enumerations.Report reportType)
{
FileInfo targetFile;
if (reportType == Chatham.Libraries.Enumerations.Report.FMSDataIntegration)
{
// We save data feed files as xml
targetFile = new FileInfo(DocumentManagementHelper.CachedDataFeedFileName(reportID));
}
else
{
public byte[] RetrieveReportFileChunkable(int reportID, Chatham.Libraries.Enumerations.Report reportType)
{
FileInfo targetFile;
if (reportType == Chatham.Libraries.Enumerations.Report.FMSDataIntegration)
{
// We save data feed files as xml
targetFile = new FileInfo(DocumentManagementHelper.CachedDataFeedFileName(reportID));
}
else
{
var app = express();
app.configure(function() {
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.favicon());
app.use(express.logger('dev'));
app.use(function (req, res, next) {
@timsavery
timsavery / gist:4497238
Last active December 10, 2015 21:48
The Message Class
public class Message {
private readonly IModel _model;
private readonly dynamic _body;
private readonly ulong _deliveryTag;
public dynamic Body {
get { return this._body; }
}
internal Message(IModel model, ulong deliveryTag, dynamic body) {