Skip to content

Instantly share code, notes, and snippets.

View nickovchinnikov's full-sized avatar

Nick Ovchinnikov nickovchinnikov

View GitHub Profile
@nickovchinnikov
nickovchinnikov / f35-nvidia-cuda.md
Created June 27, 2022 19:55 — forked from p-karanthaker/f35-nvidia-cuda.md
Fedora 35 NVIDIA/CUDA Installation for TensorFlow

Fedora 35 NVIDIA/CUDA Installation for TensorFlow

These are the steps I took for the installation of the NVIDIA drivers and CUDA toolkit for use with TensorFlow on Fedora 35. I have documented them since I had a lot of difficulty getting it to work and couldn't boot to a graphical desktop a few times. These steps worked for me, hopefully they do for others.

Assumptions

I am running on a 64 bit system and used KDE Plasma with X11 so these instructions may differ for people using GNOME, Wayland and any other combinations.

Pre-requisites

  • If you have installed any NVIDIA drivers other than the akmod-nvidia drivers from the @rpmfusion-nonfree repo, remove them completely.
  • Remove any other NVIDIA/CUDA installations. Find them with sudo dnf list installed | egrep '(nvidia|cuda)'
  • If the nvidia-driver module is enabled, disable it - sudo dnf module disable nvidia-driver - this caused me issues when trying to install the akmod drivers
@nickovchinnikov
nickovchinnikov / MySQL_practice_problems.md
Created August 16, 2022 15:48 — forked from wgopar/MySQL_practice_problems.md
MySQL Employees Sample Database exercise problems + solutions.

MySQL practice problems using the Employees Sample Database along with my solutions. See here for database installation details.

Problem 1

Find the number of Male (M) and Female (F) employees in the database and order the counts in descending order.

SELECT gender, COUNT(*) AS total_count
FROM employees 
GROUP BY gender
@nickovchinnikov
nickovchinnikov / imagenet1000_clsidx_to_labels.txt
Created March 9, 2023 14:37 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',

Obsidian iPad syncing via iSH git

by Danny Quah, Jan 2022

This gist describes using Obsidian on iPad while syncing to other Obsidian platforms. The procedure uses git in iSH on iOS, and thus differs from using either Obsidian Sync or Working Copy as described in Obsidian/iOS+app.

(To be clear, Obsidian is one of my favourite Apps, and I'm all for supporting the team financially. Moreover, everything I've heard suggests the paid Obsidian Sync is excellent. However, I don't want my syncing processes to proliferate --- each service using a different client sync flow --- so I keep my systems minimal: just syncthing and git. After writing this I found an Obsidian Forum writeup which uses the same tools I do to achieve the same goal, but you'll want to read that with its accumulated contributions dispersed across the comments. So at least I was thinking

@nickovchinnikov
nickovchinnikov / python_on_iphone.sh
Created November 12, 2023 05:35 — forked from AlecSchneider/python_on_iphone.sh
How to install apk and Python on your iPhone using the iSH Shell
cd
# you can do this all in one command
wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static
apk add python3
@nickovchinnikov
nickovchinnikov / normcore-llm.md
Created November 13, 2023 09:03 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@nickovchinnikov
nickovchinnikov / cuda_install.md
Created January 30, 2024 13:04 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation