Skip to content

Instantly share code, notes, and snippets.

--(jadams@aye-seven)-(3/pts/16)-(2008/06-Apr-14)--
--($:~)ruby-2.1.0--
$ iex
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (0.12.3-dev) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :ssh.start()
:ok
iex(2)> {:ok, s} = :ssh.shell('localhost')
New host localhost accept [y/n]?y
configure:6560: checking GLU Callbacks uses Tiger Style
configure:6603: g++ -c -g -Wall -O2 -fPIC -g -O2 -Wno-deprecated-declarations -fomit-frame-pointer -fno-strict-aliasing -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I/usr/local/lib/wx/include/gtk2-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:51:64: error: invalid conversion from 'GLvoid (*)(...) {aka void (*)(...)}' to '_GLUfuncptr {aka void (*)()}' [-fpermissive]
gluTessCallback(tess,GLU_TESS_VERTEX,(GLvoid (*)(...)) foo);
^
In file included from conftest.cc:37:0:
/usr/include/GL/glu.h:340:23: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, _GLUfuncptr)' [-fpermissive]
GLAPI void GLAPIENTRY gluTessCallback (GLUtesselator* tess, GLenum which, _GLUfuncptr CallBackFunc);
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ SwanParser ---
[INFO] Deleting file set: /home/jadams/projects/uspto/SolrSwan/target (included: [**], excluded: [])
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (Version Calculation) @ SwanParser ---
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ SwanParser ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
org.eclipse.jetty.servlet.ServletHandler – Error for /solr/us_patent_grant/select
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
@knewter
knewter / README.md
Created March 28, 2014 19:22
logstash json attempt (logstash 1.2.2)

Alright, so I run logstash 1.2.2 like so:

$ java -jar ~/software/solrlogmanager/logstash_deploy/logstash-1.2.2-flatjar.jar agent -f logstash.conf 

And it outputs this:

Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.2.2/plugin-milestones {:level=>:warn}
@knewter
knewter / gist:9719402
Created March 23, 2014 06:13
exrm error
Errors generating release
Duplicated application included:
ets_lru included in idna and hackney
defmodule Renderer do
def render_board(state) do
state.tiles
|> render_tiles
|> Enum.join("\n")
end
defp render_tiles(tiles) do
tiles
|> Enum.map(fn(row) -> render_row(row) end)
defmodule BeamToolbox.Models.Project do
defstruct [:name, :website, :github]
use BeamToolbox.Model
alias BeamToolbox.GitHub
alias BeamToolbox.Data
@time_to_live 600 # 10 minutes
def category(project) do
Data.categories
|> Enum.filter(fn(c) -> Enum.member?(c.projects, project) end)
defmodule Cached do
@time_to_live 600 # 10 minutes
[:stargazers_count, :forks_count, :latest_commit_date, :description]
|> Enum.each fn(fun_name) ->
quote do
def unquote(fun_name)(repo_ident) do
:cadfaerl.get_or_fetch(:github, :"#{fun_name}#{repo_ident}", fn() ->
apply(BeamToolbox.Project.Statistics, fun_name, [repo_ident])
end, @time_to_live)
use Amnesia
defdatabase Database do
deftable User, [{ :id, autoincrement }, :name, :initials]
end
Amnesia.Schema.create
Amnesia.start
Database.create(disk: [node])
Database.wait