Skip to content

Instantly share code, notes, and snippets.

View fkowal's full-sized avatar

Maciej Kowalski fkowal

  • Allegro Group
  • Poznań
View GitHub Profile

Since macOS Catalina, the root drive is read-only. The solution is to create a separate APFS volume and a “synthetic” /nix directory which points to it:

# Check if /nix exists, if not:
echo 'nix' | sudo tee -a /etc/synthetic.conf
# this will create a "synthetic" empty directory /nix

# REBOOT so macOS sees the synthetic directory

# After rebooting, create an APFS volume for Nix
@fkowal
fkowal / zio-test.scala
Created July 5, 2019 11:41 — forked from jdegoes/zio-test.scala
Simple example of testing with ZIO environment
object test {
import scalaz.zio._
type UserID = String
case class UserProfile(name: String)
// The database module:
trait Database {
val database: Database.Service
@fkowal
fkowal / REPLesent.scala
Created April 27, 2017 07:50 — forked from vil1/REPLesent.scala
slides of my presentation "Shapeless ? Easy !" at ScalarConf 2016
/*
* Copyright 2015 Marconi Lanna
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@fkowal
fkowal / Transducer.scala
Created April 27, 2017 07:49 — forked from ahoy-jon/Transducer.scala
Trying to transduce in Scala
package ahoy
import scala.collection.mutable
object transducer {
type Reducer[A, R] = R => A => R
trait Transducer[A, B] {