Skip to content

Instantly share code, notes, and snippets.

@hhromic
hhromic / tradfri.sh
Last active April 16, 2023 21:06
Show information about IKEA Tradfri devices firmware from the official IKEA servers in Linux
#!/usr/bin/env bash
# Show information about IKEA Tradfri devices firmware from the official IKEA servers
# script by github.com/hhromic
# optional filter
declare -r FILTER=$1
# URLs for firmware channels
declare -r -A CHANNEL_URLS=(
[CURRENT]=http://fw.ota.homesmart.ikea.net/feed/version_info.json
@hhromic
hhromic / gitmirror.sh
Created November 15, 2018 10:40
Mirror a git repository into another in Linux
#!/usr/bin/env bash
# Mirror a git repository into another
# script by github.com/hhromic
# origin git repository
declare -r ORIGIN="<<your origin git repository here>>"
# destination git repository (mirror)
declare -r MIRROR="<<your destination (mirror) git repository here>>"
@hhromic
hhromic / pitft28.md
Last active June 15, 2020 13:53
Adafruit PiTFT 2.8" Setup

Adafruit PiTFT 2.8" Setup

Last tested on: Raspbian Buster

Setup Display and HDMI

Add the following snippet to /boot/config.txt:

# Adafruit PiTFT 2.8"

dtoverlay=pitft28-resistive,speed=64000000,fps=30