Skip to content

Instantly share code, notes, and snippets.

View aerosol's full-sized avatar
🌞
Praise the sun

hq1 aerosol

🌞
Praise the sun
View GitHub Profile
defmodule Plumbago.Exometer.Graphite do
@behaviour :exometer_report
require Logger
defstruct host: 'localhost',
port: 2003,
connect_timeout: :timer.seconds(5),
prefix: "prefix",
api_key: "plumbago",
set nocompatible hidden laststatus=2
if !filereadable('/tmp/plug.vim')
silent !curl --insecure -fLo /tmp/plug.vim
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
autocmd VimEnter *
\ if !empty(filter(copy(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync

Ecto: 2.1.2

Postgres: 9.6.1

Trying to perform upsert with counter increase on conflict (unique constraint violation).

Migration:

create table(:people) do
-compile(no_auto_import).
-file("lib/ecto/repo.ex", 1).
-module('Elixir.Ecto.Repo').
-export_type([{t, 0}]).
-type({t, {type, 80, module, []}, []}).
#lang racket
(define (pylon-empty) '())
(define (pylon-push pylon ring) (cons ring pylon))
(define (pylon-top pylon) (first pylon))
(define (pylon-pop pylon) (cdr pylon))
$ travis lint .travis.yml
Warnings for .travis.yml:
[x] in addons section: unexpected key apt, dropping
[x] in language section: illegal value elixir, defaulting to ruby
[x] unexpected key elixir, dropping
[x] specified otp_release, but setting is not relevant for ruby
app
$ ag --elixir "defmodule" | wc -l
622
deps
$ ag --elixir "defmodule" | wc -l
768
** (SystemLimitError) a system limit has been reached
(stdlib) :ets.new(Clubbase.Views.UserPassReset, [:bag, :public])
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:100: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/8
-compile(no_auto_import).
-file("lib/decompilerl.ex", 1).
-module('Elixir.Decompilerl').
-export(['__info__'/1, decompile/1, decompile/2]).
-spec({{'__info__', 1},
[{type, 1, 'fun',
### Keybase proof
I hereby claim:
* I am aerosol on github.
* I am hq1 (https://keybase.io/hq1) on keybase.
* I have a public key whose fingerprint is 0A85 E637 BF4F 2016 7C7C D182 9173 0B7D B2EA 841C
To claim this, I am signing this object: