• 0 Posts
  • 68 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle













  • TunaCowboy@lemmy.worldtoProgrammer Humor@programming.devBrace Style
    link
    fedilink
    arrow-up
    185
    arrow-down
    1
    ·
    edit-2
    2 months ago

    What if I prefer this?

    #define CURLYOPENRIGHTCLOSEDLEFTBRACKET {
    #define CURLYOPENLEFTCLOSEDRIGHTBRACKET }
    #define CURVYOPENRIGHTCLOSEDLEFTBRACKET (
    #define CURVYOPENLEFTCLOSEDRIGHTBRACKET )
    #define PERIODWITHPERIODONTOP :
    #define COMMAWITHPERIODONTOP ;
    
    int main CURVYOPENRIGHTCLOSEDLEFTBRACKET CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
      if CURVYOPENRIGHTCLOSEDLEFTBRACKET 1 CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
        asm volatile CURVYOPENRIGHTCLOSEDLEFTBRACKET
          "mov $1, %%rax\n"
          "mov $1, %%rdi\n"
          "lea message(%%rip), %%rsi\n"
          "mov $4, %%edx\n"
          "syscall\n"
          PERIODWITHPERIODONTOP
          PERIODWITHPERIODONTOP
          PERIODWITHPERIODONTOP "%rax", "%rdi", "%rsi", "%rdx"
        CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
      CURLYOPENLEFTCLOSEDRIGHTBRACKET
      return 0 COMMAWITHPERIODONTOP
    CURLYOPENLEFTCLOSEDRIGHTBRACKET
    
    asm CURVYOPENRIGHTCLOSEDLEFTBRACKET ".section .data\n"
      "message: .ascii \"wut\\n\"\n"
      ".section .text\n" CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
    



  • TunaCowboy@lemmy.worldtoLinux@lemmy.mlZed on Linux is out!
    link
    fedilink
    arrow-up
    6
    arrow-down
    13
    ·
    3 months ago

    It is worrisome that all the smug elitists are too incompetent to just leave off the pipe and review from stdout, or redirect to a file for further analysis.

    Same people will turn around and full throat the aur screaming ‘btw’ to anyone who dares look in their direction.



  • TunaCowboy@lemmy.worldtolinuxmemes@lemmy.worldTitle
    link
    fedilink
    arrow-up
    20
    arrow-down
    2
    ·
    edit-2
    3 months ago

    51 years 8 seconds

    $ systemd-analyze
    Startup finished in 2.277s (firmware) + 1.145s (loader) + 1.644s (kernel) + 3.211s (userspace) = 8.279s 
    graphical.target reached after 3.211s in userspace.
    
    $ lscpu | awk -F '  +' '/^ *M.* n/ {print $1, $2}'
    Model name: Intel(R) Core(TM) i7-3517U CPU @ 1.90GHz
    
    $ vmstat -s | awk -F '^ +' '/[0-9]* K t.* m/ {print $2}'
    3901984 K total memory