Skip to content

Instantly share code, notes, and snippets.

@naumanbadar
naumanbadar / docker-compose-cassandra-cluster.yml
Created November 6, 2017 10:05
3 node cassandra cluster with docker-compose
version: "3.3"
# make sure that docker machine has enough memory to run the cluster.
# setting it up to 4GB seems to work.
services:
cassandra-seed:
image: cassandra:latest
# ports:
@naumanbadar
naumanbadar / gist:50d342adb99dde8b67e45f091fb6b84b
Created February 21, 2017 15:10
Run code from Integration test of project from sbt task
lazy val resurrectDb = taskKey[Unit]("Resurrect database from schema file")
val filter: ScopeFilter =
ScopeFilter(
inProjects( core ),
inConfigurations( IntegrationTest),
inTasks(compile)
)
@naumanbadar
naumanbadar / silence-dropbox.sh
Last active October 14, 2018 16:54 — forked from stefanschmidt/silence-dropbox.sh
Stop Dropbox from asking for admin password after installation to ~/Applications
chmod 0000 /Applications/Dropbox.app/Contents/Resources/*.tgz
chflags uchg /Applications/Dropbox.app/Contents/Resources/*.tgz