Skip to content

Instantly share code, notes, and snippets.

@cvogt
cvogt / gist:9239494
Last active September 9, 2019 01:30
Slick app architecture cheat sheet
// Please comment in case of typos or bugs
import scala.slick.driver.H2Driver._
val db = Database.for...(...)
case class Record( ... )
class Records(tag: Tag) extends Table[Record](tag,"RECORDS"){
...
def * = ... <> (Record.tupled,Record.unapply)
// place additional methods here which return values of type Column
@notadecent
notadecent / tox.sh
Last active June 17, 2019 15:55
toxcore installer script, for Gentoo, Arch, Red Hat, SuSE, Fedora, Debian, Mint, Ubuntu and their derivativesInstalls dependencies and toxic, venom and nurupo's Qt GUI
#!/bin/bash
## wget -O tox.sh waa.ai/iqt && chmod +x ./tox.sh && ./tox.sh
## ./tox.sh -sl to skip libsodium (they don't update that often)
## ./tox.sh -sd to skip libsodium and all the other dependencies
## If libraries are missing, remove /etc/ld.so.conf.d/locallib.conf and
## try running again. Else, try messing around with the prefix paths.
## Suggestions, comments and the alike are welcome on http://waa.ai/4xtC
## or send me a mail, to notadecent AT tox DOT im