Skip to content

Instantly share code, notes, and snippets.


Chris F Carroll chrisfcarroll

Block or report user

Report or block chrisfcarroll

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
necojackarc / Settings for
Last active May 18, 2019
Note to set up macOS
View Settings for
  • Install Scroll Reverser
  • Install Karabiner-Elements
  • Set 'Delay Untile Repeat' as short as possible
  • Run defaults write -g ApplePressAndHoldEnabled -bool false on the terminal to enable key-repeating
  • Run defaults write -g KeyRepeat -int 1 on the terminal and reboot the machine
  • Install iTerm2
alanstevens /
Last active May 18, 2019
macOS Setup and Configuration

This guide was created using macOS Mojave 10.14.2


For your sanity, do this first

  • System Preferences -> Trackpad -> Tap to click
  • Terminal: settings -> profiles -> font -> change 18pt (restart terminal)

Install the ThoughtBot Laptop Script:

chrisfcarroll / SerilogStringListSink.cs
Last active Sep 21, 2017
A StringList Sink for Serilog. Typical usage:
View SerilogStringListSink.cs
using System;
using System.Collections.Generic;
using System.IO;
using Serilog;
using Serilog.Configuration;
using Serilog.Core;
using Serilog.Events;
using Serilog.Formatting;
using Serilog.Formatting.Display;
flaub / SqliteContext.cs
Created Mar 16, 2015
SQLite EF 6 Database Initializer
View SqliteContext.cs
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Data.SQLite;
using System.Linq;
namespace SQliteEF6
class SqliteContext : DbContext
jboner / latency.txt
Last active Aug 24, 2019
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers (~2012)
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
You can’t perform that action at this time.