Skip to content

Instantly share code, notes, and snippets.

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
@mhucka
mhucka / gist:59e785a315d813d14cd0258b89a2fcac
Last active March 27, 2025 19:29
Stop the Adobe Creative Cloud app from auto-launching on login on macOS
#!/bin/bash
# =============================================================================
# @file GitHub gist
# @brief stop Adobe Creative Cloud app from auto-launching on login on macOS
# @author Michael Hucka <mhucka@caltech.edu>
# @created 2021-08-12
# @website https://gist.github.com/mhucka/59e785a315d813d14cd0258b89a2fcac
#
# I find Adobe Creative Cloud absolutely infuriating. It installs auto
# launchers that are not in the user's login app list, and the services are
@mohdsayed
mohdsayed / MegaMenu.js
Created February 5, 2021 06:31
Focus Trap
export default class MegaMenu {
constructor( el ) {
this.el = el;
this.inputs = [ ... this.el.querySelectorAll( 'input' ) ];
this.container = document.documentElement;
this.inputs.forEach( input => {
input.addEventListener( 'focus', () => this.handleFocus( input ) );
} );
@danpoynor
danpoynor / .gitignore
Last active January 30, 2022 16:44
Starter .gitignore for my projects. Mostly from https://github.com/github/gitignore
# for various projects
dist/
build/
builds/
built/
out/
public/
*.min.js
*-min.js
@Ruzgfpegk
Ruzgfpegk / wp-perf.md
Last active June 28, 2025 03:36
WordPress Performance & Development tips
@ApoGouv
ApoGouv / 00_wp-optimizations-security-n-cleanup.md
Last active November 3, 2025 08:01
WP - Optimizations, Security hardening and Cleanup.

🗺️ WordPress Optimization, Security & Cleanup Roadmap

This guide summarizes the files and methodology used for advanced hardening, performance tuning, and cleanup of a WordPress installation.

1. 📂 Server Configuration & .htaccess (01.htaccess)

This file is the primary layer for security and performance at the server level.

  • 🛡️ Security Hardening:
@psa-jforestier
psa-jforestier / purge-cdn.sh
Last active August 27, 2022 01:01
Shell script using AWS Cli to purge a CloudFront distribution, by id or by public aliases CNAME
#!/bin/sh
# Always checkout last version from https://github.com/D4UDigitalPlatform/cloudscripts/tree/master/aws/scripts/cloudfront
show_help() {
cat << EOF
Usage:
${0##*/} [--verbose] [--cloudfrontid CLDFID] [--cname CNAME] [--list]
Purge a CloudFront distribution.
options :
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active January 4, 2026 20:26
UPDATE 2024/03: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024
# ----------------------------------------------------------------------
# @Author: Andreas Hecht
# @Author URI: https://seoagentur-hamburg.com
# License: GNU General Public License v2 or later
# License URI: http://www.gnu.org/licenses/gpl-2.0.html
########################################################################
@barbietunnie
barbietunnie / udemy-courses-download-using-cookies.md
Last active January 8, 2026 15:21
Downloading Udemy videos with youtube-dl

How to download your Udemy course videos using youtube-dl

$ youtube-dl --list-extractors | grep udemy

Steps

  1. Get link to the course to download. e.g. https://www.udemy.com/course-name/
  2. Login into udemy website, save the cookie from chrome using Chrome (Cookie.txt)[1] export extension. Save it to file udemy-cookies.txt
  3. Get the link of the video that you want to download. usually in format. Use the command provided below where you have to replace the {course_link} and {path_to_cookies_file} with respective paths.
$ youtube-dl {course_link} --cookies {path_to_cookies_file}
@gr1ev0us
gr1ev0us / find.sh
Last active January 15, 2026 11:07
Cheatsheet for find linux
# List of cheatsheet for linux find.
# Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml
# basic 'find file' commands
# --------------------------
find / -name foo.txt -type f -print # full command
find / -name foo.txt -type f # -print isn't necessary
find / -name foo.txt # don't have to specify "type==file"
find . -name foo.txt # search under the current dir
find . -name "foo.*" # wildcard