Skip to content

Instantly share code, notes, and snippets.

@alexkuz
alexkuz / bluesky_logo.svg
Created December 24, 2023 15:15
Bluesky logo (minimized)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexkuz
alexkuz / install-spd-piper.sh
Last active March 11, 2024 22:46
Install Piper TTS as speech dispatcher module
#!/bin/sh
set -e
BASE_PIPER_VOICES_URL=${BASE_PIPER_VOICES_URL:-https://huggingface.co/rhasspy/piper-voices/resolve/main}
INSTALL_DIR=${INSTALL_DIR:-~/.local/share/speech-dispatcher-piper}
CONFIG_DIR=${CONFIG_DIR:-~/.config/speech-dispatcher/modules}
CONFIG_PATH=$CONFIG_DIR/piper-generic.conf
PLATFORM=${PLATFORM:-$(uname -m)}
PIPER_BIN_GZ_URL=${PIPER_BIN_GZ_URL:-https://github.com/rhasspy/piper/releases/latest/download/piper_linux_$PLATFORM.tar.gz}
@alexkuz
alexkuz / plymouthd.conf
Last active April 29, 2023 17:16
Recipe: if your linux login screen looks shitty (low resolution), this might help
# /etc/plymouth/plymouthd.conf
[Daemon]
DeviceScale=1
@alexkuz
alexkuz / StylesContext.tsx
Last active May 11, 2022 23:21
Styled Components in Remix
import { createContext } from 'react';
import { ServerStyleSheet } from 'styled-components';
export default createContext<{
styles: React.ReactNode[];
renderMode: 'head' | 'body' | 'all';
}>({ styles: [], renderMode: 'all' });
#!/bin/sh
echo "=== Set local registry ==="
npm set registry http://localhost:4873/
trap : INT
sinopia
echo "=== Rollback to default registry ==="
npm set registry https://registry.npmjs.org/