Skip to content

Instantly share code, notes, and snippets.

View shm-tar's full-sized avatar
🪲
Debugging

Taras Shmilyk shm-tar

🪲
Debugging
View GitHub Profile
@TheOnlyWayUp
TheOnlyWayUp / README.md
Last active October 2, 2025 09:36
Like all songs in a Youtube Music Playlist

This script likes all the songs in a Youtube Music Playlist at once.

How to use:

  • Visit a Playlist's page on ytm (URL looks like: https://music.youtube.com/playlist?list=...
  • Press ctrl + shift + j. This opens the Developer Console.
  • Copy the script in this gist (That's in script.js)
  • Paste the code into the Developer Console on the ytm Tab, hit enter.
  • Great, you're done!

Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.

@trepichio
trepichio / converthtaccess2netilify.sh
Last active February 15, 2025 14:05
Convert htaccess to Netlify redirects
#Convert htaccess to netlify _redirects
grep DirectoryIndex htaccess | awk -F' ' '{print "/", "/"$2, 200}' > _redirects
grep RewriteRule htaccess | grep -v 'robots'| awk -F' ' '{print $2, $3, 200}' | sed -e 's/\^/\//g' | sed -e 's/\$//g' >> _redirects
@marcusx2
marcusx2 / netlify.toml
Last active July 12, 2025 18:08
custom headers for brotli compression on a Unity WebGL project hosted on Netlify
[[headers]]
for = "/Build/*.data.br"
[headers.values]
Content-Encoding = "br"
Content-Type = "application/octet-stream"
[[headers]]
for = "/Build/*.wasm.br"
[headers.values]
Content-Encoding = "br"
@MuhsinFatih
MuhsinFatih / fix-macos-python.md
Last active September 3, 2025 02:53
How to recover from messed up python installation on mac, and never have to mess with apple's python confusion factory

I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.

What the hell?

Here is what I had messed up, which you also probably did:

  • I had too many different python interpreters
  • Too many different symlinks which I lost track of
  • almost no package I installed with pip worked without a headache
  • any attempt to fix using online resources made it worse.