Ask HN: What are you favorite tiny tools?

  • bash, AWK, sips. A couple of bash commands I use daily:

    cdf - change directory to the folder open in (Mac) Finder

      cdf () {
        currFolderPath=$( /usr/bin/osascript <<EOT
          tell application "Finder"
            try
              set currFolder to (folder of the front window as alias)
            on error
              set currFolder to (path to desktop folder as alias)
            end try
            POSIX path of currFolder
          end tell
        EOT )
        echo "cd to \"$currFolderPath\""
        cd "$currFolderPath"
      }
    
      #dlm - "dlm filename" downloads filename.mp4 from URL in clipboard until its finished, resuming if interrupted
      fname=$(pbpaste)
      echo "Download $fname as $1.mp4 : "
      until curl -C - -kLo $1.mp4 "$fname"
      do
        sleep 5
      done

  • I'm surprised no one has mentioned Alfred App https://www.alfredapp.com/

    I cannot give it enough upvotes!

  • The ‘z’ directory switching bash script is usually the first thing I miss when away from my own environment: https://github.com/rupa/z

  • Colour picker: https://sipapp.io/

    Download videos from YouTube and other sources: https://rg3.github.io/youtube-dl/ (was the only way I could get a video from the BBC site recently)

    Chrome extension for taking a screenshot of a full web page: https://chrome.google.com/webstore/detail/full-page-screen-c...

    Shameless plugs:

    Script for renaming multiple files at the same time: https://github.com/ivanmaeder/vimv

    Button in macOS Finder for creating a file in the current folder: https://github.com/ivanmaeder/finder-touch

    That last one written in AppleScript which is craaazy.

  • Avid fan of https://htmlcolorcodes.com/

    However, since a while ago if you search "HTML color picker" google brings up a built-in color picker as the first result.

  • Caffeine - http://lightheadsw.com/caffeine/

    Caffeine is a tiny program that puts an icon in the right side of your menu bar. Click it to prevent your Mac from automatically going to sleep, dimming the screen or starting screen savers. Click it again to go back. Right-click (or ⌘-click) the icon to show the menu.

  • Not precisely a tool, but YouTube channels actually have RSS feeds associated with them:

        https://www.youtube.com/feeds/videos.xml?channel_id=<channel-id>
    
    From your subscriptions page, you can even download an OPML with feeds for each channel. Most RSS will let you import this just fine.

    As I love the cli, my preferred reader is newsboat[0].

    [0]: https://newsboat.org/

  • A little alias that rewrites

        clone foo/bar
    
    into

        git clone --recursive https://github.com/foo/bar
    
    is one of my favorites.

  • Httpie - basically a nicer cUrl. Adding json and headers is super simple. https://httpie.org

    Puppeteer Recorder - tooting my own horn, but is a Chrome extension that records Puppeteer scripts. https://github.com/checkly/puppeteer-recorder

  • Video speed controller chrome extension. It lets you speed up videos on any site. I usually watch videos at 4x to 6x speed now (in addition to saving time I feel that I don't get distracted / daydream as much).

    Sadly it's like an addiction and now I even watch Netflix at 1.5X speed too (which makes it impossible to watch with family)

  • ngrok: https://ngrok.com/ expose local servers to the public internet (super helpful for building webhooks)

    grpcurl: https://github.com/fullstorydev/grpcurl awesome tools for testing gRPC services

    objective-see: https://objective-see.com/products.html tons of awesome security tools for mac, for free!

    f.lux: https://justgetflux.com/ great tool to adjust the color of your screen depending on the time of day

  • I extensively use [pngpaste](https://github.com/jcsalterego/pngpaste)

    Now I can copy any images from browsers/screenshot into any location in terminal I want

  • "paste" -- an unexpectedly useful data-wrangling tool. I used a hand-rolled version for years before discovering it was available "as standard".

  • Generic resource (mac/OsX):

    https://tinyapps.org/osx.html

    Cannot judge for Mac, but the selection of Windows little tools has traditionally been very good, the only Mac one I ever used (and it proved to work well) was WakeOnLan:

    http://www.readpixel.com/wakeonlan/

  • For me it's tmuxp (https://github.com/tmux-python/tmuxp/blob/master/README.rst). It allows to create scripts for tmux sessions. It easily shaves off about 1 to 2 minutes of my time everyday.

  • Scapple - by far my favourite brainstorming / mind mapping / thought collecting tool. I use it every day. Features are just perfect, simple and useful.

    I combine this with monosnap screenshot tool so I can drag images into notes.

    (It's from the maker of Scrivener)

  • I run https://serveo.net. Lets you expose local services through a proxy server (a la ngrok), but uses SSH as the transport, so there's nothing to install.

  • BitBar (https://github.com/matryer/bitbar)

    Allows you to create custom MacOS menubar items from the text output of any script.

  • Drafts 5 combined with workflow and Pythonista on IOS. For everything ranging from diary, personal crm, search adress/telephone number/e-mail in a given text, meeting notes and well almost anything. Very usefull combo

  • I use kickstart to manage my templates, including projects (https://github.com/Keats/kickstart/)

  • - httpie -- command line HTTP client - bat -- A cat(1) clone with wings

  • smcFanControl - makes my old '14 MBP with replaced-almost-everything tolerably warm.

    menuBUS - for easy switching between built-in audio, Bluetooth, digital output + equalizing each of them in their own ways.

    Spectacle - for window management and easy fullscreen, half-screen and whatever-part-of-screen shortcuts.

    Karabiner - for complicated hotkey rebinding and controlling those Logitech presenter sticks where clever designer put a tiny "Close presentation and exit" key right next to "Next slide".

    LICEcap - for capturing screen to GIF files for easy sharing.

  • Vanilla -- ‘hide Mac menu bar icons’ (https://matthewpalmer.net/vanilla/)

    Clocker -- ‘Menubar World Clock’

  • https://tab.bz to share lists of links to other people as one link, or just across devices that aren’t synced

  • For Mac automation I use: Keyboard Maestro, Hazel, Automator, AppleScript. Not a tiny ones, though.

  • Jumpcut — macOS menubar clipboard manager with keyboard shortcuts

    Spectacle - macOS window resizer / manager

  • Snappy - Let's you keep screenshot on-screen, annotate and so on.