Skip to content

Instantly share code, notes, and snippets.

View unthought's full-sized avatar

Dan Mueller unthought

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

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 September 12, 2015 21:10
snippet to configure Vagrant to use SSH agent. Makes it easy to eg. access private git repositories from within VMs.
# -*- 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