Skip to content

Instantly share code, notes, and snippets.

View JamesDBartlett3's full-sized avatar

James D. Bartlett III JamesDBartlett3

View GitHub Profile
@arinoki
arinoki / yt-dlp-parallel-audio-playlist.ps1
Last active May 31, 2022 20:13
yt-dlp parallel download of audio playlist [powershell 7]
# add to ur Powershell profile
# needed to be installed/be in path - yt-dlp, ffmpeg, aria2, libwebp. maybe i forgot smth.
# adjust music path, also u can adjust number of parallel processes by editing "-ThrottleLimit" variable
Function parallel-music-playlist {
param (
$url_to_playlist
)
$playlist_name = yt-dlp -i -o "%(playlist)s" --get-filename --skip-download --playlist-end 1 $url_to_playlist
$download_folder = "C:\!!Downloads\Music\!!youtube\$playlist_name\"
@chadbaldwin
chadbaldwin / .gitignore
Last active January 31, 2024 21:09
My personal PowerShell profile file
*
!Microsoft.*_profile.ps1
!.gitignore
@avmoldovan
avmoldovan / conv_output.py
Last active April 18, 2020 15:45
Pytorch convolution output
#shamelessly copied from here https://discuss.pytorch.org/t/utility-function-for-calculating-the-shape-of-a-conv-output/11173/7
# original docs at https://pytorch.org/docs/master/nn.html#conv2d
import math
def num2tuple(num):
return num if isinstance(num, tuple) else (num, num)
def conv2d_output_shape(h_w, kernel_size=1, stride=1, pad=0, dilation=1):
h_w, kernel_size, stride, pad, dilation = num2tuple(h_w), \
@roysubs
roysubs / BeginSystemConfig.ps1
Last active June 7, 2024 18:50
Run this script using iex (Invoke-Expression) to configure apps, create profile-extensions, install modules and other custom setup
########################################
#
# BeginSystemConfig.ps1
# iex ((New-Object System.Net.WebClient).DownloadString('https://bit.ly/2R7znLX'));
#
# Author: roysubs@hotmail.com
#
# 2019-11-25 Initial setup
# 2020-10-19 Latest Version
#