Skip to content

Instantly share code, notes, and snippets.


vetras vetras

Block or report user

Report or block vetras

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

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
steffenlyng / CorrelationIdEnricher.cs
Created Aug 11, 2015
Create Serilog Enricher to add Request header in logs
View CorrelationIdEnricher.cs
public class CorrelationIdEnricher : ILogEventEnricher
public void Enrich(LogEvent logEvent, ILogEventPropertyFactory propertyFactory)
if (logEvent == null) throw new ArgumentNullException("logEvent");
if (HttpContext.Current == null)
if (HttpContext.Current.Request == null)
tux4 / axios-test.js
Last active Nov 20, 2018
Jest mock for axios.js
View axios-test.js
/* Jest test of axios XHR calls */
describe('axios', function() {
var axios;
beforeEach(function() {
axios = require('axios');
pit('successful mock HTTP request', function() {
var reqP = axios
dylanmckay / facebook-contact-info-summary.rb
Last active Jul 11, 2019
A Ruby script for collecting phone record statistics from a Facebook user data dump
View facebook-contact-info-summary.rb
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
davidfowl / Example1.cs
Last active Oct 10, 2019
How .NET Standard relates to .NET Platforms
View Example1.cs
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)
mbostock / .block
Last active Oct 11, 2019
The Gist to Clone All Gists
View .block
license: gpl-3.0
AWMooreCO / AdvancedWindowSnap.ahk
Last active Oct 22, 2019
Advanced Window Snap is a script for AutoHotKey that expands upon Windows built-in window-snapping hotkeys.
View AdvancedWindowSnap.ahk
* Advanced Window Snap
* Snaps the Active Window to one of nine different window positions.
* @author Andrew Moore <>
* @version 1.0
* SnapActiveWindow resizes and moves (snaps) the active window to a given position.
jessfraz / boxstarter.ps1
Last active Nov 3, 2019
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <>
# Last Updated: 2017-09-11
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
# Run this boxstarter by calling the following from an **elevated** command-prompt:
staltz /
Last active Nov 14, 2019
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.