Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Mueller unthought

  • Nomadic
View GitHub Profile
View ecto_log_to_sql_converter.exs
defmodule SqlParamsParser do
import NimbleParsec
string_ =
ignore(string("\""))
|> choice([utf8_string([not: ?"], min: 1), empty()])
|> ignore(string("\""))
|> reduce(:single_quote)
decimal_ =
View keybase.md

Keybase proof

I hereby claim:

  • I am unthought on github.
  • I am unthought (https://keybase.io/unthought) on keybase.
  • I have a public key ASDi58THZImbSapMtwQKfTGW3dX6pfgWsb6QibBUetZokgo

To claim this, I am signing this object:

@unthought
unthought / Vagrantfile
Last active Sep 12, 2015
snippet to configure Vagrant to use SSH agent. Makes it easy to eg. access private git repositories from within VMs.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# ...
# configure Vagrant to use SSH agent. Makes it easy to access git from within VMs.
config.vm.provision "shell" do |s|
ssh_pub_key = `ssh-add -L`
s.inline = <<-SHELL
echo '#{ssh_pub_key}' >> /home/vagrant/.ssh/authorized_keys