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?
Ask HN: What's are your personal automations?
61–70 of 159 posts
Re: Ask HN: What's are your personal automations?
#62Re: Ask HN: What's are your personal automations?
#63Re: Ask HN: What's are your personal automations?
#64brname () { 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
Re: Ask HN: What's are your personal automations?
#65For 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…
Re: Ask HN: What's are your personal automations?
#66I 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…
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?
#67Almost 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.
Re: Ask HN: What's are your personal automations?
#68https://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.
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 #!/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?
#70Hah 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…