Skip to content

Instantly share code, notes, and snippets.

View solatis's full-sized avatar

Leon Mergen solatis

View GitHub Profile
FROM ubuntu:latest
RUN apt-get update -y && apt-get install python-pip cmake wget -y
RUN mkdir qdb-api && cd qdb-api && wget https://s3-eu-west-1.amazonaws.com/download.quasardb.net/quasardb/3.3/3.3.0/api/c/qdb-api_3.3.0-1.deb && dpkg -i qdb-api_3.3.0-1.deb && apt install -y -f
RUN pip install quasardb && pip install psutil
;; default:
(ns foo
(:import
[com.google.devtools.clouderrorreporting.v1beta1 ErrorContext
ProjectName
SourceLocation]))
;; what i want:
(ns foo
C:\Users\leon\Documents\GitHub>c:\Users\leon\Downloads\lein.bat new duct myproject
Retrieving duct/lein-template/0.10.6/lein-template-0.10.6.pom from clojars
Retrieving duct/lein-template/0.10.6/lein-template-0.10.6.jar from clojars
Generating a new Duct project named myproject...
Run 'lein duct setup' in the project directory to create local config files.
C:\Users\leon\Documents\GitHub>cd myproject
C:\Users\leon\Documents\GitHub\myproject>c:\Users\leon\Downloads\lein.bat duct setup
Retrieving duct/lein-duct/0.10.6/lein-duct-0.10.6.pom from clojars

Keybase proof

I hereby claim:

  • I am solatis on github.
  • I am solatis (https://keybase.io/solatis) on keybase.
  • I have a public key ASDFqPMyswz7pawp0vuy1IYeTs-RxAt2XZkSs9xU_LJraQo

To claim this, I am signing this object:

Code:
(ns kafka-test
(:require [gregor.core :as g]))
(def kafka-zookeeper "127.0.0.1:2181")
(g/create-topic {:connection-string kafka-zookeeper} "foobar-wombat" {})
(ns specfn
(:require
[clojure.spec :as s]
[clojure.tools.macro :refer [name-with-attributes]]
[clojure.walk :refer [postwalk]]
[clojure.core.match])
(:refer-clojure :exclude [fn defn]))
@solatis
solatis / gist:fb4114624c1724e50aa9
Created June 24, 2015 06:43
yesod linker error
link: linkables are ...
LinkableM (2015-06-24 06:33:13.9345115 UTC) Main
[DotO dist/dist-sandbox-7efef30f\build\bar\bar-tmp\Main.p_o]
Linking dist/dist-sandbox-7efef30f\build\bar\bar.exe ...
*** C Compiler:
"C:\Users\leon\AppData\Local\Programs\minghc-7.10.1-x86_64\ghc-7.10.1\lib/../mingw/bin/gcc.exe" "-fno-stack-protector" "-DTABLES_NEXT_TO_CODE" "-DPROFILING" "-c" "C:\Users\leon\AppData\Local\ghc5540_0\ghc5540_2.c" "-o" "C:\Users\leon\AppData\Local\ghc5540_0\ghc5540_3.o" "-IC:\Users\leon\AppData\Local\Programs\minghc-7.10.1-x86_64\ghc-7.10.1\lib/include"
*** Windres:
"C:\Users\leon\AppData\Local\Programs\minghc-7.10.1-x86_64\ghc-7.10.1\lib/../mingw/bin/windres.exe" "--preprocessor=\"C:\Users\leon\AppData\Local\Programs\minghc-7.10.1-x86_64\ghc-7.10.1\lib/../mingw/bin/gcc.exe\" \"-fno-stack-protector\" \"-DTABLES_NEXT_TO_CODE\" \"-E\" \"-xc\" \"-DRC_INVOKED\"" "--use-temp-file" "--input=C:\Users\leon\AppData\Local\ghc5540_0\ghc5540_4.rc" "--output=C:\Users\leon\AppData\Local\ghc5540_0\ghc5540_5.p_o" "--ou
@solatis
solatis / Version1
Last active August 29, 2015 14:05
My inability to comprehend Monads
module Main where
import System.ZMQ4.Monadic (ZMQ, Socket, socket, bind, send, runZMQ, liftIO, Push(..))
import System.ZMQ4 (Sender)
import Data.ByteString.Char8 (pack)
run :: System.ZMQ4.Sender t => Socket z t -> ZMQ z ()
run publisher =
mapM_ ((send publisher []) . pack) urls
/*
There once was a server-side stream eating function which looked like this:
*/
Meteor.startup(->
Crawler.Stream.create(sources).on('readable', ->
stream = this
while item = stream.read()
/*