Skip to content

Instantly share code, notes, and snippets.

@ssalonen
ssalonen / horizons.txt
Created December 10, 2022 09:49
FMI Harmonie forecast stats (columns "ts", "validcount", "ts_first_valid", "ts_last_valid")
2022-12-05T07:07:06Z;373;1670223600;1670446800
2022-12-05T07:07:15Z;373;1670223600;1670446800
2022-12-05T07:07:30Z;373;1670223600;1670446800
2022-12-05T07:07:45Z;373;1670223600;1670446800
2022-12-05T08:08:00Z;367;1670227200;1670446800
2022-12-05T08:08:15Z;367;1670227200;1670446800
2022-12-05T08:08:30Z;367;1670227200;1670446800
2022-12-05T08:08:45Z;367;1670227200;1670446800
2022-12-05T09:09:00Z;361;1670230800;1670446800
`libcec6` from raspbian repos is missing the feature for built-in CEC module of raspberry pi
Here is how to build it yourself. Based on https://github.com/Pulse-Eight/libcec/blob/master/docs/README.raspberrypi.md
```
# ensure we remove libcec from repos
sudo apt-get remove libcec6 libcec-dev cec-utils
# install p8 platform including -dev package for easy cmake
sudo apt-get install -y libp8-platform-dev libp8-platform cmake libudev-dev libxrandr-dev python3-dev swig git
uid: ssalonen:device-online-monitor
label: Monitor device online status
description: Monitor device online status using combination of thing status and item state
configDescriptions:
- name: INPUT_ITEM
type: TEXT
context: item
label: Input item to monitor
required: true
description: Item to monitor for UNDEF changes
@ssalonen
ssalonen / AWS_SDK_java_v2_CHANGELOG_2.15.57_2.17.102_delta.md
Last active December 30, 2021 08:12
AWS Java SDK v2 CHANGELOG for versions 2.15.57...2.17.102
@ssalonen
ssalonen / snapclient_build.md
Created August 1, 2021 10:58
Build snapclient for fedora

Tested with fedora 34

Prerequisites

sudo dnf install @development-tools
sudo dnf install alsa-lib-devel avahi-devel libvorbis-devel opus-devel flac-devel soxr-devel libstdc++-static expat boost-devel
cd snapclient_src
Verifying my Blockstack ID is secured with the address 1NQ8gibzwrLDz584hEqGL4gUReqRVjvVBd https://explorer.blockstack.org/address/1NQ8gibzwrLDz584hEqGL4gUReqRVjvVBd
@ssalonen
ssalonen / letsencrypt_aws_route53.md
Created June 11, 2017 13:54
Renewing Letsencrypt automatically using Amazon Route 53 DNS service

Renewing Letsencrypt automatically using Amazon Route 53 DNS service

  1. Install lego, a letsencrypt client

  2. AWS Console: Create IAM policy

{
    "Version": "2012-10-17",
    "Statement": [
@ssalonen
ssalonen / OpenWrt SSH tunnel.md
Last active February 13, 2024 21:29
OpenWrt SSH tunnel

Short how-to for creating a reverse ssh tunnel to a remote server. Useful for breaking NATted connection for example.

  1. At OpenWrt:
opkg update
opkg install sshtunnel
  1. At remote server: create client ssh keys

fedora-27-nvidia-pascal

My quick guide for installing Fedora 27 on PC with Nvidia 1080 (pascal architecture). As the time of writing the nouveau drivers do not work (reliably) with these new nvidia cards so we have to rely on proprietary drivers.

Originally I had issues getting live cd installation to work with Fedora 24 (even though disabling graphics etc.) so I decided to go to Fedora 25 straight away (although not yet released at the time of writing)

  1. Install Fedora 25 using live cd. If necessary use the compatibility graphics mode to get the setup running
  2. Boot to the system, you can use the virtual terminal if the UI has issues (this was the case for me)
  3. Install negativo17 repos for nvidia driver dnf config-manager --add-repo=http://negativo17.org/repos/fedora-nvidia.repo
  4. Install rpmfusion free repos dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
Verifying that +ssalonen is my Bitcoin username. You can send me #bitcoin here: https://onename.io/ssalonen