Skip to content

Instantly share code, notes, and snippets.

View david-driscoll's full-sized avatar
🏠
Working from home

David Driscoll david-driscoll

🏠
Working from home
View GitHub Profile
@david-driscoll
david-driscoll / wsl2-with-1password-info.md
Created October 13, 2023 22:50 — forked from WillianTomaz/wsl2-with-1password-info.md
Instructions for using 1Password SSH Agent with WSL2 (on Windows 11)

Saturday, April 22, 2023

How to Use 1Password SSH Agent with WSL2 (on Windows 11)

  • Note:

    • Always look for the official documentation, this tutorial may not suit you as there are new updates to the installation process.
    • References are at the end of the document.
  • Was used:

    • Windows 11 (x64)
    • WSL 2 (Ubuntu 22.04.2 LTS)
@david-driscoll
david-driscoll / details.lua
Last active September 13, 2022 02:15
Wow Profiles
S37AZTrowAd(Bz)WgX0rm2lUFzNy)aqcGQ802Y1Akp12X6W0us0wmkks9ssvUCVX4F77bazYBkpWY9B110ZUDfDBjrIejYdoxEoxWjFp99x((j3Vz9hxSCE(xx)RZ3mB5YPxVC(Sntxn)Z7wV5t3oB7U37F)KRND)Uh2mF6M5ZwMh8T5FcF(27NVC519d6UfBV(Mz7ML)9zpSP8Z5RMV5tFj)B3m7UzFAo8B7E)KnR)80po7M5txScMTlOVFc8lxWE)fKNZYF)2DWn6U5BME96vFCXNY3Xpc3e4dE4E4omF77V69t(F8WIR)LP3mF38R3Ty9Q8hTz(257MclQRNE9SRVDE(ZwTE6SLZ3SRCnpSD(0zRwC3S8vmD21xpV8yCZITZUA58P39LD3U46P38WQpnVmJWAz1dWczX1ZwoD7xGLWDLLBEEYpe7NRT5PzZ87xVz30mXz6YfR(LT110DaPTq5UB6h3S(UPRGhTk9cU6hUB6Ek)67UA2UP7waF9fucSSMpB3Tt3TE9YDlUF6NxCZUBF)fCjz)DA36PF(21VFcSbTC22TLN8TW8SEZnBZewfRsEZ0vj1k5uMSNoZ1WVXZ)w5Ze1XapWxO47VOYGkdhBWmy10p6(rwgbV83IH)Umq6(P9WQaBShVUpFbF(ypSCn9lx64duGTsh5Ps2yX(ykMQ1O3p48tqzY17h(WGvngTz)OvCM5WnqJFj29xY(nqd(Wvemk4JgRuRBSZ88HrR6jJhX)ncHPCDI61LNBdTbJ3JMArJbF2mZuYgu8hn4d7MQhtSF0O1TO1pA0MwZ9Jydvw0DMhnwnP1c58HF0OX1mC(UpLWWj6NkTPPOR8ZOjuchFZ5SjLHkbFg7bLiAqOpBw5TysFeFhVLaWJE2Kn2uot)KII(0DoBKu1G5)8DTdm)pAEF0qfnKtoJfAx2OtgQaySCZ6hUF(nzBA9gR6XiCdyXE7Uz7Ey7vZ2Cyjpq2gE66NwdOdaSyEHk)p63p5NxVz5ntGlF(x)WKRxVzE(E(X
void Main()
{
var config = new MapperConfiguration(expression =>
{
expression.CreateMap<C, C>().ReverseMap(); // works
expression.CreateMap<D, D>(); // stackoverflows
});
var mapper = config.CreateMapper();
}
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k ctrl+d",
"command": "editor.action.formatDocument",
"when": "editorTextFocus"
},
{
"key": "ctrl+r ctrl+r",
"command": "editor.action.rename",
Verifying my Blockstack ID is secured with the address 1Lcq5YB1AuboF9B3iwuXvFhdeCE5NkeSez https://explorer.blockstack.org/address/1Lcq5YB1AuboF9B3iwuXvFhdeCE5NkeSez

Keybase proof

I hereby claim:

  • I am david-driscoll on github.
  • I am daviddriscoll (https://keybase.io/daviddriscoll) on keybase.
  • I have a public key ASCoqdXZ3yJzXztd7-46YIgl4UhxTEN-KPFQHLY9lhGtGgo

To claim this, I am signing this object:

void Main()
{
var cb = new ContainerBuilder();
cb.RegisterSource(new ContravariantRegistrationSource());
cb.RegisterAssemblyTypes(typeof(IMediator).Assembly).AsImplementedInterfaces();
cb.RegisterAssemblyTypes(this.GetType().Assembly)
.Where(v => v.IsClosedTypeOf(typeof(IAsyncRequestHandler<,>)))
.As(t => t.GetInterfaces()
.Where(v => v.IsClosedTypeOf(typeof(IAsyncRequestHandler<,>)))
.Select(v => new KeyedService(typeof(IAsyncRequestHandler<,>), v)));
@david-driscoll
david-driscoll / index.js
Last active January 25, 2016 20:34
requirebin sketch
var Subject = require('rxjs').Subject;
function clog(msg) {
var div = document.createElement('div');
div.innerText = msg;
document.body.appendChild(div);
}
// Setup subject and a subscription
var numbers = new Subject();
@david-driscoll
david-driscoll / compute.js
Last active December 11, 2015 04:01
Rest Generic Parameters
var s = '/*- *compute n:2-5* combineLatest<T, {|X|}>({_|x|: ObservableInput<|X|>}): Observable<[T, {|X|}]>; -*/\n\
/*- *compute n:2-5* combineLatest<T, {|X|}>(array: [{ObservableInput<|X|>}]): Observable<[T, {|X|}]>; -*/\
/*- *compute n:2-5* combineLatest<T, {|X|}, TResult>({_|x|: ObservableInput<|X|>}, project: (v1: T, {|x|: |X|}) => TResult): Observable<TResult>; -*/\
/*- *compute n:2-5* combineLatest<T, {|X|}, TResult>(array: [{ObservableInput<|X|>}], project: (v1: T, {|x|: |X|}) => TResult): Observable<TResult>; -*/';
var captureRegex = /\/\*\-(.*?)-\*\//g;
var computeNumberRegex = /\*compute n\:(\d.*?)\*/;
var tokenRegex = /\{.*?\}/g;
var capture;
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap: