Skip to content

Instantly share code, notes, and snippets.

@mohandarsi
mohandarsi / argparse.bat
Created February 21, 2023 11:19 — forked from sgryjp/argparse.bat
Command line option (argument) parsing example for Windows batch file.
:: Command line option (argument) parsing example
::
:: Written by Suguru Yamamoto
:: <https://gist.github.com/sgryjp/045989b0f6f0089a24f257d74b8a60bd>
:: LICENSE: Public Domain
@echo off
setlocal enableextensions
:: Parse arguments
set _LEVEL=0
@mohandarsi
mohandarsi / unsubscribe-youtube-channels.js
Last active August 13, 2022 15:20 — forked from viveknaskar/unsubscribe-youtube-channels.js
A script that can be executed to unsubscribe all the YouTube channels at once.
var i = 0;
var myVar = setInterval(myTimer, 3000);
function myTimer() {
var els = document.getElementById("grid-container").getElementsByClassName("ytd-expanded-shelf-contents-renderer");
if (i < els.length) {
@mohandarsi
mohandarsi / memrise-export.js
Last active August 11, 2021 23:46 — forked from raineorshine/memrise-export.js
Export Memrise course words to CSV. There is also a Chrome Extension: https://chrome.google.com/webstore/detail/memrise-export/hcllgkpmoiolndnhmbdceffaidjmkoam
/*
Export Memrise course words to CSV (technically TSV, or "tab separated file", but it is effectively the same).
1. Log into Memrise.
2. Navigate to the course page you would like to export (e.g. https://app.memrise.com/course/2156672/german-random-01/).
3. Open the browser's Developer Console (https://support.airtable.com/hc/en-us/articles/232313848-How-to-open-the-developer-console)
4. Paste the below script into the console and hit enter.
5. After all pages have been loaded, copy and paste the final word list into spreadsheet.