Skip to content

Instantly share code, notes, and snippets.

State of Async WASI in Rust

Let me share what I've learned about implementing async WASIp2 components in Rust. My goal is to get the entire Tokio ecosystem working together seamlessly. This isn't a complete test of the ecosystem - some things might be simpler than we expect. Check out dicej's wasi-socket-tests repository for examples.

The first obstacle: you'll need a nightly version of Rust. Without it, you'll need major ecosystem changes to avoid the wasip2 module in the Rust standard library and use wasi crates for the necessary functionality.

Let's walk through the steps to get Reqwest working with Tokio.

Socket2

@nemotoo
nemotoo / .gitattributes
Last active March 15, 2025 22:24
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@ww9
ww9 / gist_markdown_examples.md
Last active March 15, 2025 22:23
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@RickStrahl
RickStrahl / UsingGistsForGeneralPurposeWebPagesWithMarkdown.md
Last active March 15, 2025 22:22
Using Gists for General Purpose Web Pages with Markdown
title abstract keywords categories weblogName postId
Using Gists for General Purpose Web Pages with Markdown
Most of you probably know and use Github Gists for sharing Code snippets. But did you know that Gists also support Markdown? Using Markdown makes it easy to create much richer code shareable code and even allows for an easy way to create self-contained Web content.
Gist,Markdown,Share,Social Media
Markdown
West Wind Web Log
502103

Using Gists for General Purpose Content with Markdown

@kmille
kmille / How to use a TPM on Linux.md
Last active March 15, 2025 22:21
How to use a TPM on Linux

How to use a TPM on Linux

Prerequisites

  • I use it on Arch Linux (systemd 257.3-1)
  • Install dependency: yay tpm2-tools (5.7-1)

Do I have a TPM 2.0?

kmille@linbox:~ journalctl --boot --dmesg --grep=tpm_tis
@SMUsamaShah
SMUsamaShah / list_of_p2p_file_sharing.md
Last active March 15, 2025 22:14
List of P2P file sharing tools

Browser Based

  1. Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
  2. ToffeeShare https://toffeeshare.com/
  3. FilePizza https://file.pizza/
  4. ShareDrop sharedrop.io https://github.com/szimek/sharedrop (SOLD, not recommended, use one of the forks)
    1. A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop (SOLD, not recommended, use one of the forks)
      1. A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
  5. Instant.io https://instant.io/
  6. FileTC https://file.tc/
@tkersey
tkersey / .2025.md
Last active March 15, 2025 22:12
For future reference but maybe not.

2025

March

  • What is structural identity?

    When a state change occurs in SwiftUI, the framework reconstructs the entire view hierarchy. This might sound inefficient at first, but it's actually remarkably optimized, because SwiftUI views are lightweight value types (structs) and most importantly, SwiftUI uses structural identity to detect which views remain unchanged and skips redrawing them, re-rendering only the views impacted by the state change.

    Structural identity is SwiftUI's way of recognizing whether a view before and after a state change is fundamentally the same view. When SwiftUI identifies views as structurally identical, it does not rerender them.

    A view's structural identity is determined by: > * Its type

@Minionguyjpro
Minionguyjpro / Activate_Windows_8_8.1_10_and_11_Pro_for_Free.md
Last active March 15, 2025 22:12
Activate Windows 8, 8.1, 10 and 11 Pro for Free

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

WATCH OUT FOR SUSPICIOUS LINKS IN THE COMMENTS BELOW!

I noticed that people or bots are trying to place suspicious links below that link to some sketchy source for what they say is a 'crack' or nothing at all. I'd recommend you to NOT click on any of those links! The scripts in this guide are open source and can be viewed as desired. I'm fine with posting coupons here! Do note that if you do so, please prove it! Link a review site along with the site and the coupon. Thanks, Minionguyjpro.

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that

@sundowndev
sundowndev / GoogleDorking.md
Last active March 15, 2025 22:08
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@benjaminjoaquin
benjaminjoaquin / gist:fbd40232dcd490eaeeea0403203921f8
Created September 4, 2024 01:00
Hola mundo en ensamblador x86_64 64 BITS (INTEL)
NASM es un ensamblador libre para la arquitectura x86, que nos permite ensamblar código en el lenguaje ensamblador.
Para instalar en el sistema linux primero descargamos los paquetes necesarios
sudo apt-get update
sudo apt-get -y install nasm
Colocamos nuestra contraseña y esperamos a que se instalen los paquetes.