Skip to content

Instantly share code, notes, and snippets.

View leonistor's full-sized avatar
🏠
Working from home

Leo Nistor leonistor

🏠
Working from home
  • Brasov, Romania
View GitHub Profile
# yt-dlp download playlist
yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" 'https://www.youtube.com/playlist?list=PL9dIWiKCV573fa_ohMcJJbow7y--zAxd1'
@leonistor
leonistor / mount.sh
Created December 27, 2021 11:11
mount ntfs,fat with sane permission
udevil mount -o fmask=0133,dmask=0022 /dev/sdb2
@leonistor
leonistor / README.md
Last active January 16, 2025 13:24
huggingface course local

huggingface course

prerequisites

1. mamba

use fresh install

2. fastchan channel

@leonistor
leonistor / cell.py
Created October 12, 2021 09:02
jupyter notebook increase bottom space
from IPython.core.display import display, HTML
display(HTML("<style>.end_space { height:600px !important; }</style>"))
@leonistor
leonistor / delete_from_path.sh
Created September 3, 2021 10:02
fish paths
# https://superuser.com/questions/776008/how-to-remove-a-path-from-path-variable-in-fish/1091983#1091983?newreg=73ef956cba5a413aa6f2d21a85d88f5f
echo $fish_user_paths | tr " " "\n" | nl
echo "pick the number x, then"
set --erase --universal fish_user_paths[x]
@leonistor
leonistor / TODO.md
Created April 4, 2021 14:51
kakoune
import unittest
from beer_song import recite
# Tests adapted from `problem-specifications//canonical-data.json` @ v2.1.0
class BeerSongTest(unittest.TestCase):
def test_first_generic_verse(self):
expected = [
@leonistor
leonistor / .credo.exs
Created March 31, 2020 09:31
Elixir mix credo global
# This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in the `configs:` field.
configs: [