Skip to content

Instantly share code, notes, and snippets.

View bjoernh's full-sized avatar

Bjoern bjoernh

  • Augsburg
  • 23:44 (UTC +01:00)
View GitHub Profile
@bjoernh
bjoernh / webos-has-shell.md
Last active December 7, 2025 17:02
Control Rooted LG WebOS TV Energy Saving via Home Assistant (SSH)

Control Rooted LG WebOS TV Energy Saving via Home Assistant (SSH)

This guide explains how to control the Energy Saving modes (Minimum, Medium, Maximum, Screen Off) of a rooted LG WebOS TV using Home Assistant shell_commands.

The Problem

You want to change energy saving settings programmatically (e.g., turn the screen off while keeping audio running) using luna-send commands over SSH.

  1. Manual Execution Works: Running the SSH command manually in the Home Assistant terminal works perfectly:

ssh root@192.168.1.X "luna-send -n 1 -f 'luna://com.webos.settingsservice/setSystemSettings' '{"category":"picture","settings":{"energySaving":"screen_off","energySavingModified":"true"}}'"

@bjoernh
bjoernh / gitlab_on_ubuntu_22_04.md
Created April 25, 2022 21:03
Install Gitlab CE on Ubuntu 22.04 Jammy Jellyfish

Workaround

Today (25.04.2022) Gitlab can't be installed with standard installer on Ubuntu 22.04 Jammy Jellyfish. In the furure this warkaround will not be needed any more...

Manual Installing

  1. Downlad Gitlab Debian package from https://packages.gitlab.com/gitlab/gitlab-ce
@bjoernh
bjoernh / pandas_on_m1.md
Last active April 25, 2022 21:10
Install Pandas on Apple Silicon M1

To install pandas ons Apple Silicon Macs simply install it with pip

$ pip install pandas
Collecting pandas
  Downloading pandas-1.4.2-cp310-cp310-macosx_11_0_arm64.whl (10.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 11.4 MB/s eta 0:00:00
Requirement already satisfied: python-dateutil>=2.8.1 in /opt/homebrew/lib/python3.10/site-packages (from pandas) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in /opt/homebrew/lib/python3.10/site-packages (from pandas) (2021.3)
Collecting numpy>=1.21.0
 Downloading numpy-1.22.3-cp310-cp310-macosx_11_0_arm64.whl (12.8 MB)