Skip to content

Instantly share code, notes, and snippets.

View SebastianRiquelmeM's full-sized avatar
👻
Nasty

Sebastián Riquelme Muñoz SebastianRiquelmeM

👻
Nasty
View GitHub Profile
@SebastianRiquelmeM
SebastianRiquelmeM / Remove videos from Youtube Watch Later playlist.md
Last active December 21, 2022 20:45 — forked from astamicu/Remove videos from Youtube Watch Later playlist.md
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Menú de acciones"]').click();
@SebastianRiquelmeM
SebastianRiquelmeM / install.sh
Created September 12, 2022 05:43
Script to install and configure microk8s with dashboard, to run use ./install.sh
#!/bin/sh
# to run use:
# ./install.sh
echo "snap remove microk8s"
snap remove microk8s
echo "snap install microk8s --channel=1.23/stable --classic"
snap install microk8s --channel=1.23/stable --classic
@SebastianRiquelmeM
SebastianRiquelmeM / chmod400-powershell.txt
Created April 15, 2022 22:54
How to do chmod400 on windows powershell.
# Source: https://stackoverflow.com/a/43317244
$path = ".\aws-ec2-key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r