Skip to content

Instantly share code, notes, and snippets.

View jonathantito's full-sized avatar

Jonathan T. jonathantito

  • Madrid-España
View GitHub Profile
@jonathantito
jonathantito / PROBLEM TO USE FLAMESHOT IN UBUNTU 22.04 SCREENSHOT TOOL OVERLAPS FLAMESHOT
Created March 23, 2023 15:23
PROBLEM TO USE FLAMESHOT IN UBUNTU 22.04 SCREENSHOT TOOL OVERLAPS FLAMESHOT
Ubuntu 22.04
Solution I'm using (disable wayland and use xorg instead):
sudo nano /etc/gdm3/custom.conf
uncomment WaylandEnable=false
sudo systemctl restart gdm3 ####THIS WILL CLOSE ALL YOUR OPEN WINDOWS, BE CAREFUL
SOURCE: https://github.com/flameshot-org/flameshot/issues/2594#issuecomment-1408247795
@jonathantito
jonathantito / INSTALL_MINICONDA_IN_DOCKERFILE_VSCODE
Created March 22, 2023 14:27
INSTALL MINICONDA IN DOCKERFILE VSCODE
FROM mcr.microsoft.com/vscode/devcontainers/cpp:ubuntu-22.04
#####Install miniconda
# Use the above args during building https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG CONDA_VER
ARG OS_TYPE
# Install miniconda to /miniconda
RUN curl -LO "http://repo.continuum.io/miniconda/Miniconda3-${CONDA_VER}-Linux-${OS_TYPE}.sh"
RUN bash Miniconda3-${CONDA_VER}-Linux-${OS_TYPE}.sh -p /miniconda -b
RUN rm Miniconda3-${CONDA_VER}-Linux-${OS_TYPE}.sh
@jonathantito
jonathantito / INSTALL_NPM_IN_DOCKERFILE_VSCODE
Last active March 23, 2023 15:24
INSTALL NPM IN DOCKERFILE VSCODE
FROM mcr.microsoft.com/vscode/devcontainers/cpp:ubuntu-22.04
RUN mkdir /usr/local/nvm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 14.18.1
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
@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