Skip to content

Instantly share code, notes, and snippets.

View zsolt-donca's full-sized avatar
🥸

Zsolt Donca zsolt-donca

🥸
View GitHub Profile
anonymous
anonymous / Declarations.scala
Created February 14, 2016 12:13
can't existentially abstract over
import language.higherKinds
trait A {
type F[_[_]]
}
class B extends A{
override type F[X[_]] = X[Int]
}
val b = new B // This is valid
val a = new A { // But this is not

Kafka installation with systemd

0. Create kafka user

sudo adduser kafka
sudo adduser kafka sudo
su -l kafka

1. Download and Install kafka archive

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}