This script is based on these recommendations: https://wiki.archlinux.org/title/Bluetooth.
It works specifically for Logitech Pebble mouse on Linux Mint and it may or may not work for you.
It should be relatively easy to add other devices though.
#!/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/ |
import { createContext } from 'react'; | |
import { ServerStyleSheet } from 'styled-components'; | |
export default createContext<{ | |
styles: React.ReactNode[]; | |
renderMode: 'head' | 'body' | 'all'; | |
}>({ styles: [], renderMode: 'all' }); |
# /etc/plymouth/plymouthd.conf | |
[Daemon] | |
DeviceScale=1 |
#!/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} |
// Which iteration in the fastest? | |
// each number is in range [0 .. 255] | |
import { bench, run } from 'mitata'; | |
var arr1 = []; // array of { rand: number } objects | |
var arr2 = []; // array of numbers | |
var arr3 = []; // array of numbers, iterated with forEach | |
var arr4 = []; // array of numbers packed into 4-byte integers |
This script is based on these recommendations: https://wiki.archlinux.org/title/Bluetooth.
It works specifically for Logitech Pebble mouse on Linux Mint and it may or may not work for you.
It should be relatively easy to add other devices though.