Skip to content

Instantly share code, notes, and snippets.

View JaiganeshKumaran's full-sized avatar

Jaiganésh Kumaran JaiganeshKumaran

  • Chennai, Tamil Nādu
View GitHub Profile
@alpiepho
alpiepho / all-git-commits.py
Last active April 14, 2024 01:16
Simple python script to download all GitHub commits for a given repo.
#!/usr/bin/python
# python3 ./all-git-commits.py -u <user> -d <directory> -r <repo> -n <number of commits>
#
# Tool to inspect Github and pull local copies of all commits for
# for the given user.
#
# Why? Every ask yourself the question 'I know I did this before, but
# which repos commit was it in?'
# With all files local, you can use any serach-in-files app to look.
@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();
@kennykerr
kennykerr / IMemoryBufferByteAccess.cpp
Last active September 13, 2022 04:54
How to use IMemoryBufferByteAccess with C++/WinRT
#include "winrt/Windows.Foundation.h"
struct __declspec(uuid("5b0d3235-4dba-4d44-865e-8f1d0e4fd04d")) __declspec(novtable) IMemoryBufferByteAccess : ::IUnknown
{
virtual HRESULT __stdcall GetBuffer(uint8_t** value, uint32_t* capacity) = 0;
};
using namespace winrt;
using namespace Windows::Foundation;