This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTP Hello World Server + non-blocking I/O test. | |
// | |
// This requires gotip (https://pkg.go.dev/golang.org/dl/gotip) for: | |
// | |
// - https://github.com/golang/go/commit/41893389 | |
// - https://github.com/golang/go/commit/c5c21845 | |
// - https://github.com/golang/go/commit/a17de43e | |
// | |
// We can use the wasirun command to run the WebAssembly module: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Layout, LayoutProps} from "@motion-canvas/2d/lib/components" | |
import {Rect, Vector2} from "@motion-canvas/core/lib/types"; | |
import {property} from "@motion-canvas/2d/lib/decorators" | |
import {all, sequence} from "@motion-canvas/core/lib/flow"; | |
import {Signal, SignalValue} from "@motion-canvas/core/lib/utils"; | |
import {drawRect} from "@motion-canvas/2d/lib/utils"; | |
import {easeOutCubic, linear} from "@motion-canvas/core/lib/tweening"; | |
import {decorate, threadable} from "@motion-canvas/core/lib/decorators" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Layout, LayoutProps} from "@motion-canvas/2d/lib/components" | |
import {Rect, Vector2} from "@motion-canvas/core/lib/types"; | |
import {initial, property} from "@motion-canvas/2d/lib/decorators" | |
import {all, delay, sequence, waitFor} from "@motion-canvas/core/lib/flow"; | |
import {Signal} from "@motion-canvas/core/lib/utils"; | |
import {drawRoundRect} from "@motion-canvas/2d/lib/utils"; | |
import {linear} from "@motion-canvas/core/lib/tweening"; | |
import {decorate, threadable} from "@motion-canvas/core/lib/decorators" | |
import {ThreadGenerator} from "@motion-canvas/core/lib/threading"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::ptr::NonNull; | |
use core::alloc::Layout; | |
pub trait Alloc { | |
/// allocates a block of memory. | |
/// | |
/// - if the call succeeds: | |
/// - the returned pointer refers to a live allocation. | |
/// - `layout` is the active layout of the returned memory block. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SPEEEEEED: bool = 1==1; | |
pub mod reg { | |
#[derive(Clone, Copy, Debug)] | |
#[repr(align(4))] | |
pub enum Instruction { | |
LoadInt { dst: u8, value: i16 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
println!("Hello World!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies | |
sudo apt install \ | |
build-essential gettext autoconf automake libproxy-dev \ | |
libxml2-dev libtool vpnc-scripts pkg-config zlib1g-dev \ | |
libp11-kit-dev libp11-dev libssl-dev | |
# Build | |
cd openconnect | |
./autogen.sh | |
./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"image" | |
"image/color" | |
"image/gif" | |
"math" | |
"os" | |
) |
See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.json
file in/etc/docker
:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}