Extract audio from a YouTube video file
ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3
Cut 3s length
ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
Extract audio from a YouTube video file
ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3
Cut 3s length
ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
npp_console 1 //open console | |
NPP_CONSOLE - //disable output of commands | |
npe_console m- //disable unnecessary output | |
con_colour bg= 191919 fg= F5F5F5 //set console colors | |
npp_save //save the file | |
cd $(CURRENT_DIRECTORY) //follow current directory | |
NPP_CONSOLE + //enable output | |
IF $(EXT_PART)==.c GOTO C //if .c file goto C label | |
IF $(EXT_PART)==.cpp GOTO CPP //if .cpp file goto CPP label | |
IF $(EXT_PART)==.java GOTO JAVA //if .java file goto JAVA label |
#!/bin/bash | |
COUNTER=1 | |
SOURCE="source:/folder" | |
DESTINATION="destination:/folder" | |
while [ $COUNTER -lt 100 ]; do |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
// This file was initially generated by Windows Terminal 1.6.10571.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
# Ensure that required tools are installed and available in $PATH | |
command -v pdftk >/dev/null 2>&1 || { echo >&2 "pdftk is required but was not found. Aborting."; exit 1; } | |
command -v exiftool >/dev/null 2>&1 || { echo >&2 "exiftool is required but was not found. Aborting."; exit 1; } | |
command -v qpdf >/dev/null 2>&1 || { echo >&2 "qpdf is required but was not found. Aborting."; exit 1; } | |
# Ensure that 1 cmdline argument was passed | |
if [ "$#" -ne 1 ] | |
then | |
echo "Usage: cleanpdf.sh path-to-pdf-file.pdf" | |
echo "" |
// to install this script: install the tampermonkey extension. Then click on "raw" on this github page. | |
// *perso note: | |
//to install or to send update: | |
// 1/ edit must be done on github (cf. the url in the tab settings). | |
// 2/ Edit/update the script (using the edit github button) + increase the version (or it will ask to reinstall in the next step) | |
// (don't need to increase the version if the change are just for myself: just reinstall it to keep the version) | |
// 3/ click on RAW (it will show the changes). | |
// 4/ Click Update (if needed refresh the dashboard page) |