Skip to content

Instantly share code, notes, and snippets.

View rip747's full-sized avatar

Anthony Petruzzi rip747

View GitHub Profile
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active May 7, 2024 05:33
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="Action menu"]').click();
@Deanout
Deanout / Rails Setup.txt
Last active May 20, 2021 06:08
Ruby on Rails 6 Setup Ubuntu 18.04
Commands from http://howtoforge.com/tutorial/ubuntu-ruby-on-rails
Yarn from https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable --ruby
Restart terminal
@rip747
rip747 / split_repo.bash
Created October 21, 2010 15:57 — forked from pk/split_repo.bash
git extract directory into it's own repo
#!/bin/bash
FROM=$1 #/cygdrive/c/temp/oldrepo
TO=$2 #/cygdrive/c/temp/newrepo
echo "Spliting '$TO' from '$FROM'"
git clone --no-hardlinks $FROM $TO
cd $TO
git filter-branch --subdirectory-filter $TO HEAD -- --all
git reset --hard
@rip747
rip747 / Files uploaded
Last active August 29, 2015 14:08
CFML Rack Middleware idea for returning a list of uploaded files
<cfscript>
// credit to David "MisterDai" Boyer
// http://misterdai.yougeezer.co.uk/posts/2012/03/08/coldfusion-10-beta-multiple-html5-multiple-uploads-bug/
if (cgi.request_method == 'POST') {
WriteDump(var = form, label = "Form Scope");
for (field in form) {
form[field] = ListToArray(form[field]);
}
WriteDump(var = form, label = "Form Scope - Parsed");