Skip to content

Instantly share code, notes, and snippets.

@Evolution0
Evolution0 / asyncParse.py
Last active October 27, 2016 12:04
Credits to: @pantuts for the original script "youParse.py"original took about 6 seconds to grab all 100 urls, this version requires less than 2 generally.
# Name: asyncParse.py
# Version: 1.0
# Author: Evolution0
# Email: [email protected]
# Description: Parse URLs in Youtube User's Playlist (Video Playlist not Favorites)
# Use python 3.5 and later
# Agreement: You can use, modify, or redistribute this tool under
# the terms of GNU General Public License (GPLv3).
# This tool is for educational purposes only. Any damage you make will not affect the author.
# Usage: python asyncParse.py youtubeURLhere
@simonw
simonw / recover_source_code.md
Last active September 28, 2024 08:10
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@justincbagley
justincbagley / How_to_Convert_Markdown_to_PDF.md
Last active March 27, 2025 03:38
How To Convert Markdown to PDF

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf