lsofer
yew
lsofer | yew | |
---|---|---|
2 | 201 | |
10 | 29,948 | |
- | 0.5% | |
10.0 | 8.3 | |
over 6 years ago | 1 day ago | |
Shell | MDX | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lsofer
-
Not knowing the /proc file system
/proc is amazing once you get the hang of it and get a good understanding of what's all in there. Especially if you're doing low level performance tuning.
It's particularly helpful in larger infrastructures where tool the variability means differences in available tooling, and their output plus cli options. I'm sure /proc iteration has its own issues of variability across large infrastructres, but I haven't seen it. It's a fairly consistent API. Or at least it was, since I haven't touched a large infrastructure in some time.
When I got tired of `lsof` not being installed on hosts (or when its `-i` param isn't available) I ended up writing a script [1] that just iterates through /proc over ssh and grabs all inet sockets, environment variables, command line, etc from a set of hosts. Results in a null-delimited output that can then be fed into something like grafana to create network maps. Biggest problem with it is the use of pipes means all cores go to 100% for the few seconds it takes to run.
[1] https://github.com/red-bin/lsofer
-
Bash functions are better than I thought
Oh yeah, bash functions are great and absolutely abusable. Sometimes you need some grand hacks to get it to work well, but when it works well, it can do some magic. You can even export functions over ssh!
I wrote this a few years back which ran on bunches of hosts and fed into a infrastructure network mapper based on each hosts' open network sockets to other known hosts. It wasn't really feasible to install a set of tools on random hosts.. but I still had root ssh access across the board. So I needed something tool agnostic, short, auditable, and effectively guaranteed to work:
https://github.com/red-bin/lsofer/blob/master/lsofer.sh
yew
-
Surprisingly Powerful – Serverless WASM with Rust Article 1
Yew is a framework for creating reliable and efficient web applications. Yew
- Container2wasm: Convert Containers to WASM Blobs
-
Show HN: Game of Life with grid editor in browser with Rust and WASM
I coded up a game of life implementation in rust and web assembly using https://yew.rs/ as an effort to sharpen my rust skills and it resulted as a fun toy. You can find the source here: https://gitlab.com/reedrichards/wvdom Enjoy!
- The best WebAssembly runtime may be no runtime at all
-
Recreating the Apple Calculator in Rust using Tauri, Yew and Tailwind
UI template: Yew - (https://yew.rs/)
- Yew: Rust / WASM framework for creating reliable and efficient web applications
-
Ask HN: If you were to build a web app today what tech stack would you choose?
I'm surprised nobody said they'd use [Yew](https://yew.rs/), especially given the premise of this being for a passion project.
-
Semantics of method which takes Rc<Self> and returns Rc<Self>?
This example shows updating an existing state: https://github.com/yewstack/yew/blob/04909dd942eb64285652d96a2621bdf7be3fa912/examples/timer_functional/src/main.rs
-
Speeding up the JavaScript ecosystem – Polyfills gone rogue
1. Not related to npm, but related to the web.
2. True, but compilers are generally better than transpilers.
3. Have you seen https://yew.rs/ ?
-
Is it possible to create Android apps using Rust?
You could use Yew to write web apps, which can be opened on Android phones.
What are some alternatives?
hasura-ci-cd-action
Seed - A Rust framework for creating web apps
bash-core - Core functions for any Bash program.
dioxus - Fullstack GUI library for web, desktop, mobile, and more.
basalt - The rock-solid Bash package manager.
sycamore - A library for creating reactive web apps in Rust and WebAssembly
PPSS - Parallel Processing Shell Script
leptos - Build fast web applications with Rust.
nsd - NGS Scripts Dumpster
Rocket - A web framework for Rust.
ngs - Next Generation Shell (NGS)
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.