home.social

#oneliners — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #oneliners, aggregated by home.social.

fetched live
  1. One of the coolest things about Ruby is that you can write clear yet concise code.
    This is especially useful when you want to automate repetitive tasks using scripts.
    To understand how to use Ruby in your scripts, in most cases you can simply look at the standard help for the `ruby` command, such as `ruby -h` or `man ruby`. You can also pass arbitrary code using the `-e` option, for example:
    ```
    ruby -e 'puts "Ruby One-Liners"'
    ```

    #Ruby #OneLiners #Script #Task #Routine #Facet #RubyLinks

  2. Happy 32nd anniversary, Python! Learn 32 practical Python one-liners that show why readability, simplicity, and power still define the language today.

    More details here: ostechnix.com/32-python-one-li

    #Python #Oneliners #Anniversary #Programming #Opensource #PythonTips

  3. Happy 32nd anniversary, Python! Learn 32 practical Python one-liners that show why readability, simplicity, and power still define the language today.

    More details here: ostechnix.com/32-python-one-li

    #Python #Oneliners #Anniversary #Programming #Opensource #PythonTips

  4. FOS-0197/ICN-JUIC3

    Mistigram: this newschool #ASCIIart logo for the Oneliners door at Juice BBS was drawn by The Iconoclast and included with the Mistigris World Tour stop with Fistful of Steel in the FOS-0197 artpack collection released 29 years ago this month.

    #ASCIIArt #FOS0197 #juice #logo #newschoolAscii #oneliners #TheIconoclast

  5. @Novela

    Hashtags are Mastodon's algorithms.

    There is no corporate entity sending your post off to eyes that have been identified by them as fitting your criteria.

    Hashtags are engagement, you look for ones to follow, look for followers on hashtags, you can follow a hashtag, invent new hashtags.

    Boosting adds eyes, following adds eyes, getting followers, using hashtags adds, following tags adds.

    Try(IDK) ? #comics #OneLiners #standup #comedian #comedienne #funny #HA

  6. @Novela

    Hashtags are Mastodon's algorithms.

    There is no corporate entity sending your post off to eyes that have been identified by them as fitting your criteria.

    Hashtags are engagement, you look for ones to follow, look for followers on hashtags, you can follow a hashtag, invent new hashtags.

    Boosting adds eyes, following adds eyes, getting followers, using hashtags adds, following tags adds.

    Try(IDK) ? #comics #OneLiners #standup #comedian #comedienne #funny #HA

  7. Fun zsh / bash one liner:

    "Edit the first file mentioned in the most recent Git commit".

    Assumes you're at the repo root and that you have Neovim installed.

    alias elfilc='nvim $(git show --oneline | head -2 | tail -1 | cut -d " " -f 3 | sed "s/a\///g")'

    [v2 - hat tip to @barries for helping me see the error!]

    #zsh #bash #neovim #shell #oneliners

  8. Fun zsh / bash one liner:

    "Edit the first file mentioned in the most recent Git commit".

    Assumes you're at the repo root and that you have Neovim installed.

    alias elfilc='nvim $(git show --oneline | head -2 | tail -1 | cut -d " " -f 3 | sed "s/a\///g")'

    [v2 - hat tip to @barries for helping me see the error!]

    #zsh #bash #neovim #shell #oneliners

  9. YO, LOOK AT THIS!!!!

    rld@prometheus:~$ echo "3c4e 9ffd f962 3c00" |tr A-F a-f |tr -dc 0-9a-f |sed 's/0/    /g; s/1/   #/g; s/2/  # /g; s/3/  ##/g; s/4/ #  /g; s/5/ # #/g; s/6/ ## /g; s/7/ ###/g; s/8/#   /g; s/9/#  #/g; s/a/# # /g; s/b/# ##/g; s/c/##  /g; s/d/## #/g; s/e/### /g; s/f/####/g; s/ /  /g; s/#/##/g; s/\(................\)/\1\n/g'; echo
        ########    
      ##    ######  
    ##    ##########
    ############  ##
    ##########    ##
      ####      ##  
        ########    
    
    rld@prometheus:~$ echo "3c7e 5a7f 1b3c 5a18" |tr A-F a-f |tr -dc 0-9a-f |sed 's/0/    /g; s/1/   #/g; s/2/  # /g; s/3/  ##/g; s/4/ #  /g; s/5/ # #/g; s/6/ ## /g; s/7/ ###/g; s/8/#   /g; s/9/#  #/g; s/a/# # /g; s/b/# ##/g; s/c/##  /g; s/d/## #/g; s/e/### /g; s/f/####/g; s/ /  /g; s/#/##/g; s/\(................\)/\1\n/g'; echo
        ########    
      ############  
      ##  ####  ##  
      ##############
          ####  ####
        ########    
      ##  ####  ##  
          ####      
    
    rld@prometheus:~$ echo "0102 0488 d0e0 f0f8" |tr A-F a-f |tr -dc 0-9a-f |sed 's/0/    /g; s/1/   #/g; s/2/  # /g; s/3/  ##/g; s/4/ #  /g; s/5/ # #/g; s/6/ ## /g; s/7/ ###/g; s/8/#   /g; s/9/#  #/g; s/a/# # /g; s/b/# ##/g; s/c/##  /g; s/d/## #/g; s/e/### /g; s/f/####/g; s/ /  /g; s/#/##/g; s/\(................\)/\1\n/g'; echo
                  ##
                ##  
              ##    
    ##      ##      
    ####  ##        
    ######          
    ########        
    ##########      
    

    #uxn #sprite #sprites #bash #OneLiners

  10. YO, LOOK AT THIS!!!!

    rld@prometheus:~$ echo "3c4e 9ffd f962 3c00" |tr A-F a-f |tr -dc 0-9a-f |sed 's/0/    /g; s/1/   #/g; s/2/  # /g; s/3/  ##/g; s/4/ #  /g; s/5/ # #/g; s/6/ ## /g; s/7/ ###/g; s/8/#   /g; s/9/#  #/g; s/a/# # /g; s/b/# ##/g; s/c/##  /g; s/d/## #/g; s/e/### /g; s/f/####/g; s/ /  /g; s/#/##/g; s/\(................\)/\1\n/g'; echo
        ########    
      ##    ######  
    ##    ##########
    ############  ##
    ##########    ##
      ####      ##  
        ########    
    
    rld@prometheus:~$ echo "3c7e 5a7f 1b3c 5a18" |tr A-F a-f |tr -dc 0-9a-f |sed 's/0/    /g; s/1/   #/g; s/2/  # /g; s/3/  ##/g; s/4/ #  /g; s/5/ # #/g; s/6/ ## /g; s/7/ ###/g; s/8/#   /g; s/9/#  #/g; s/a/# # /g; s/b/# ##/g; s/c/##  /g; s/d/## #/g; s/e/### /g; s/f/####/g; s/ /  /g; s/#/##/g; s/\(................\)/\1\n/g'; echo
        ########    
      ############  
      ##  ####  ##  
      ##############
          ####  ####
        ########    
      ##  ####  ##  
          ####      
    
    rld@prometheus:~$ echo "0102 0488 d0e0 f0f8" |tr A-F a-f |tr -dc 0-9a-f |sed 's/0/    /g; s/1/   #/g; s/2/  # /g; s/3/  ##/g; s/4/ #  /g; s/5/ # #/g; s/6/ ## /g; s/7/ ###/g; s/8/#   /g; s/9/#  #/g; s/a/# # /g; s/b/# ##/g; s/c/##  /g; s/d/## #/g; s/e/### /g; s/f/####/g; s/ /  /g; s/#/##/g; s/\(................\)/\1\n/g'; echo
                  ##
                ##  
              ##    
    ##      ##      
    ####  ##        
    ######          
    ########        
    ##########      
    

    #uxn #sprite #sprites #bash #OneLiners

  11. @ChrisCPS reminded me of some of the greatest #oneliners from greatness sport casters.
    So I thought it would be fun to list some of them. Please join in and share to make the list more fun and longer .

    The game's in the refrigerator, the door's closed, the light's out, the eggs are cooling, the butter's getting hard and the jello's jiggling. Chick Hearns

    Juuuuuust a bit outside. Bob Ueker

    She. Is. Gone. Vin Scully

    It might be, it could be, it is... a home run! Harry Carry

  12. "Unix oneliners (mostly unorganized collection of bash oneliners)"

    ocv.me/doc/unix/oneliners/

  13. @raiderrobert made to be broken..
    If it aint broken, don't fix it.
    Same crap, different day.

    #oneliners

  14. Hello!

    I am pleased to announce a new version of my "Ruby One-Liners Guide" ebook. This ebook will show how to use Ruby from the command line. Includes examples for filtering and substitution features, field processing, multiple file processing, how to construct solutions that depend on multiple records and so on.

    Links:

    * Free PDF/EPUB: learnbyexample.gumroad.com/l/r

    * Web version: learnbyexample.github.io/learn

    * Markdown source, exercise solutions, etc: github.com/learnbyexample/lear

    * Short video about the book: youtu.be/nsWVepZruws

    I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

    Happy learning :)

    #ruby #oneliners #ebook

  15. Hello!

    I am pleased to announce a new version of my "Ruby One-Liners Guide" ebook. This ebook will show how to use Ruby from the command line. Includes examples for filtering and substitution features, field processing, multiple file processing, how to construct solutions that depend on multiple records and so on.

    Links:

    * Free PDF/EPUB: learnbyexample.gumroad.com/l/r

    * Web version: learnbyexample.github.io/learn

    * Markdown source, exercise solutions, etc: github.com/learnbyexample/lear

    * Short video about the book: youtu.be/nsWVepZruws

    I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

    Happy learning :)

  16. January 21 is One-Liners Day! While much of our humor is improvised and/or built over the course of an entire play, we also do one-liners including some of our favorite titles of plays - such our 2016 Star Wars commedia dell'arte parody for Cleveland ConCoction and Marcon: "Looking for Love in Alderaan Places"! 🤣

    nationaltoday.com/one-liners-d

    #OneLiners #OneLinersDay #StarWars #parody #CommediaDellArte #commedia #pun #theater #ClevelandConCoction #CleCon #Marcon #MarconOH

  17. Howling at night is the coyotes’ way of expressing their frustration with the cacti they fail to see.

    #humor #jokes #oneliners #funny #digitalart #aiart #coyote #cactus