Skip Navigation

Posts
123
Comments
73
Joined
2 yr. ago

Linux @lemmy.ml

Optimize your shell experience

Programming @programming.dev

Rules to avoid common extended inline assembly mistakes

Programming @programming.dev

Common Misconceptions about Compilers

Linux @lemmy.ml

Conjuring a Linux distribution out of thin air

Programming @programming.dev

Learning LLVM (Part-1) - Writing a simple LLVM pass

Linux @lemmy.ml

How fast are Linux pipes anyway?

Linux @lemmy.ml

Emulating regexp lookarounds in GNU sed

Linux @lemmy.ml

The TTY demystified

Linux @lemmy.ml

GNU BRE/ERE cheatsheet and differences between grep, sed and awk

Programming @programming.dev

Practices of Reliable Software Design

Linux @lemmy.ml

How stdbuf works

Linux @lemmy.ml

Containers are chroot with a Marketing Budget

Linux @lemmy.ml

What’s New in POSIX 2024

Programming @programming.dev

Why Full Text Search is Hard

Linux @lemmy.ml

Idiomatic awk

Programming @programming.dev

Scheduling Model in LLVM

Programming @programming.dev

Designing A Fast Concurrent Hash Table

Linux @lemmy.ml

systemd: The Good Parts

Linux @lemmy.ml

The beauty of Unix pipelines

Linux @lemmy.ml

Cron Jobs on Linux - Comprehensive Guide with Examples

  • True, perhaps a case of doing too much of anything over a long period ;)

  • When I was younger, I'd read slowly, trying to visualize the setting, keep track of character preferences, look up words I don't know, etc. I'd remember a book well enough to talk about it even a year or so after.

    These days, I just skim over descriptions and read as fast as I could while still getting the main plot. I get attached to characters only if the book is really good and savor them during rereads.

  • I mostly read fantasy and sci-fi, which tend to have multiple books in a series. If they are easy-to-read and short (300-400 pages per book), it becomes easy to consume. Also, I read for escapism, so I don't read too closely.

  • Hopefully less than this year. I'm reading too many (100+) and that's reflecting in my reduced time on actual work (self-employed).

  • +1 for Cradle already mentioned. I'd add

    • The Riyria Revelations by Michael J. Sullivan
    • Kings of the Wyld by Nicholas Eames
  • That's great to hear and thanks for the kind feedback :)

  • I used to use it for posting on Twitter, with some keywords (like book title) in bold.

  •  bash
        
    alias 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$//' "$@" ; }
    
      
  • Cradle by Will Wight is a page-turner. 12 book completed series and audio is great based on gushing reviews I've come across.

  • I have a book for Perl One-Liners as well, which I'm currently revising :)

  • I've written books on regex too, if you are interested in learning ;)

  • Thanks 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 pandoc to 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 :)

  • Into 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.

  • "To Kill a Mocking Bird" is great.