- Setup local network:
ifconfig eth0 192.168.1.2 netmask 255.255.255.0
- Ping your router forever
ping 192.168.1.1
Start ping your router and observe when the TTL change from 100 to 64.
| argument-hint | description |
|---|---|
<project-description> |
Generate a comprehensive spec-driven, test-driven PRD prompt for AI coding agents |
You are a meta-prompt engineer. Your task is to generate a comprehensive, production-ready PRD document that will serve as both a specification AND an executable prompt for an AI coding agent.
| sudo pacman -S ruby ruby-rdoc gcc make | |
| gem update --user-install | |
| gem install jekyll --user-install | |
| # finally add $HOME/.gem/ruby/2.7.0/bin to your PATH variable |
| // From https://github.com/google/filament | |
| float D_GGX(float linearRoughness, float NoH, const vec3 h) { | |
| // Walter et al. 2007, "Microfacet Models for Refraction through Rough Surfaces" | |
| // In mediump, there are two problems computing 1.0 - NoH^2 | |
| // 1) 1.0 - NoH^2 suffers floating point cancellation when NoH^2 is close to 1 (highlights) | |
| // 2) NoH doesn't have enough precision around 1.0 | |
| // Both problem can be fixed by computing 1-NoH^2 in highp and providing NoH in highp as well | |
| // However, we can do better using Lagrange's identity: |
Share HTML files, visualizations, and interactive demos publicly via Cloudflare Tunnel with live reload support.
The artifacts server lets Mom create HTML/JS/CSS files that you can instantly view in a browser, with WebSocket-based live reload for development. Perfect for dashboards, visualizations, prototypes, and interactive demos.
It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive
There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support
to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder
which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!
library(terra)
## crs changes where it is longitudinally, this is southern hemi range for UTM
r <- rast(ext(c(1e+05, 9e+05, 11e+05, 1e+07)), res = 1e5, crs = "EPSG:32755")
plot(project(densify(as.polygons(r), 5000), "EPSG:4326"))
maps::map(add= TRUE)
The following is a quick guide on getting basic status LED functionality working with TrueNAS running on the UGREEN DXP4800 Plus. Theoretically, it should work on all models (with some small revisions to the script), but I only have a DXP4800 Plus. :)
This guide is for cron job that runs a script to update the LEDs every couple minutes, but I'm sure the following can be modified for blinky LEDs as well.
| /* | |
| * Minimal C++ implementation of Functor, Monad and Maybe. | |
| * | |
| * Requires c++0x variadic templates and lambda expressions: | |
| * | |
| * g++ -std=c++0x main.cpp -o main | |
| * | |
| * fmap, monadic bind and return implementations for std::vector | |
| * and Maybe. | |
| * |