sudo xbps-install void-repo-nonfree
sudo xbps-install broadcom-wl-dkms
# if that doesn't work, try this other driver after running:
# sudo xbps-remove broadcom-wl-dkms
sudo xbps-install git
mkdir src
cd src
git clone https://github.com/void-linux/void-packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Switch to Debian Trixie/testing | |
xdg-user-dirs-update | |
sudo apt update | |
sudo apt install nala | |
sudo nala install firmware-b43-installer | |
sudo nala install sway waybar swaylock swayidle swaybg | |
sudo nala install eza | |
# replace ls command in .bashrc file with line below | |
# alias ls='eza -al --long --header --color=always --group-directories-first' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vincibean.cats.extra | |
import cats.implicits._ | |
object CharCount extends App { | |
println(charCount("aaabbc")) // b2a3c1 | |
def charCount(s: String): String = s.map(c => Map(c -> 1)) | |
.reduce(_ combine _) |
Follow the installation instruction here and here; if you wish to encrypt your disk (you should!) follow the installation instructions here.
Note |
---|
If UEFI is enabled and you have issues with the configuration of the bootloader, you'll need to create a EFI boot partition and then follow the steps relevant for UEFI here and here (an example entry is already in Arch Linux, under /usr/share/systemd/bootctl/arch.conf ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Sql { | |
implicit class SqlInterpolator(val sc: StringContext) extends AnyVal { | |
def sql(args: Any*): Sql = Sql(sc.parts | |
.map(StringContext.treatEscapes) | |
.zipAll(args, "", "") | |
.map { case (x, y) => x ++ y.toString } | |
.mkString | |
) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vincibean.twirl.example | |
case class Customer(name: String, surname: String) | |
case class Order(number: Long, product: String) | |
object Twirl extends App { | |
println(txt.json(Customer("John", "Doe"), List(Order(1, "Shaver"), Order(2, "Shaving Foam"), Order(3, "Aftershave")))) | |
} |