Skip to content

Instantly share code, notes, and snippets.

View dreamcat4's full-sized avatar
😋

Dreamcat4 dreamcat4

😋
View GitHub Profile
tvheadend dbus-1/ root~# cat /usr/local/etc/dbus-1/system.d/avahi-dbus.conf
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only root or user avahi can own the Avahi service -->
<policy user="avahi">
<allow own="org.freedesktop.Avahi"/>
</policy>
@dreamcat4
dreamcat4 / tvheadend.md
Last active October 6, 2023 09:20
How to Install TvHeadend on FreeBSD, FreeNAS / NAS4Free / pfSense, with Finch / Qjail 3.5 - http://dreamcat4.github.io/finch/

NOTICE - TvHeadend Internal Grabbers don't work on FreeBSD yet. There is some work in progress updating the FreeBSD port to enable that.

TvHeadend How-To

How to install TvHeadend. Most of these commands can just be copy-pasted.

Install drivers for your TV Tuner device

user=root
# disable dns server
port=0
# enable tftp server
enable-tftp
@dreamcat4
dreamcat4 / webcamd.md
Last active July 15, 2023 13:34
How to Install Webcamd on FreeBSD, FreeNAS / NAS4Free / pfSense, with Finch v1.27 - http://dreamcat4.github.io/finch/

Webcamd How-To

First of all, visit the FreeBSD WebcamCompat page to check that your TV Tuner device is supported. Most popular webcams are compatible. Then follow the instructions on this page to install the webcamd program.

In some fewer cases, you may own a compatible PCI card, which is recognised by the system as a native PCI device. Those devices need their own special kernel module, and do not use webcamd at all. For example the Hauppauge WinTV HVR-4000. Which require the cx88 kernel modules to be loaded. You will instead need to follow the steps here for installing the cx88 device driver.

Most of these commands can just be copy-pasted. The webcamd program must be installed directly in Finch's chroot. This is because webcamd needs to create new device nodes e.g. /dev/dvb, etc. in '/dev/'. Such special files require 'mknod' cmd. That can't be created in a jail.

@dreamcat4
dreamcat4 / acer-x34p.edid.txt
Created May 30, 2023 17:03
edid monitor tools = cvt, wxedid, ddcutil interrogate
Timing characteristics
Horizontal scan range.... 73-180kHz
Vertical scan range...... 30-120Hz
Video bandwidth.......... 640MHz
CVT standard............. Not supported
GTF standard............. Not supported
Additional descriptors... None
Preferred timing......... Yes
Native/preferred timing.. 3440x1440p at 60Hz
@dreamcat4
dreamcat4 / wayland-global-hotkey-instructions.md
Last active May 2, 2023 09:06
wayland gnome - how to setup a global hotkey, to trigger something useful inside of an application, etc.

Global Hotkeys in Wayland (Gnome) - 2021

1st task - Configure just 1 global hotkey

  • Figure out how to set up 1 global hotkey in your chosen desktop environment,
  • Assign to it some simple dummy target ommand. Which you know always works. And is easily verified

That will ensure you can check and test that a specific hotkey assignment is actually definately working independantly of the specific desired action. This is important because the desktop environment can also occupy pre-configured 'system keys' and if they are already being mapped to something other default system wide actions then (likely) will silently be ignored.

So being independant here from the subsequent specific desired target actions in some special app or whatever. Which themselves definately might have other own different issues or not behave correctly. And especially when being invoked from the compositor via this method (rather than a logged in user terminal etc.)

@dreamcat4
dreamcat4 / how to install entware on ARM.md
Last active April 14, 2023 05:07
Install entware on ARM based router eg tomato / ddwrt / asus-merlin cfw
@dreamcat4
dreamcat4 / cpu-speed
Created June 23, 2014 00:41
Get and set the max CPU frequency on FreeBSD / FreeNAS / NAS4Free
#!/bin/sh
#
# cpu-speed:
# Requirements - be the root user, FreeBSD 9.2 or higher.
#
# Get or set the CPU frequency. This command with no arguments will
# print the current CPU frequency. CPU may be idling at it's lowest speed.
#
# This command takes 1 optional argument - new MAX cpu freq (in Mhz).
# expressed as an integer number. e.g. "cpu 800" - set max freq 800 Mhz.
@dreamcat4
dreamcat4 / macmini 1,1 to 2,1 EFI firmware update
Last active February 25, 2023 13:00
macmini 1,1 to 2,1 EFI firmware update
Guide & Discussion Thread:
http://forum.netkas.org/index.php?topic=874.0
http://forum.netkas.org/index.php?action=printpage;topic=874.0
For the best guide, use search keyword: chmod. Scrolls down to -->
Post by: Shinso on September 18, 2012, 07:28:35 PM
Post by: Shinso on September 18, 2012, 07:30:19 PM
* First: upgrade cpu to Core2Duo
@dreamcat4
dreamcat4 / solder-wicks-ranked.md
Last active October 23, 2022 19:14
Everything I know about solder wick

solder wick ranking table

inspection criteria

by visual inspection only, ranked overall by these factors:

  • individual copper strands diameter (thin=best, low=almost best)
  • tightness of the copper weave (max=best, good=almost best)
  • if the braid is a flattened tube (double sided), or just a 1 sided strip