Skip to content

Instantly share code, notes, and snippets.

View Ar4ikov's full-sized avatar
👺
Unbelievable

Nikita Davidchuk Ar4ikov

👺
Unbelievable
View GitHub Profile
@Nexarian
Nexarian / xrdp-nvidia-setup.sh
Last active July 4, 2024 17:01
Setup for XRDP using Nvidia Acceleration
#!/usr/bin/env bash
set -e
cd ~
sudo -v
# Make sure system is in a good, updated, clean, state.
sudo apt-get -y update
@Sentdex
Sentdex / imagery_create.py
Created September 16, 2022 01:38
Creating images with Stable Diffusion to find a good seed to go with prompt
import torch
from diffusers import StableDiffusionPipeline
from torch import autocast
import random
import matplotlib.pyplot as plt
import os
prompts = [
"1965 Porsche 911",
@AbstractUmbra
AbstractUmbra / 00-deprecation.md
Last active June 28, 2024 02:30
discord.py 2.0+ slash command info and examples

This gist has now been 'deprecated' and has moved...

... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.

@svp19
svp19 / torch_distributed.py
Created September 15, 2020 02:24
Playground code for distributed training in PyTorch. While the docs and tutorials out there are great, I felt a simple example like this was much needed.
'''
Tutorial Code for distributed training in PyTorch that trains
an inception_v3 model on dummy data.
*Installation: *
Use pip/conda to install the following libraries
- torch
- torchvision
- argparse
- tqdm
@osipxd
osipxd / !paper-versions.md
Last active July 2, 2024 08:39
Paper versions links
@korakot
korakot / record.py
Last active May 12, 2024 01:14
Record audio in Colab using getUserMedia({ audio: true })
# all imports
from IPython.display import Javascript
from google.colab import output
from base64 import b64decode
from io import BytesIO
!pip -q install pydub
from pydub import AudioSegment
RECORD = """
const sleep = time => new Promise(resolve => setTimeout(resolve, time))