Add after the relayd installation:
opkg install relayd odhcp6c
/etc/init.d/relayd enable
/etc/init.d/odhcp6c enable| import FFT from "fft.js"; | |
| function hzToMel(hz: number): number { | |
| return 2595 * Math.log10(1 + hz / 700); | |
| } | |
| function melToHz(mel: number): number { | |
| return 700 * (Math.pow(10, mel / 2595) - 1); | |
| } |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # chmod +x /usr/local/bin/yayc | |
| # Config | |
| CONTAINER_NAME="aur-builder" | |
| CONTAINER_DIR="/var/lib/machines/$CONTAINER_NAME" | |
| PKG_OUT="/var/cache/aur-builder" # here are .zst packages | |
| HOST_USER="$(id -un)" |
| const AppAiTest = () => { | |
| const generateAI = async (prompt) => { | |
| const res = await fetch("http://localhost:11434/api/generate", { | |
| method: "POST", | |
| headers: { | |
| "Content-Type": "application/json", | |
| }, | |
| body: JSON.stringify({ | |
| model: "gemma3:latest", | |
| prompt: prompt, |
| #!/usr/bin/env sh | |
| # Make this file executable: chmod +x .git/hooks/prepare-commit-msg | |
| echo "Running prepare-commit-msg hook" | |
| COMMIT_MSG_FILE="$1" | |
| # Get the staged diff | |
| DIFF=$(git diff --cached) | |
| # Generate a summary with ollama CLI and gemma3 model |
| ping -c 1 ipv4.google.com | grep -oP 'time=\K[0-9.]+ ms' |
| <device> | |
| <deviceProtocol>SIP</deviceProtocol> | |
| <sshUserId>casio</sshUserId> | |
| <sshPassword>casio</sshPassword> | |
| <devicePool> | |
| <dateTimeSetting> | |
| <dateTemplate>D.M.Y</dateTemplate> | |
| <timeZone>Central European Standard/Daylight Time</timeZone> | |
| <olsonTimeZone>Europe/Berlin</olsonTimeZone> | |
| <ntps> |
| import crypto from "node:crypto"; | |
| /** | |
| * Generates a compact key from a seed password | |
| * @param {string} seed - The seed password used to generate the key | |
| * @param {number} [length=16] - The desired length of the generated key | |
| * @returns {string} A compact key derived from the seed | |
| */ | |
| function generateCompactKey(seed, length = 16) { | |
| // Use SHA-256 to generate a deterministic but unique key |
| import React from 'react'; | |
| import { AudioLibrary } from './utils/Audios'; | |
| function ExampleComponent() { | |
| const handlePlaySiren = () => { | |
| AudioLibrary.siren.play(); | |
| }; | |
| const handlePlayAlarm = () => { | |
| AudioLibrary.alarm.play(); |
| mkdir transcoded; for i in *.mp4; do ffmpeg -i "$i" -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov "transcoded/${i%.*}.mov"; done |