Skip to content

Instantly share code, notes, and snippets.

View n-ce's full-sized avatar
✴️
Introspecting, Brainstorming, Creating

Animesh n-ce

✴️
Introspecting, Brainstorming, Creating
View GitHub Profile
@n-ce
n-ce / get_formats.py
Last active April 19, 2024 10:58
yt-dlp AV1+Opus Downloader Script
from yt_dlp import YoutubeDL
from yt_dlp import YoutubeDL
def get_video_formats(url):
ydl_opts = {
'skip_download': True
}
with YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=False)
formats = info_dict.get('formats', [])
@n-ce
n-ce / config.toml
Created April 13, 2024 17:15
Helix Config & LSP
theme = "onedarker"
[editor]
auto-save = true
[editor.gutters]
layout = ["line-numbers", "diff"]
[editor.gutters.line-numbers]
min-width = 0
@n-ce
n-ce / README.md
Last active April 10, 2024 08:44
Using Eruda with Vite (+ TypeScript)
npm i eruda -D

To use eruda without installing eruda as a package, edit the src in the plugin to https://cdn.jsdelivr.net/npm/eruda.

vite.config.ts

import { defineConfig } from "vite";
import type { PluginOption } from 'vite'