incus launch <image> <instance name>
- Note you may need to add
--config security.nesting=trueif using containers(possibly VMs too)
| # Fetches the specified version of Odin | |
| odin-fetch = pkgs.stdenv.mkDerivation { | |
| pname = "odin-source"; | |
| version = odin-version; # references a variable declared earlier in the file | |
| src = pkgs.fetchurl { | |
| url="https://github.com/odin-lang/Odin/releases/download/dev-2026-05/odin-linux-amd64-${odin-version}.tar.gz"; |
| { | |
| description = "A very basic build flake"; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs"; | |
| unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | |
| }; | |
| # note - helpful to use devenv + nix-devenv so shell modifications stay in place and you don't need to type "nix develop" every time. |
For reference this was tested on a ASRock A620i AM5 board which should come with a MediaTek MT7922 Wi-Fi 6E wifi card.
Problem: If you're running into slower than expected speeds it just might be due to the 6ghz band being just flat out disabled in the initial install of Linux! Not sure about other distros but at least in CachyOS it is.
Solution:
/etc/modprobe.d/cfg80211.conf with: options cfg80211 ieee80211_regdom=US(I'm in the US, look up the region code for your country)wireless-regdb (possibly also crda)iw reg get, it should show country . You may need to installiw first if it's not already installed with your distro.| local wezterm = require 'wezterm' | |
| local act = wezterm.action | |
| local config = wezterm.config_builder() | |
| config.color_scheme = 'Aci (Gogh)' | |
| config.enable_scroll_bar = true | |
| config.initial_cols = 120 | |
| config.initial_rows = 30 |
Workaround for the following error
Error: failed to authenticate SSH session: Unable to extract public key from private key file: Wron
g passphrase or invalid/unrecognized private key file format; class=Ssh (23)
| ffmpeg -i <input> -c:v dnxhd -profile:v dnxhr_hq -c:a pcm_s16le <output>.mov |
All in all, despite what you may have heard, installing Arch isn't actually that bad as long as you have a basic understanding of the terminal, there's just a lot of things to do to get a basic setup working which you should "hopefully" have at the end of thi
| use std::sync::{Arc, Mutex}; | |
| use std::thread; | |
| use std::time::Duration; | |
| #[derive(Clone)] | |
| struct Cube { | |
| i: Arc<Mutex<i32>>, | |
| } | |
| impl Cube { |
| function scaleImage(img, ctx, targetWidth, targetHeight) { | |
| const widthRatio = targetWidth / img.width; | |
| const heightRatio = targetHeight / img.height; | |
| const scale = Math.max(widthRatio, heightRatio); | |
| let finalWidth = img.width * scale; | |
| let finalHeight = img.height * scale; | |
| // calcualte overlap, if any, between final width and contianer with |