learnbyexample
Interests: Regular Expressions, Linux CLI one-liners, Scripting Languages and Vim
- 27 Posts
- 30 Comments
learnbyexample@programming.devto
Programming@programming.dev•Who are some programming content creators that you follow?English
4·3 years ago- https://jvns.ca/
- https://mathspp.com/
- https://thepythoncodingstack.substack.com/
- https://codeconfessions.substack.com/
learnbyexample@programming.devto
Books@lemmy.ml•A good fantasy book? you know, wizards, dragons, princesses, that kind of stuffEnglish
10·3 years ago+1 for Cradle already mentioned. I’d add
- The Riyria Revelations by Michael J. Sullivan
- Kings of the Wyld by Nicholas Eames
learnbyexample@programming.devOPto
Linux@lemmy.ml•Perl One-Liners Guide with plenty of examples and exercisesEnglish
2·3 years agoThat’s great to hear and thanks for the kind feedback :)
learnbyexample@programming.devto
Programming@programming.dev•Best place to write and host a programming guideEnglish
8·3 years agoI use GitHub pages and mdbook (https://github.com/rust-lang/mdBook)
learnbyexample@programming.devto
Linux@lemmy.ml•SHARE WITH THE CLASS: What aliases are you using?English
1·3 years agoI used to use it for posting on Twitter, with some keywords (like book title) in bold.
learnbyexample@programming.devto
Linux@lemmy.ml•SHARE WITH THE CLASS: What aliases are you using?English
81·3 years agoalias a='alias' a c='clear' a p='pwd' a e='exit' a q='exit' a h='history | tail -n20' # turn off history, use 'set -o history' to turn it on again a so='set +o history' a b1='cd ../' a b2='cd ../../' a b3='cd ../../../' a b4='cd ../../../../' a b5='cd ../../../../../' a ls='ls --color=auto' a l='ls -ltrhG' a la='l -A' a vi='gvim' a grep='grep --color=auto' # open and source aliases a oa='vi ~/.bash_aliases' a sa='source ~/.bash_aliases' # sort file/directory sizes in current directory in human readable format a s='du -sh -- * | sort -h' # save last command from history to a file # tip, add a comment to end of command before saving, ex: ls --color=auto # colored ls output a sl='fc -ln -1 | sed "s/^\s*//" >> ~/.saved_commands.txt' # short-cut to grep that file a slg='< ~/.saved_commands.txt grep' # change ascii alphabets to unicode bold characters a ascii2bold="perl -Mopen=locale -Mutf8 -pe 'tr/a-zA-Z/𝗮-𝘇𝗔-𝗭/'" ### functions # 'command help' for command name and single option - ex: ch ls -A # see https://github.com/learnbyexample/command_help for a better script version ch() { whatis $1; man $1 | sed -n "/^\s*$2/,/^$/p" ; } # add path to filename(s) # usage: ap file1 file2 etc ap() { for f in "$@"; do echo "$PWD/$f"; done; } # simple case-insensitive file search based on name # usage: fs name # remove '-type f' if you want to match directories as well fs() { find -type f -iname '*'"$1"'*' ; } # open files with default application, don't print output/error messages # useful for opening docs, pdfs, images, etc from command line o() { xdg-open "$@" &> /dev/null ; } # if unix2dos and dos2unix commands aren't available by default unix2dos() { sed -i 's/$/\r/' "$@" ; } dos2unix() { sed -i 's/\r$//' "$@" ; }
learnbyexample@programming.devto
Linux@lemmy.ml•What feature/utility/app are you surprised is not installed by default in Linux distributions?English
92·3 years agoEPUB reader
learnbyexample@programming.devto
Open Source@lemmy.ml•What open source programs do you recommend for Windows? (Windows exclusive or not)English
6·3 years agoCheck out https://github.com/auctors/free-lunch (list of free Windows software)
See also https://www.nirsoft.net/ (freeware, not open source)
learnbyexample@programming.devto
Books@lemmy.ml•Recommendations for short, dialogue-heavy/description-light audiobooks with lively narrators?English
2·3 years agoCradle by Will Wight is a page-turner. 12 book completed series and audio is great based on gushing reviews I’ve come across.
learnbyexample@programming.devto
Linux@programming.dev•What software do you use to edit markdown?English
4·3 years agoGVim.
Check out https://ghostwriter.kde.org/ if you are looking for a GUI app with live preview, full screen mode, etc.
learnbyexample@programming.devOPto
Linux@lemmy.ml•Learn GNU awk with hundreds of examples and exercisesEnglish
5·3 years agoI have a book for Perl One-Liners as well, which I’m currently revising :)
learnbyexample@programming.devOPto
Linux@lemmy.ml•Learn GNU awk with hundreds of examples and exercisesEnglish
5·3 years agoI’ve written books on regex too, if you are interested in learning ;)
learnbyexample@programming.devOPto
Linux@lemmy.ml•Learn GNU awk with hundreds of examples and exercisesEnglish
3·3 years agoThanks a lot for the feedback on Coreutils book! It’s so nice to hear that it helped in your thesis.
Regarding the ebook versions, I use
pandocto convert GitHub style Markdown to PDF/EPUB (wrote a blog post about my process here: https://learnbyexample.github.io/customizing-pandoc/). I had to search through stackexchange threads to customize the few things I could. I don’t know how to fix the kind of page breaks you mentioned. But, I’ll try to find a solution. Thanks again for the feedback :)
learnbyexample@programming.devOPto
Linux@lemmy.ml•Learn GNU awk with hundreds of examples and exercisesEnglish
8·3 years agoHope you find the book useful :)
I’d also suggest these shorter guides to get started:
learnbyexample@programming.devto
Books@lemmy.ml•Request for Nonfiction must readsEnglish
3·3 years agoInto Thin Air by Jon Krakauer
Krakauer examines what it is about Everest that has compelled so many people – including himself – to throw caution to the wind, ignore the concerns of loved ones, and willingly subject themselves to such risk, hardship, and expense. Written with emotional clarity and supported by his unimpeachable reporting, Krakauer’s eyewitness account of what happened on the roof of the world is a singular achievement.
learnbyexample@programming.devto
Books@lemmy.ml•Bought these from a book fair, thoughts?English
2·3 years ago“To Kill a Mocking Bird” is great.
learnbyexample@programming.devto
Books@lemmy.ml•Just in case anyone is interested, Humble Bundle has a Tad Williams bundle containing 21 ebooks for $18. The offer ends in about 1.5 days.English
4·3 years agoI’ve read his Memory, Sorrow, and Thorn trilogy. Epic dark fantasy, great characters and worldbuilding. The plot is good too, but the pacing goes off rail sometimes.
See also:
- tldr — collection of community-maintained help pages for command-line tools
- explainshell — write down a command-line to see the help text that matches each argument
- General purpose command-line tools — examples for most common usecases
- Bash reference cheatsheet — nicely formatted and explained well
- Bash scripting cheatsheet — quick reference to getting started with Bash scripting
learnbyexample@programming.devto
Books@lemmy.ml•Looking for comeuppance heavy seriesEnglish
2·3 years agoThanks, that looks interesting, added to my TBR.
Also, just remembered The Stars My Destination by Alfred Bester as another candidate for your request. This is also sci-fi.



