Skip to content

Instantly share code, notes, and snippets.

View jonathantito's full-sized avatar

Jonathan Eduardo Tito Ontaneda jonathantito

  • Quito-Ecuador
View GitHub Profile
@jonathantito
jonathantito / FreebudsPro.md
Last active March 6, 2024 03:41 — forked from Aritzherrero4/FreebudsPro.md
Huawei Freebuds 4i on Ubuntu 20.04

Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

The default configuration of KDE Neon does not work with the headphones. I have managed to connect them doing some changes, and adjusting some configurations. This resumes that, to keep it if I need to reconfigure them in the future.

This configuration has worked for me using the following setup:

  • KDE Neon 5.20, kernel 5.4.0
  • Freebuds Pro version 1.9.0.256
@jonathantito
jonathantito / Makefile
Created March 23, 2022 18:35 — forked from Flushot/Makefile
Makefile for Python virtualenv and pip dependency manifest. Assumes virtual environment will be created in a 'venv' subdirectory.
.PHONY: init_venv deps freeze clean_venv
all: init_venv deps
PYTHONPATH=venv ; . venv/bin/activate
init_venv:
if [ ! -e "venv/bin/activate_this.py" ] ; then PYTHONPATH=venv ; virtualenv --clear venv ; fi
deps:
PYTHONPATH=venv ; . venv/bin/activate && venv/bin/pip install -U -r requirements.txt && if [ "$(ls requirements)" ] ; then venv/bin/pip install -U -r requirements/* ; fi
@jonathantito
jonathantito / gist:a0c7155646957c6fe65a6da73c65fdb1
Created March 23, 2022 11:43 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote