Skip to content

Instantly share code, notes, and snippets.

View patchedsoul's full-sized avatar

patchedsoul

  • planet earth
View GitHub Profile

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

@patchedsoul
patchedsoul / Googol GLaDOS Voice Tutorial.md
Created September 18, 2021 09:58 — forked from hako/Googol GLaDOS Voice Tutorial.md
Googol GLaDOS Voice Tutorial, Originally from my site. re-edited in markdown. Do NOT claim this work as your own.

Tutorial: How to create the GLaDOS voice effect. (And other robots)

If you have come here for the animation of Googol GLaDOS, I encourage you to watch it before you continue.

If you're here to see how the voices were made...

LETS GET STARTED.

@patchedsoul
patchedsoul / restore_docker_containers.sh
Created August 5, 2020 10:06 — forked from pldmgg/restore_docker_containers.sh
restore_docker_containers.sh
#!/bin/bash
# Reference: https://github.com/tlaanemaa/backup-docker
# Reference for starting addons via comd line: https://www.reddit.com/r/homeassistant/comments/an8lsl/how_do_you_issue_hassio_cli_commands_in_a/
# Installation of Prerequisites -
#
# sudo apt-get install npm
# sudo npm install -g backup-docker
# sudo apt-get install powershell
# cd ~
@patchedsoul
patchedsoul / backup_docker_containers.sh
Created August 5, 2020 10:06 — forked from pldmgg/backup_docker_containers.sh
backup_docker_containers.sh
#!/bin/bash
# Reference: https://github.com/tlaanemaa/backup-docker
# Reference for starting addons via comd line: https://www.reddit.com/r/homeassistant/comments/an8lsl/how_do_you_issue_hassio_cli_commands_in_a/
#
# Installation of Prerequisites
# sudo apt-get install npm
# sudo npm install -g backup-docker
# sudo apt-get install powershell
# cd ~
@patchedsoul
patchedsoul / protoAdvert.py
Created February 4, 2020 16:45
pydbus advertisement experiment
#!/usr/bin/env python3
import pydbus
from gi.repository import GLib
class Advertisement(object):
"""
<node>
<interface name="org.bluez.LEAdvertisement1">
<method name="Release">
# https://docs.docker.com/engine/admin/systemd/
Many Linux distributions use systemd to start the Docker daemon. This document shows a few examples of how to customize Docker’s settings.
Starting the Docker daemon
Once Docker is installed, you will need to start the Docker daemon.
$ sudo systemctl start docker
# or on older distributions, you may need to use
$ sudo service docker start
If you want Docker to start at boot, you should also:
@patchedsoul
patchedsoul / proxy.md
Created January 8, 2020 10:06 — forked from yougg/proxy.md
set http/socks/ssh proxy environment variables

set http or socks proxy

# set http proxy
export http_proxy=http://127.0.0.1:8080
# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@127.0.0.1:8080
# set http proxy with user and password (with special characters)
export http_proxy=http://`urlencode 'USERNAME'`:`urlencode 'PASSWORD'`@127.0.0.1:8080
@patchedsoul
patchedsoul / arch-linux-install
Created January 4, 2020 16:20 — forked from binaerbaum/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swiss-french keymap
@patchedsoul
patchedsoul / alpine-install.sh
Created December 20, 2019 17:31 — forked from thde/alpine-install.sh
A script to install alpine linux on a dedicated server. Tested on Hetzner, Kimsufi / OVH
#!/bin/sh
set -ex
PATH=/bin:/sbin:/usr/bin:/usr/sbin
KEYMAP="us us"
HOST=alpine
USER=anon
ROOT_FS=ext4
BOOT_FS=ext4
@patchedsoul
patchedsoul / generate-ssh-key.sh
Created October 2, 2019 19:21 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa