Skip to content

Instantly share code, notes, and snippets.

View ChathuraHettiarachchi's full-sized avatar
📡
Looking for new things...

Choota ChathuraHettiarachchi

📡
Looking for new things...
View GitHub Profile
@ChathuraHettiarachchi
ChathuraHettiarachchi / yt-list-to-mp3
Created December 17, 2018 08:22 — forked from davidefavia/yt-list-to-mp3
Convert YouTube playlist to mp3
#!/bin/bash
clear;
echo "Insert YouTube playlist ID: ";
read playlistId;
# You need youtube-dl to use this script: http://youtube-dl.org/
youtube-dl --extract-audio --audio-format mp3 --yes-playlist https://www.youtube.com/watch?list=$playlistId -i
@ChathuraHettiarachchi
ChathuraHettiarachchi / .rubocop.yml
Created October 17, 2018 05:51 — forked from jhass/.rubocop.yml
My preferred Rubocop config
AllCops:
RunRailsCops: true
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength: