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)
| 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[]; }; |
| // some general helpers on how to sample a 1D grid. | |
| // returns the x/y coordinate of value inside of an 1D array/grid. | |
| // pass in the desired index. size refers to the "width" of the grid. | |
| // note that you may have to round/floor the value depending on your needs, ivec2 is only available in glsl. | |
| ivec2 get_coord(int index, int size){ | |
| return ivec2(index % size, index / size); | |
| } |
(IN PROGRESS)
Rollup can be configured to build the necessary parts to do SSR with JS frameworks. I've only tested w/ Solid but with some modifications, you can also adapt the following for things like Svelte and perhaps other frameworks.
This is actually based largely off of LiveSvelte but I wanted to use something more common these days like Rollup - this is however just