Skip to content

Instantly share code, notes, and snippets.

View format37's full-sized avatar
💭
Exploring AGI

Alexey Yurasov format37

💭
Exploring AGI
  • Georgia
View GitHub Profile
@format37
format37 / README.md
Created September 20, 2023 17:05
.NET ubuntu installation
sudo apt remove dotnet-sdk-* dotnet-runtime-* aspnetcore-runtime-*
sudo snap install dotnet-sdk --classic
dotnet --version
dotnet --list-sdks
@format37
format37 / README.md
Last active April 28, 2023 07:39
pip install check the lib version
import pkg_resources
print(pkg_resources.get_distribution("PyMCubes").version)

This may be useful to determine which lib version is installed, for subsequent docker requirements.txt settings like:

imageio==2.28.0
pycuda==2022.2.2
PyMCubes==0.1.4
@format37
format37 / README.md
Last active February 25, 2023 10:41
GPU Virtual machine docker setup

Requirements:

  • HDD Drive: 500 Gb
  • 20.04 GPU
  • ...

Docker installation

wget -qO- https://get.docker.com/ | sh
sudo apt install python3-pip -y
sudo pip install docker-compose
@format37
format37 / README.md
Created February 9, 2023 07:36
Jupyter notebook tips

Install kernel:

python -m ipykernel install --user --name env_name --display-name "EnvName"

Kernel list:

jupyter kernelspec list

Remove kernel:

@format37
format37 / README.md
Last active September 16, 2022 14:21
kas mining

Get link for the latest version of bzminer

wget https://www.bzminer.com/downloads/bzminer_v11.1.0_linux.tar.gz
tar -xvzf bzminer_v11.1.0_linux.tar.gz
cd bzminer_v11.1.0_linux
nano mine.sh
./bzminer -a kaspa -w kaspa:qzhtwdxafyxsg6ymysan8w4hrur02up6797qg8nq348gzdxtnmzdkpdcr6960 -p stratum+tcp://kaspa-pool.org:4444 -r rig1 &

ctrl+x && y && enter

@format37
format37 / README.md
Last active July 6, 2022 19:50
Space engineers script dev tools
@format37
format37 / README.md
Last active November 6, 2022 07:42
Docker commands

Install Docker & Docker compose

# curl -fsSL https://get.docker.com -o get-docker.sh
# curl https://get.docker.com -o get-docker.sh
# sudo sh get-docker.sh
wget -qO- https://get.docker.com/ | sh
sudo apt install python3-pip
sudo pip install docker-compose

Setting up NVIDIA Container Toolkit

@format37
format37 / README.md
Last active October 3, 2023 11:05
google cloud vpn server

To pay via credit card:

Add google cloud vm instance. You can select preemptible machine with unbalanced disc, to low costing, at $2. Don't forget to select required region.
Set static ip adress
Add firewall rule: allow TCP, UDP: 943, 1194
Connect over ssh, using google cloud interface
Check your linux release, and follow instructions to install openvpn: https://openvpn.net/vpn-software-packages/
After install, in terminal will appears the admin ui link, like: Admin UI: https://10.128.0.4:943/admin
There will be also login openvpn and password
Replace local ip to server external static ip and open in web browser Login page.

To pay via bitcoin:

@format37
format37 / cuda_9.0_cudnn_7.0.sh
Created October 27, 2021 19:02
install CUDA Toolkit v9.0
#!/bin/bash
# install CUDA Toolkit v9.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb)
CUDA_REPO_PKG="cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb"
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda-9-0
@format37
format37 / readme.md
Last active June 27, 2021 09:57
librealsense build from source arm

Building From Source

Ubuntu 14.04/16.04 LTS

  1. Ensure apt-get is up to date
  • sudo apt-get update && sudo apt-get upgrade
  • Note: Use sudo apt-get dist-upgrade, instead of sudo apt-get upgrade, in case you have an older Ubuntu 14.04 version
  1. Install Python and its development files via apt-get (Python 2 and 3 both work)
  • sudo apt-get install python python-dev or sudo apt-get install python3 python3-dev
  • Note: The project will only use Python 2 if it can't use Python 3
  1. Run the top level CMake command with the following additional flag -DBUILD_PYTHON_BINDINGS:bool=true: