NostraDavid

  • 2 Posts
  • 856 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle






  • Some applications I’ve not seen yet:

    Terminal

    https://ntorga.com/gzip-bzip2-xz-zstd-7z-brotli-or-lz4/

    • lz4 - fastest compression/decompression (several GB/s); compression is good, but not amazing; very little CPU usage
    • zstd - very fast compression, fast decompression (few GB/s compression; ~600MB/s for decompression; better or equal compression compared to zip, depending on level)
    • cloc <folder> - gets lines of code for a project/folder
    • gdu <optional location> - like ncdu, but faster (written in go) - think TreeSize/WinDirStat for the terminal
    • stat <file> - built-in application to show the modified, created, etc stats for a file.
    • hyperfine - benchmark for binaries - run this in front of a command to have it run multiple times, and show some statistics.
    • jpegli - great to recompress JPEG files into smaller filesizes, with only very few/minor visual effects.
    • just - used with a Justfile in a project so I can run just to see the commands, or run just test, just clean, just ... to run project-specific commands.
    • msedit - ye olde edit.com, reborn! Feels a little bit cursed to use an MS text editor on the terminal, but it’s better for beginners than nano or micro or whatever.
    • oxipng - lossless png compression
    • pngquant - lossy png compression (it forces the file to use a palette of n colors, which reduces the colors used, so it will affect your files, unlike oxipng.
    • upx - compress binary files
    • visidata - analyses csv files, and shows some stats. Like Data Wrangler for the terminal
    • oxfmt - think “oxidized prettier” (file formatter for programmers)

    GUIs

    • Whatpulse - I’ve been tracking my keypresses since 2005. not a terminal application, unlike the rest.
    • fsearch - Linux alternative to Everything by Voidtools. It will be a little bit different, but it does the job. mlocate package, with the sudo updatedb and locate commands, if you prefer the terminal
    • keepassxc - password manager
    • speedcrunch - best GUI calculator, IMO. Just a bar for input, and a bunch of stored results above it. Use the ans variable to use the previous answer in the current calculation, like ans*2 to multiply the previous answer. Or use variables, like x=5, y=2, x+y: 7.


  • NostraDavidtoFlippanarchy@lemmy.dbzer0.comcrime is a spook
    link
    fedilink
    arrow-up
    26
    arrow-down
    1
    ·
    4 days ago

    That’s the point of government: the state has a monopoly on the legitimate use of physical force.

    That’s from “Politics as a Vocation” by Max Weber. It’s also why the population needs to beat back if that violence isn’t legitimate (i.e. it’s abusing the population in the first place).













  • I use a Justfile, so I can make a file containing local shortcuts via the just binary.

    I have created this so I can run just switch [wodan] ([] implies optionality):

    default_host := "wodan"
    
    set shell := ["bash", "-euo", "pipefail", "-c"]
    
    # Apply a host configuration immediately and persist across reboots.
    switch host:
      sudo nixos-rebuild switch --flake .#"{{host}}"
    

    By doing this, I could prepend git add . or jj status, while sticking to just switch for myself and not having to think about any pre-steps.

    https://github.com/casey/just

    I just think it’s neat.