Skip to content

Instantly share code, notes, and snippets.

View vicente-gonzalez-ruiz's full-sized avatar

Vicente González Ruiz vicente-gonzalez-ruiz

View GitHub Profile

Tuning i3

(At least in Manjaro Linux) By default, after install i3, the config file is placed at:

~/.i3/config

To add some new entry to i3status (whose output is usually placed at the bottom-right of the screen):

# 1. Download a kernel:
wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.1.tar.xz
tar xvf linux-6.1.tar.xz
# 2. Configure the kernel (supposing a Manjaro kernel):
cd linux-6.1
make localmodconfig
1. You must be using the Nvidia kernel (`nvidia-smi` should show info). This basically implies that the kernel recognizes the GPU.
2. Follow the instructions provided at https://www.tensorflow.org/install/pip:
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source ~/.bashrc
conda create --name tf python=3.9
conda activate tf
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / raspiaudio_ultrapp_manjaro.txt
Last active July 13, 2021 07:55
Raspiaudio Ultra++ on Majnaro
#!/bin/bash
set -x
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root (use sudo)" 1>&2
exit 1
fi
is_Raspberry=$(cat /proc/device-tree/model | awk '{print $1}')
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / provides.sh
Created June 15, 2021 11:24
Which package provides the file ...
pkgfile $1
sudo pacman -S cups ghostscript gsfonts libcups
sudo systemctl enable cups.service
sudo systemctl start cups.service
sudo grep -a -C 2000 -F 'C^{-1}$ = Inverse Color Transform' /dev/sda4 > /media/sdc1/raw
sudo pacman-mirrors --country all --api --protocols all --set-branch stable && sudo pacman -Syyu
1. Download windows from
https://www.microsoft.com/es-es/software-download/windows10ISO
2. Install woeusb with
sudo pacman -S woeuse
3. Create a bootable USB with the windows image.