Skip to content

Instantly share code, notes, and snippets.

View fkowal's full-sized avatar

Maciej Kowalski fkowal

  • Allegro Group
  • Poznań
View GitHub Profile
@fkowal
fkowal / .gitignore
Created August 24, 2012 08:13
NodeJs tail with websocket
.idea
node_modules
atlassian-ide-plugin.xml
@fkowal
fkowal / YUI-Jstd-Adapter.js
Created September 28, 2012 21:31
Yui JsTestDriver Adapter
var YUI_TESTS_TYPE = 'yui test case';
TestCase('Yui Adapter Tests', null, YUI_TESTS_TYPE);
jstestdriver.pluginRegistrar.register({
name: 'yui',
getTestRunsConfigurationFor: function (testCaseInfos, expressions, testRunsConfiguration) {
for (var i = 0; i < testCaseInfos.length; i++) {
if (testCaseInfos[i].getType() === YUI_TESTS_TYPE) {
@fkowal
fkowal / .gitignore
Last active November 9, 2015 06:54
Intellij typescript type inference bug
# Created by .ignore support plugin (hsz.mobi)
/node_modules/
phantomjsdriver.log
/.tscache/
*.js.map
*.js
typings/
.idea/
reference.js
@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] {
@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 / Converter.java
Created October 26, 2017 14:03
scala 2.12.4 access java inner abstract class protected method problem
package com.example;
public interface Converter {
abstract class FactoryFactory {
protected static String getString() { // the problem is with accessing this method
return "string";
}
}
}
@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

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