due today
not done
done today
| // 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) |
| # 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 "" |
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.
| #!/bin/bash | |
| COUNTER=1 | |
| SOURCE="source:/folder" | |
| DESTINATION="destination:/folder" | |
| while [ $COUNTER -lt 100 ]; do |
| 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 |
Extract audio from a YouTube video file
ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3Cut 3s length
ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4| // Help needed: I failed to send a value to the text resize and to apply it. Any idea ? | |
| // to install this script: install the violentmonkey 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). |
$ convert -density 200 INPUT.pdf -rotate 0.3 +noise Multiplicative -format pdf -quality 85 -compress JPEG -colorspace gray OUTPUT.pdf
Since XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. MariaDB is not 100% compatible with MySQL and can be replaced with the "orginal" MySQL server.
c:\xampp\mysql to c:\xampp\mariadb