Skip to content

Instantly share code, notes, and snippets.

View konstantin-morenko's full-sized avatar

Konstantin Morenko konstantin-morenko

View GitHub Profile
@gustavorv86
gustavorv86 / README.md
Last active November 25, 2023 21:13
Reading an infrared (IR) receiver with Python on GNU/Linux

Reading an infrared (IR) receiver with Python on GNU/Linux

Many development boards incorporate an infrared receiver, such as Orange PI, Bananapi, Libre computer, Pine64, etc.

This manual explains how to configure the infrared receiver in Linux and shows an example of how to read the infrared codes emitted by a remote control.

Configuration

Show all input devices:

@meysampg
meysampg / file_chooser_firefox_snap.sh
Created June 7, 2022 06:34
Solve issue of opening file chooser on firefox (fucking SNAP version)
meysam@smartech:~
$ firefox
Gtk-Message: 10:51:36.982: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:51:36.983: Failed to load module "canberra-gtk-module"
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource://gre/modules/UpdateListener.jsm
(firefox:2169453): Gtk-WARNING **: 10:51:49.473: Can't open portal file chooser: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.FileChooser” on object at path /org/freedesktop/portal/desktop
@debloper
debloper / xrandr.sh
Last active February 10, 2024 02:30
Add system unrecognized but monitor supported resolution in X
#!/bin/bash
# Copyright (c) 2021 Soumya Deb <debloper@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: