Copyparty Docker quick setup
Create directory and enter it. /home/USER/Copyparty Create docker-compose.yml, change /cfg and /w (share) path in volumes section.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
services: copyparty: image: copyparty/ac:latest container_name: copyparty user: "1000:1000" ports: - 3923:3923 volumes: - /home/USER/Copyparty/data:/cfg:z - /mnt/TOP_DIR_TO_SHARE/:/w:z environment: LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE # enable mimalloc by replacing "NOPE" with "2" for a nice speed-boost (will use twice as much ram) PYTHONUNBUFFERED: 1 # ensures log-messages are not delayed (but can reduce speed a tiny bit) stop_grace_period: 15s # thumbnailer is allowed to continue finishing up for 10s after the shutdown signal healthcheck: # hide it from logs with "/._" so it matches the default --lf-url filter. test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset=/._"] interval: 1m timeout: 2s retries: 5 start_period: 15s |
Create data directory /home/USER/Copyparty/data In data directory, create some_config.conf, change [accounts] section
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# not actually YAML but lets pretend: # -*- mode: yaml -*- # vim: ft=yaml: # append some arguments to the commandline; # accepts anything listed in --help (leading dashes are optional) # and inline comments are OK if there is 2 spaces before the '#' [global] # p: 8086, 3939 # listen on ports 8086 and 3939 e2dsa # enable file indexing and filesystem scanning e2ts # and enable multimedia indexing # z, qr # and zeroconf and qrcode (you can comma-separate arguments) # create users: [accounts] USERNAME: 123 # username: password # create volumes: [/] # create a volume at "/" (the webroot), which will . # share the contents of "." (the current directory) accs: r: * # everyone gets read-access, but rw: USERNAME # the user "USERNAME" gets read-write |
Update/run script update.sh
1 2 3 4 5 6 7 8 9 10 11 |
echo Stopping Copyparty... sudo docker stop copyparty echo Pulling new images... sudo docker pull copyparty/ac:latest echo Prunning unused images... sudo docker image prune -f echo Prunning unused containers... sudo docker container prune -f echo Running Copyparty... cd /home/USER/Copyparty sudo docker compose up -d |
Run the script and check if the site works by navigating to: http://IP_OR_DOMAIN:3923
HomeAssistant Voice Assist ecosystem docker-compose.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
networks: network-voiceAssist: driver: bridge services: ## whisper whisper-voiceAssist: container_name: whisper-voiceAssist image: rhasspy/wyoming-whisper command: --model tiny-int8 --language en volumes: - /home/czupak/VoiceAssist/Whisper:/data environment: - TZ=Europe/Warsaw restart: unless-stopped networks: - network-voiceAssist ports: - 10300:10300 ### piper piper-voiceAssist: container_name: piper-voiceAssist image: rhasspy/wyoming-piper command: --voice en_US-amy-medium volumes: - /home/czupak/VoiceAssist/Piper:/data environment: - TZ=Europe/Warsaw restart: unless-stopped ports: - 10200:10200 networks: - network-voiceAssist ### OpenWakeWord openWakeWord-voiceAssist: container_name: openWakeWord-voiceAssist image: rhasspy/wyoming-openwakeword command: --preload-model 'ok_nabu' volumes: - /home/czupak/VoiceAssist/OpenWakeWord:/data environment: - TZ=Europe/Warsaw restart: unless-stopped ports: - 10400:10400 networks: - network-voiceAssist expose: - 10400 ### Satellite my-satellite: image: sker65/wyoming-satellite container_name: my-satellite ports: - 10700:10700 networks: - network-voiceAssist devices: - /dev/snd:/dev/snd group_add: - audio restart: unless-stopped command: > --vad --vad-trigger-level 1 --vad-threshold 0.6 --debug --uri 'tcp://0.0.0.0:10700' --wake-word-name 'ok_nabu' --mic-command "arecord -D plughw:CARD=MS -r 16000 -c 1 -f S16_LE -t raw" --snd-command "aplay -D plughw:CARD=MS -r 22050 -c 1 -f S16_LE -t raw" |
Adobe Alternatives
Free, open source or single purchase Adobe alternatives.
How to Turn Off the “Sign in with Google” Prompt on Websites
Uncheck the checkbox following this link: https://myaccount.google.com/connections/settings
How to test an SD Card
H2testw Old but reliable. Fills in the disk with data and the verifies it. https://www.heise.de/download/product/h2testw-50539 Fake Flash Test Apart from full scan, has an option for a quick test, which chooses random sectors to write to and verify. https://www.majorgeeks.com/files/details/fakeflashtest.html ChipGenius Able to extract information from USB devices. It can cross reference chipset information with its […]
BlueTooth not working on HomeAssistant on Raspbian (RPI)
Problem: BlueTooth devices are not showing up in HomeAssistant on Raspbian (RPI) Solution: Run the commandline
1 |
sudo rfkill unblock <span class="hljs-attribute">all</span> |
Source: https://community.home-assistant.io/t/bluetooth-integration-doesnt-work/448873/7
Specs
Reolink RLC-1212A Mi Temperature and Humidity Monitor 2
Xiaomi Temperature & Humidity Sensor integration with HomeAssistant
Flashing tool: https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html More information: https://community.home-assistant.io/t/home-asssistant-xiaomi-mijia-lywsd03mmc-temperature-and-humidity-sensor-tutorial-september-2022/456403 https://github.com/atc1441/ATC_MiThermometer
CertBot
Create Cert sudo certbot –nginx -d my.domain.com Renew with dry run sudo certbot renew –dry-run
nginx CheatSheet
Enable Site Reload sudo systemctl reload nginx