Developer Journal: 24 April 2020
Posted on Fri 24 April 2020 in dev-journal
Would would this look like if it were easy?
This is the single most important question I have been asking myself lately. It motivates me to simplify the process. Today this question helped me write some additional logic to my screenshot hotkey to simplify the process of adding photos to this dev journal.
bindsym --release $mod+Print exec scrot -s '%Y-%m-%d-%H%M%S_$wx$h.png' -e 'convert $f -trim +repage $f && mv $f ~/screenshots/dev-journal/'
# using echo -n to remove the new line that would be added and piping to xclip
# to send to clipboard the following was added to the above command
&& echo -n "{static}/screenshots/dev-journal/$f" | xclip
Using the coursera-dl script
- login coursera from your browser
- copy CAUTH value from your cookies list. For chrome on the tab with coursera open developer tools -> application -> cookies -> https://www.coursera.org -> CAUTH
- coursera-dl -ca 'cauth-value-copied-from-browser'