Skip to content

Instantly share code, notes, and snippets.

View ovcharenkoo's full-sized avatar

Oleg Ovcharenko ovcharenkoo

View GitHub Profile
@danielef
danielef / nvidia-drivers-reinstall.md
Last active October 21, 2024 16:09
nvidia drivers reinstall for Ubuntu 20.04

nvidia drivers reinstall for Ubuntu 20.04

  1. Login as root
sudo -s
  1. Purge all nvidia packages:
apt-get purge *nvidia*
apt autoremove
@mcarilli
mcarilli / nsight.sh
Last active November 14, 2024 21:26
Favorite nsight systems profiling commands for Pytorch scripts
# This isn't supposed to run as a bash script, i named it with ".sh" for syntax highlighting.
# https://developer.nvidia.com/nsight-systems
# https://docs.nvidia.com/nsight-systems/profiling/index.html
# My preferred nsys (command line executable used to create profiles) commands
#
# In your script, write
# torch.cuda.nvtx.range_push("region name")
# ...
@yelizariev
yelizariev / 000-aws-lambda-bot.md
Last active December 15, 2022 15:18
Telegram resending bot on AWS Lambda. OBSOLETE: the latest version is here https://chatops.readthedocs.io/en/latest/resend-bot/index.html

The general idea is to ask a group (let's call it target group) via bot and get answer. The group might be:

  • Support Team
  • IT Department of your company
  • etc.

TODO: text formatting is lost on resending. Use entities instead of text field

TODO: set debug level via Environment variables

@phuysmans
phuysmans / gist:4f67a7fa1b0c6809a86f014694ac6c3a
Created January 8, 2018 09:29
docker compose health check example
version: '2.1'
services:
php:
tty: true
build:
context: .
dockerfile: tests/Docker/Dockerfile-PHP
args:
version: cli
volumes: