Skip to content

Instantly share code, notes, and snippets.

View slzdevsnp's full-sized avatar

sviatoslav zimine slzdevsnp

  • UK
View GitHub Profile
@slzdevsnp
slzdevsnp / jupyter_install.md
Last active December 15, 2020 00:08
[jupyter] #jupyter #labs #python

prereq: pip3 should be installed

sudo -H pip3 install jupyter

installing jupyterlab in conda

conda install -c conda-forge jupyterlab
@slzdevsnp
slzdevsnp / install_miniconda.md
Created December 14, 2020 23:04
[conda] #python #venv
@slzdevsnp
slzdevsnp / access_fastai_materials.md
Last active December 14, 2020 23:10
[fast.ai] #gpu #fast.ai #ml
@slzdevsnp
slzdevsnp / nvidia_drivers_ubuntu_2004.md
Last active December 14, 2020 22:26
[nvidia] #gpu #linux install

install nvidia drivers from standard ubuntu repository

GNOME GUI Nvidia installation Method

The easiest, recommended in most cases

  • Select Software & Updates app,
  • Click on Additional drivers
  • Choose any proprietary drifver, the higher number correspons to a later version

check driver version

@slzdevsnp
slzdevsnp / githhb_with_ssh.md
Last active December 27, 2020 12:46
[github!] #git #versioning #devops

#Adding ssh pub key to your github account

prereq. you should posess or generate a host's ssh key

on windows

$ clip < ~/.ssh/id_ed25519.pub
# Copies the contents of the id_ed25519.pub file to your clipboard

in github account

@slzdevsnp
slzdevsnp / cron_job_linux.md
Last active November 13, 2020 22:05
[cron] #cron #crontab #automation

Root cron

/etc/crontab

user-created crontables ubuntu

/var/spool/cron/crontabs

Anatomy of a crontab file

@slzdevsnp
slzdevsnp / install_angular_linux.md
Created November 13, 2020 14:53
[angular] #javascript #fe #frontend
@slzdevsnp
slzdevsnp / rclone_commands.md
Created June 12, 2020 10:24
[rclone] #cloud #rclone

url to configure google drive: https://rclone.org/drive/

see existing configuration, reconfigure rclone config

#see top dir listing rclone lsd remotename:

#see contents of a subfolder

@slzdevsnp
slzdevsnp / GenericsMethodsMain.java
Last active May 8, 2021 16:31
[java generics] #java #generics #lang
package packt.j9fprog.genericMethods;
import java.util.List;
public class GenPair<K,V> {
private final K left;
private final V right;
public GenPair(K left, V right) {
this.left = left;
this.right = right;
@slzdevsnp
slzdevsnp / hashmap.md
Created May 19, 2020 15:18
[Hashmap] #java #datastructure #cs

Java difference between hashtable and hashmap

Hashtable is synchronized , Hashmap is not

Hashtable does not allow null keys or values

HashMap allows one null key and any number of null values