incus launch <image> <instance name>
- Note you may need to add
--config security.nesting=trueif using containers(possibly VMs too)
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 |
| // A helper to sample a section of a texture. useful for things like spritesheets. | |
| // texCoord - uvs of the surface you're rendering to | |
| // imageSize - the size of the patch you want to sample | |
| // fulLTextureSize - the full dimensions of the texture you're sampling from | |
| // imageCoord - the x/y value of the section to sample from. | |
| // Sourced from @Gabor on Disccord in the @creativecode server. | |
| vec2 sample_section( | |
| vec2 texCoord, | |
| vec2 imageSize, |
| // ... version, etc | |
| #extension GL_EXT_shader_explicit_arithmetic_types_int64 : require | |
| struct SceneDataTable { | |
| uint64_t vertices; | |
| }; | |
| layout(buffer_reference, scalar) buffer Vertices { vec4 v[]; }; |