Skip to content

Instantly share code, notes, and snippets.

View mesaque's full-sized avatar

Mesaque Silva mesaque

View GitHub Profile
@xZero707
xZero707 / opera-fix-ffmpeg.sh
Last active October 16, 2021 22:40
Opera browser on linux comes with broken ffmpeg due to legal reasons. This script will fix it using chromium-ffmpeg snap library.
#!/usr/bin/env bash
# DEPRECATED!
# See: https://forums.opera.com/topic/37539/solving-the-problem-of-the-opera-browser-with-video-playback-in-ubuntu-and-similar-distributions-linux-mint-kde-neon/
echo "Deprecated!"
echo "Please refer here https://github.com/xZero707/opera-fix-ffmpeg for an updated version."
@ptantiku
ptantiku / setup_ledger.sh
Last active October 21, 2023 08:35
Setup Ledger Nano S in Linux, with fixing problem on Fedora
#!/bin/bash
# Setup Ledger Nano S in Linux
# according to http://support.ledgerwallet.com/knowledge_base/topics/ledger-wallet-is-not-recognized-on-linux
# However, in Fedora, the "plugdev" group is not existed (obsolete).
# The solution is to replace `GROUP=\"plugdev\"` to `OWNER=\"<username>\"` in the script, for example:
# Original rule: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", GROUP="plugdev"
# Change to: SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0001", MODE="0660", OWNER="ptantiku"
wget -q -O - https://www.ledgerwallet.com/support/add_udev_rules.sh | sed -re 's/GROUP=\\"plugdev\\"/OWNER=\\"'$(whoami)'\\"/' | sudo bash