Skip to content

Instantly share code, notes, and snippets.

Ok(evt) => match evt {
slack::Event::Message(msg) => match msg {
slack::Message::Standard{ text, .. } => match text {
Some(x) => self.process_message(x),
_ => {},
},
_ => {},
},
_ => {}
},

mlgrm's run ubuntu in crostini

this gist is out of date and remains here only for reference

This is just a modification of this reddit to minimize copying and pasting, make it less interactive, and to allow creation of a username of your choice instead of the default google email address.

# #How to run Ubuntu with full Chrome OS Integration
# Here's a post that shows in detail how to make the default penguin container run Ubuntu instead of Debian:
# [Introduction to Crostini - Part 3: Using Ubuntu by default](https://linuxiumcomau.blogspot.com/2018/08/introduction-to-crostini-part-3-using.html)
@cilquirm
cilquirm / Main.flix
Last active August 19, 2025 16:29
Simple Echo Server
use Abort.abort
import java.io.InputStreamReader
import java.io.PrintWriter
import java.io.BufferedReader
import java.net.Socket
import java.net.ServerSocket
// The main entry point.
def main(): Unit \ {Net, IO, Abort} =
let port = 8080;
let serverSocket = new ServerSocket(port);