Skip to content

Instantly share code, notes, and snippets.

@boseabhishek
boseabhishek / ubu-on-mac.md
Created May 29, 2025 21:21 — forked from gsf/ubu-on-mac.md
Ubuntu VM on macOS with QEMU

Ubuntu VM on macOS with QEMU

For work I have an Intel Core i5 MacBook. With the Docker Desktop license changes I looked into minikube and Multipass but both failed when I got on our VPN with Cisco AnyConnect due to bridged networking in hyperkit (see links at bottom).

I realized I would be happy SSHing into a local Linux VM but passed on VirtualBox to avoid depending on legacy system extensions. I landed on libvirt for the VM, then realized I could remove libvirt from the equation to finally end up at this quick, simple setup for an Ubuntu VM on macOS with QEMU.

First, install QEMU (see https://wiki.qemu.org/Hosts/Mac for other o

@boseabhishek
boseabhishek / Panic vs os.Exit.md
Created January 26, 2024 12:56 — forked from Integralist/Panic vs os.Exit.md
[Golang: panic vs os.Exit] #go #golang #panic

panic signals "the programmer has made a fundamental mistake and execution cannot continue safely", whereas os.Exit signals "the programmer has decided that the process should terminate here" — different meanings. Also, important difference in behavior: panic will unwind the callstack, which means it will call any pending defer statements; os.Exit will just do a hard kill, so it won't.

@boseabhishek
boseabhishek / System Design.md
Created November 9, 2023 10:47 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@boseabhishek
boseabhishek / ImplicitSenderTest.scala
Created February 1, 2017 12:00 — forked from mguillermin/ImplicitSenderTest.scala
Sample showing basic usage of Akka TestKit and TestActorRef
package sample.akka.testkit
import akka.actor.ActorSystem
import akka.actor.Actor
import akka.testkit.{TestKit, TestActorRef}
import org.scalatest.matchers.MustMatchers
import org.scalatest.WordSpec
class ImplicitSenderTest extends TestKit(ActorSystem("testSystem"))
// Using the ImplicitSender trait will automatically set `testActor` as the sender