| name | description | license | metadata | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
product-readme |
Creates polished, product-quality README.md files for open source projects. Use when user asks to "write a README", "productize the README", "make the README look professional", "add screenshots to README", or wants to improve an existing README's presentation and structure. |
MIT |
|
Suno v5 has two input fields: a Style Prompt and a Lyrics/Structure Field. The style prompt defines the sound. The structure field defines the shape. Both matter, but they do different jobs. This document covers how to write both for any genre, any mood, any use case.
| LYRICS SECTION | |
| [Intro] | |
| (silence, then single deep sub pulse, heartbeat rhythm, darkness) | |
| . . . | |
| . . | |
| . | |
| [Build] | |
| (filtered noise rises, ghost kicks emerge, scattered hihats, faint acid murmur beneath) |
| name | description |
|---|---|
demoscene-webgl-demo |
Build audio-synchronized visual demos in a single HTML file using WebGL2/GLSL raymarching. Covers SDF-based 3D scenes, multi-pass rendering with bloom, phase-based timeline choreography, and real-time audio-reactive visuals via Web Audio API. Use when asked to create demoscene demos, WebGL raymarching, audio-reactive graphics, music visualizers, or choreographed visual experiences.
|
| import React, { useState, useRef, useCallback, useEffect } from 'react'; | |
| function calculateOtsuThreshold(imageData) { | |
| const histogram = new Array(256).fill(0); | |
| const data = imageData.data; | |
| let totalPixels = 0; | |
| for (let i = 0; i < data.length; i += 4) { | |
| if (data[i + 3] > 0) { | |
| const gray = Math.round(0.299 * data[i] + 0.587 * data[i + 1] + 0.114 * data[i + 2]); |
This skill covers building, testing, and deploying smart contracts for the Polkadot Asset Hub using PolkaVM (RISC-V based virtual machine).
- Runtime: PolkaVM (RISC-V based, not EVM)
- Network: Paseo Asset Hub TestNet
- RPC URL:
https://eth-rpc-testnet.polkadot.io/ - Language: Rust (
#![no_std])
| #!/bin/bash | |
| # Print the usage of the script if the SERVER_URL or ADMIN_TOKEN arguments are not provided | |
| if [ -z "$1" ] || [ -z "$2" ]; then | |
| echo "Usage: $0 SERVER_URL ADMIN_TOKEN" | |
| exit 1 | |
| fi | |
| # Get the SERVER_URL and ADMIN_TOKEN from the command line arguments | |
| SERVER_URL="$1" |
- Ensure all of your systems are kept up-to-date, especially with security updates.
- Ensure you can fully bootstrap a new system from scratch easily if needed.
- Upload archive chain backups frequently. Potentially make these available to the community down the road.
- Have database recovery methods in place.
- Use infrastructure as code. Never modify anything manually on your servers.
- Ensure you have a monitoring stack set up WITH alerts (alertmanager/grafana alerts/bots etc).
- Keep alerts actionable, otherwise they become noise.
- If a service crashes, make sure it automatically restarts in some way (via systemd or kubernetes).
| #!/bin/bash | |
| v4l2-ctl --set-ctrl=exposure_auto=1 | |
| v4l2-ctl --set-ctrl=white_balance_temperature_auto=0 | |
| v4l2-ctl --set-ctrl=exposure_absolute=900 | |
| #v4l2-ctl --set-ctrl=contrast=26 | |
| v4l2-ctl --set-ctrl=white_balance_temperature=4900 |
I bought a cheap EZVIZ S6 "action cam" and wanted to use it as a recorded and/or livestreaming PoV cam.
Ideally, it would be available as a video capture device without an sd card and also a native Linux video device.
So I did it. Here's how you can do it:
Make sure you have a working wifi card and an ethernet connection (because your wifi card will have to connect to the camera, so you need to use ethernet for internet).
Download motion