Skip to content

Instantly share code, notes, and snippets.

View nmalayev's full-sized avatar

Nison M. nmalayev

View GitHub Profile
@nmalayev
nmalayev / saveToPlaylist.js
Created February 28, 2022 18:16
YouTube Music Likes to Playlist
// Define the sleep method and relevant paths.
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
const sleepTime = 600;
const count = 0;
// Update playlistName to desired playlist
const playlistName = "#####";
@nmalayev
nmalayev / add_host.bat
Created September 22, 2020 03:01
Add local.priceline.com dns config to Windows hosts
@ECHO off
ECHO Getting Default Gateway and adding to hosts.conf
for /F "tokens=13" %%x in ('"ipconfig /renew * > nul & ipconfig | findstr "Default Gateway" | findstr "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*""') do (
@echo %%x local.priceline.com >> C:\Windows\System32\drivers\etc\hosts
echo %%x local.priceline.com
)
PAUSE