Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Example usage in ~/.ssh/config:
#
# host aws:*
# IdentityFile ~/.ssh/id_ed25519
# User ec2-user
# ProxyCommand ~/bin/aws-ssm-ec2-proxycommand.sh %h %r %p ~/.ssh/id_ed25519.pub
#
# Example SSH command:
#
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@isobit
isobit / .ideavimrc
Created September 12, 2017 15:47
Intellij IDEA vimrc
set surround
" gc and gcc to comment
" https://github.com/JetBrains/ideavim/pull/109#issuecomment-276759741
nnoremap gcc :action CommentByLineComment<cr>
vnoremap gc :<bs><bs><bs><bs><bs>action VimVisualSwapSelections<cr>:action CommentByLineComment<CR>

Keybase proof

I hereby claim:

  • I am isobit on github.
  • I am isobit (https://keybase.io/isobit) on keybase.
  • I have a public key ASBsxpDhU6b1AnimBrhdz-wiR8tnpXpLAbkpcWG5xzJPAwo

To claim this, I am signing this object:

Ext.define('RepositoryManager.form.ReplicatableField', {
extend: 'Ext.form.FieldContainer',
alias: 'widget.replicatablefield',
config: {
replicateEvent: 'blur',
removeButton: {}
},
layout: 'hbox',
initComponent: function() {
@isobit
isobit / vueScopedSlot.js
Created July 29, 2016 20:26
Vue Scoped Slot
var scopedSlot = {
plugin: {
install: function(Vue) {
Vue.elementDirective('scoped-slot', this.elementDirective);
}
},
mixin: {
elementDirectives: {
'scoped-slot': this.elementDirective
}
@isobit
isobit / PatternMatch.cs
Last active August 29, 2015 14:26
C# Pattern Matching
using System.Linq;
namespace Util
{
public static class PatternMatcherConversions
{
public static PatternMatcher<T, TRes> Match<T, TRes>(this T o)
{
return new PatternMatcher<T, TRes>(o);
}