Skip to content

Instantly share code, notes, and snippets.

View jgoldfar's full-sized avatar

Max G jgoldfar

View GitHub Profile
@jgoldfar
jgoldfar / docker-compose.yml
Created March 18, 2024 03:34 — forked from rmoff/docker-compose.yml
Multi-node Kafka cluster (three brokers)
---
version: '3.8'
services:
zookeeper-1:
image: confluentinc/cp-zookeeper:5.5.1
ports:
- '32181:32181'
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000
-------------------------------------------------------------------
--Hammerspoon config to replace Cinch & Size-up (Microsoft Windows style) window management for free
--By Jayden Pearse (spartanatreyu)
--Sort of messy, forgive me. Never scripted in lua before
-------------------------------------------------------------------
-------------------------------------------------------------------
--Options, feel free to edit these
-------------------------------------------------------------------
doc"""
`gen_code` rejigs the standard julia `@generate` macro so that it creates a `code`
expression variable that can be extended using the `@code` macro. At the end of
the function it automatically outputs the result.
"""
macro gen_code(f)
#make sure this macro precedes a function definition.
isa(f, Expr) || error("gen_code macro must precede a function definition")
(f.head == :function) || error("gen_code macro must precede a function definition")
@jgoldfar
jgoldfar / Dockerfile
Last active August 30, 2015 18:36 — forked from anonymous/Dockerfile
# Minimal Dockerfile for downloading and running
# generic Linux Julia binaries on Ubuntu 14.04
# Or pick any other distribution and adjust the apt-get lines
FROM ubuntu:14.04
MAINTAINER Tony Kelman <tony@kelman.net>
RUN apt-get update && \
apt-get install git curl -y && \
mkdir -p /home/user/julia && \
curl -s -L https://status.julialang.org/stable/linux-x86_64 | \