Skip to content

Instantly share code, notes, and snippets.

@theduke
theduke / pipe.rs
Created February 9, 2023 18:37
Rust Pipe
use std::{
collections::VecDeque,
sync::{Arc, Mutex},
task::{Poll, Waker},
};
use tokio::io::AsyncRead;
use wasi_common::WasiFile;
/// A bi-directional meory pipe for bytes with a capacity.
@theduke
theduke / nixos-image-qcow2.nix
Created September 15, 2020 16:45
Nix VM qcow2
{ config, lib, pkgs, ... }:
{
imports =
[
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
];
system.build.qcow2 = import <nixpkgs/nixos/lib/make-disk-image.nix> {
pkgs = import <nixpkgs> { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
This file has been truncated, but you can view the full file.
warning: /home/theduke/dev/github.com/graphql-rust/juniper/integration_tests/juniper_tests/Cargo.toml: file found to be present in multiple build targets: /home/theduke/dev/github.com/graphql-rust/juniper/integration_tests/juniper_tests/src/lib.rs
Compiling juniper v0.11.1 (/home/theduke/dev/github.com/graphql-rust/juniper/juniper)
Finished dev [unoptimized + debuginfo] target(s) in 5.13s
Running /home/theduke/dev/github.com/graphql-rust/juniper/target/debug/deps/juniper-fa6953f755a46403
running 34 tests
test executor_tests::introspection::enums::named_introspection ... ok
test executor_tests::introspection::enums::enum_deprecation_no_values_introspection ... ok
test executor_tests::introspection::enums::enum_value_description_introspection ... ok
test executor_tests::introspection::enums::enum_description_introspection ... ok
gistup
gistup
We couldn’t find that file to show.
### Keybase proof
I hereby claim:
* I am theduke on github.
* I am the_duke (https://keybase.io/the_duke) on keybase.
* I have a public key whose fingerprint is 5E17 1594 414B 2E13 0B99 16C8 DAFF 71D4 8B49 3238
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am theduke on github.
  • I am the_duke (https://keybase.io/the_duke) on keybase.
  • I have a public key ASBYK_k0ympCFwmOqH83xIZ0nQBbRIrhNAN9fjfBjRnEugo

To claim this, I am signing this object:

defmodule Ihub.Mixfile do
use Mix.Project
def project do
[app: :ihub,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
  • web/apps/user/model.ex

  • web/apps/user/controller.ex

  • web/apps/user/view.ex

  • web/apps/somemodel/model.ex

  • ...

  • ...

  • ...