home.social

#oneliners — Public Fediverse posts

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

  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. @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

  4. @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) ?

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

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

    #oneliners

  10. 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

  11. 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

  12. तेरी ख़ामोशी से लब्ज़ बुनना आता है मुझे...

    #shayari #oneliners