Skip to content

Instantly share code, notes, and snippets.

= Some yum usage for people who know "apt" =
If you are familiar with the apt package manager on Debian/Ubuntu this page should help you transfer your knowledge to working with yum on Fedora/RHEL/CentOS/etc.
Note that this page as currently written is by non-apt experts, so there may be some mistakes.
== General points ==
* Speed:
* data/CPU: apt on Debian deals with roughly ~37,000 packages[1] and an extra 6,500 "provides"[2]. yum on Fedora deals with roughly 24,000 packages, 143,000 provides and 3,100,000 file provides.

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}
@jamesdeantv
jamesdeantv / app.js
Created March 24, 2019 19:36 — forked from jochasinga/app.js
Node/Socket.io server code for syncing data from Firebase
var Firebase = require("firebase");
var express = require("express");
// Create HTTP Server
var app = express();
var server = require("http").createServer(app);
// Attach Socket.io server
var io = require("socket.io")(server);
// Indicate port 3000 as host
var port = process.env.PORT || 3000;
@jamesdeantv
jamesdeantv / dabblet.css
Created February 17, 2019 03:05 — forked from LeaVerou/dabblet.css
Sprite Sheet animation with CSS3 using the steps() feature
/**
* Sprite Sheet animation with CSS3 using the steps() feature
* Simplified from simurai’s original example at http://jsfiddle.net/simurai/CGmCe/
*/
@keyframes wink {
from { background-position: 0px; }
to { background-position: -500px; }
}
##.ytp-pause-overlay
##.ytp-ce-covering-overlay
##.ytp-ce-element-shadow
##.ytp-ce-covering-image
##.ytp-ce-expanding-image
@jamesdeantv
jamesdeantv / live-radio.json
Created November 15, 2018 00:34 — forked from valarpirai/live-radio.json
Tamil Live Streaming Radio URL list
[{"name":"Chennai","channels":[{"id":"ar-rahman-lite-radio","name":"A R Rahman Lite Radio","website":"http://southradios.com","src":"http://212.83.138.48:8332/;"},{"id":"a-r-rahman-radio","name":"A R Rahman Radio","website":"http://southradios.com","src":"http://212.83.138.48:8328/;"},{"id":"ap-myindmedia","name":"AP MyIndMedia","website":"http://www.myindmedia.com/","src":"http://52.3.202.102:8030/;"},{"id":"bible-radio-new-testament","name":"Bible Radio - New Testament","website":"http://southradios.com","src":"http://212.83.138.48:8429/;"},{"id":"bible-reading-the-gospel","name":"Bible Reading - The Gospel","website":"http://southradios.com","src":"http://212.83.138.48:8436/;"},{"id":"btc-tamil-fm","name":"BTC Tamil FM","website":"http://www.btctamil.com","src":"http://199.175.48.216:8080/;"},{"id":"chennaichristianradio","name":"Chennai Christian Radio","website":"http://chennaichristianradio.com/","src":"http://5.10.69.105/stream2?.mp3"},{"id":"christian-fm","name":"Christian FM","website":"http://christ
@jamesdeantv
jamesdeantv / gist:c30e8c7be52a817fc24234af158d7cae
Created November 4, 2018 20:56 — forked from paulkaplan/gist:5770247
Orbit Controls with momentum and damping for THREE.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / http://github.com/WestLangley
*
* customized for momentum (zoom and phi/delta) by paulkaplan
*/
THREE.OrbitControls = function ( object, domElement ) {
@jamesdeantv
jamesdeantv / ffmpeg.md
Created November 2, 2018 23:45 — forked from nnx0r/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec
@jamesdeantv
jamesdeantv / youtube-playlist.txt
Created October 9, 2018 12:50 — forked from ZubairLK/youtube-playlist.txt
Downloading all playlists of a user using youtube-dl khanacademy
youtube-dl is a nifty utility that can parse and download all user videos. Recently added a feature on downloading all playlists.
Here is a command that downloads all playlists of user KhanAcademyUrdu and puts all videos of each playlist in separate folders.
youtube-dl -ciw -f '(webm)[height<480]' -o '/media/zubairlk/part1/khanurdu/%(playlist)s/%(playlist_index)s_%(title)s_%(id)s.%(ext)s' --yes-playlist -R 10000 https://www.youtube.com/user/KhanAcademyUrdu/playlists
some explanation for later. see https://github.com/rg3/youtube-dl for full details.
-i is to ignore interrupts. timeouts/private videos etc block otherwise.

Download 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 Firefox (cookies.txt)[1] export extension. Save it to file cookies.txt

$ youtube-dl https://www.udemy.com/course-name/ --cookies ./cookies.txt > $ youtube-dl -u username -p password -o './videos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/course-name --cookies ./cookies.txt --verbose