Live data from Hacker News

Ask HN: What's are your personal automations?

news.ycombinator.com

61–70 of 159 posts

Re: Ask HN: What's are your personal automations?

#61
post #40

I automated my desktop environment configuration using Docker containers. I'm able to go from a headless tty to perfectly tailored desktop environment in ~2.5 seconds. First time start requires a ~40 min build, byut thereafter ~2.5s to start afresh. https://github.com/sabrehagen/desktop-environment I did the same think for my production application environment. One command to go from no infrastructure to production g…

Does this mean your entire desktop environment is a Docker container? Or are you using the docker container to setup on the host?

No, not on the host. The containers run on the host and provide the environment. They are isolated from the host.

Re: Ask HN: What's are your personal automations?

#64
post #35

brname () { a=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) if [ -n "$a" ]; then echo " [$a]" else echo "" fi } PS1="\u@\h:\w\$(brname)$ " credit: daniel.haxx.se, https://news.ycombinator.com/item?id=25043731

You’d like https://ohmyz.sh/. This feature comes with the git plugin.

Re: Ask HN: What's are your personal automations?

#65
post #5

For myself, I automated creation of language flashcards. So I can just type a word/phrase in English, and then it will automatically fill in the target language translation, pronunciation, audio recording, and word-by-word breakdown to show what every word in a phrase means. Before I would have to use Anki, and switch back and forth between Anki and various dictionaries, and have to create my own audio recording. Jus…

How did you do that? can you show us a way ?

Re: Ask HN: What's are your personal automations?

#66

I automated my desktop environment configuration using Docker containers. I'm able to go from a headless tty to perfectly tailored desktop environment in ~2.5 seconds. First time start requires a ~40 min build, byut thereafter ~2.5s to start afresh. https://github.com/sabrehagen/desktop-environment I did the same think for my production application environment. One command to go from no infrastructure to production g…

Aaah, that’s the dream! The best part of Linux workstation is setting it up perfectly, in a way that completely blows away everything else on your personal workflows. And the worst part is doing it again.

I use mostly macOS now but I’ve been thinking about using my desktop for work now that WFH and all that, so I need to embark on the Linux journey and this looks like a great starting point.

I did try Nix once but it was hard to love.

Edit: and hey you package Notion :)

Re: Ask HN: What's are your personal automations?

#67
post #19

Almost all of my personal automations actually make my life more difficult.

That means you're doing it wrong. Unless you do it to have a hobby, in which case you're doing it right.

I'm going to assume this xkcd is relevant here: https://xkcd.com/1319/

Re: Ask HN: What's are your personal automations?

#68

https://hndigest.com/ I receive the top 100 HN links by email every week. It reduces the amount of time I visit HN. Of course this time is an exception.

If you're purely a lurker then I can see this as a win.

On the other hand, you'll be too late to get involved in any of the discussion.

It makes me a little sad that if I don't participate in comments at just the right time then I can expect that nobody will ever respond to my comments.

Re: Ask HN: What's are your personal automations?

#69
I'm pretty proud of this `getvoicerecorder.sh` script that I use to pull .wav voice recordings from my phone, convert them to .mp3, and delete the originals from the phone memory (assuming you have Android Debug Bridge adb tool installed):

    #!/bin/bash

    # On the computer
    MYHOME=$HOME
    MYDESKTOP=$HOME/Desktop
    DEST_DIR="Voice Recordings `date "+%Y-%m-%d"`"

    # On the phone
    VOICE_RECORDER_SOURCE_DIR="/sdcard/EasyVoiceRecorder"


    # 1. make the dest dir and cd into it
    cd $MYDESKTOP
    mkdir "$DEST_DIR"
    cd "$DEST_DIR"
    # list files that will be downloaded:
    echo "The following files will be adb-pulled, converted, and saved to $DEST_DIR"
    adb shell ls "$VOICE_RECORDER_SOURCE_DIR"

    # 2. PULL
    adb shell "cd $VOICE_RECORDER_SOURCE_DIR; tar -cf allwavs.tar *wav"
    adb pull $VOICE_RECORDER_SOURCE_DIR/allwavs.tar allwavs.tar

    # 3. PROCESS
    tar -xf allwavs.tar
    for f in *.wav; do
      echo "Converting $f to mp3...";
      ffmpeg -hide_banner -loglevel panic    -i "$f" "${f%.wav}.mp3";
    done
    # set timestamp to match what was on the original .wav files
    for f in *.wav; do
      gtouch -d "$(date -R -r "$f")" "${f%.wav}.mp3";
    done

    # 4. cleanup
    rm *wav
    adb shell "rm $VOICE_RECORDER_SOURCE_DIR/allwavs.tar"
    rm allwavs.tar
    echo "Deleting all .wav files from phone..."
    adb shell "rm $VOICE_RECORDER_SOURCE_DIR/*wav"

It's part of a general authoring workflow: whenever I want to write something in a conversational tone (as opposed to dry/technical/academic tone), I go for a walk-and-talk, then transcribe the dictated text + edit. Works really well for intros and conclusions in particular, and blog posts.

Re: Ask HN: What's are your personal automations?

#70
post #55

Hah I just tweeted a pic of one earlier today [1] My main one (using Integromat) loops through my unfinished Todoist tasks at each day at 00:01 and then: - If the task doesn't have a due date it adds one. For each task without a due date it adds (i + 1) days. It's a crude method but I don't often have a huge amount of tasks without due dates. - If the task is overdue it sets the due date to today and adds a "+" to th…

Might steal this one, thanks!
Post reply on HN