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
1. Install MELPA:
1.1 Add:
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("gnu" . "https://elpa.gnu.org/packages/")))
(package-initialize)
0. See:
https://www.tensorflow.org/install/source#tested_build_configurations
1. Install Miniconda from https://docs.anaconda.com/free/miniconda/
cd ~/Downloads
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -u -p ~/miniconda3
# rm -r Miniconda3-latest-Linux-x86_64.sh # (optional)
1. Install the Nvidia driver (see ).
2. Install CUDA:
sudo apt install linux-headers-$(uname -r) gcc make nvidia-cuda-dev nvidia-cuda-toolkit nvtop
3. Test:
nvcc -V
nvtop
# See: https://wiki.debian.org/NvidiaGraphicsDrivers
# (sudo) Modify /etc/apt/sources.list
sudo apt update
sudo apt install nvidia-driver firmware-misc-nonfree
sudo reboot
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / which_card.txt
Last active May 3, 2024 17:57
Which graphics card am I using?
glxinfo -B
Put:
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
into:
~/.config/i3/config
ffplay -pattern_type glob -i '*.png'
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / tap_to_click.md
Created April 27, 2024 06:49
tap to click debian

root@miranda:/etc/X11/xorg.conf.d# cat 40-libinput.conf Section "InputClass" Identifier "libinput touchpad catchall" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Driver "libinput" Option "Tapping" "on" EndSection

@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / install_jupyter_notebook_linux.txt
Last active December 21, 2023 16:19
Install Jupyter notebook in Linux (and OSX)
1. Create a Python environment. For example (in the command line interpreter):
python3 -m venv intercom_env
(obviously, you can re-use a old one, and you can skip this step).
2. Activate the environment. Run (tabulator key helps):
intercom_env/bin//activate
@vicente-gonzalez-ruiz
vicente-gonzalez-ruiz / jupyter_notebook_windows_10.txt
Last active December 21, 2023 16:11
Jupyter notebook windows 10
1. Download the last version of Python from (at this moment, version 3.12.0):
https://www.python.org/downloads/
2. Run the downloaded archive. Select the option "Add python.exe to PATH" and "Install Now". Select also "Disable path length limit".
3. Press <Win> + <R>, type "cmd", and press <Enter>.
4. Create a Python environment. For example (in the command line interpreter):