Skip to content

Instantly share code, notes, and snippets.

@frazei
frazei / activation.md
Last active February 23, 2024 11:22
Bonjour mDNS Apple TV Airplay

Reference: https://discussions.apple.com/thread/253467325?sortBy=best

Apple TV 3 activation failed

After a million tries.... the following process worked! This is using all legitimate tools, so no drama!

To fix failed activation, and therefore restore AirPlay capability, on a Mac, install Apple Configurator 2 from the app store.

Plug in your Apple TV 3rd Gen to power and to a Mac using a micro USB cable from the Apple TV to the Mac.

@frazei
frazei / timemachine.md
Last active February 8, 2024 10:44
Debug Apple timemachine in bash #apple #osx

How to debug Apple Time Machine from console/bash

Stream the log, live (like tail):

$ log stream --style syslog  --predicate 'senderImagePath contains[cd] "TimeMachine"' --info

Don't stream, but show the log end exit:

$ log show --style syslog  --predicate 'senderImagePath contains[cd] "TimeMachine"' --info
@frazei
frazei / ol8_portainer.md
Created December 14, 2023 11:23
Oracle Linux 8 Portainer client

Install Docker

# dnf install -y dnf-utils zip unzip
# dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
# dnf remove -y runc
# dnf install -y docker-ce --nobest

Enable and start the Docker service.

# systemctl enable docker.service
@frazei
frazei / arpae_homeassistant.md
Last active June 11, 2024 10:59
ARPAE Air Quality in Home Assistant

Integrare i dati di ARPAE in Home Assistant tramite REST API

L'Agenzia regionale per la prevenzione, l'ambiente e l'energia dell´Emilia-Romagna (Arpae) espone tramite API malamente documentate tutta una serie di dati riguardanti le rilevazioni che vengono fatte in regione da varie centraline sparse sul territorio.

Qui scrivo tutti i modi che ho individuato per importare i dati dentro a Home Assistant sotto forma di sensori che possono poi essere utilizzati per visualizzare grafici e affini sulla dashboard.

L'end point a cui inviare le richieste è sempre https://apps.arpae.it/REST ma espone diversi tipi di estrazioni che non sono tutte documentate, o almeno io non ho trovato un gran che. La cosa migliore è copiare da alcune pagine di Arpae le chiamate e poi andare a sentimento...

Riferimenti utili

  • Dal sito di Home Assistant la pagina sui RESTful Sensor
  • Dal sito di ARPAE la pagina dove descrive l'API per ottenere la [Qualità dell’aria: sit
@frazei
frazei / hacking_wp600a.md
Last active February 8, 2024 10:47
Hacking Wildix WP600A

Hacking Wildix wp600a business phone

Intro

In teoria è l'equivalente di yealink t48u (oppure g?)

  • android 4.2.2
  • kernel 3.0.36+
  • build 47.145.7.450
  • Mali400
  • RockChip rk3066
@frazei
frazei / osmc_cifs_ntlm.md
Last active September 19, 2023 08:50
Supporto NTLM su OSMC

Introduzione

La cara vecchia AirPort Time Capsule 802.11n (4a generazione) è ancora oggi (2024) un buon dispositivo e sarebbe un peccato pensionarla visto che nella mia rete svolge da tanti anni il ruolo di disco di rete su cui tengo memorizzati tutti i film e le serie tv.

Questo disco è poi montato direttamente in OSMC (che gira su un raspberry pi 3+) tramite fstab in modo che il sistema lo veda direttamente senza dover utilizzare il supporto SMB integrato in Kodi. Il mount avviene tramite questa linea in /etc/fstab:

//192.168.5.201/Data /home/osmc/Volumes/timecapsule cifs x-systemd.automount,noauto,rw,iocharset=utf8,username=****,password=****,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770,sec=ntlm,vers=1.0 0 0
@frazei
frazei / oracle_ubuntu.md
Last active February 7, 2024 17:09
Ubuntu desktop on Oracle Cloud Free Tier
@frazei
frazei / haps1.md
Last active July 26, 2022 09:43
API Sony HAP-S1

API Sony HAP-S1

Sony HAP-S1 is a High-Resolution Audio HDD player.

There is also a variant called HAP-Z1ES.

Web Browser App

The main page is accessible via http://IPADDR:60100/HAP.html and redirects to the version 2.0 of the application:

http://IPADDR:60100/HAP_app.html
@frazei
frazei / musicaliquida.md
Last active September 13, 2021 14:32
RaspberryPi & musica liquida