mike_wooskey

joined 10 months ago
[–] [email protected] 42 points 1 week ago* (last edited 1 week ago) (1 children)

I don't code so I can't possibly audit FOSS software. However, I also can't audit proprietary software. Lots of people can and do audit FOSS software, though, and can and do share their findings. But no matter how many people "audit" propietary software, it remains propietary - a black box. Untrustable, especially considering corporations' incentives and historical actions.

[–] [email protected] 31 points 2 weeks ago (9 children)

Why are you sharing a product/service that's in maintenance mode? From the README:

Trilium is in maintenance mode - see details in #4620

I recommend TriliumNext Notes, a current and active fork.

[–] [email protected] 1 points 2 weeks ago (1 children)

It is in my .bashrc, but any delay is not noticeable.

[–] [email protected] 2 points 2 weeks ago

Starships looks very interesting! I'm going to check it out. Thanks!

[–] [email protected] 4 points 2 weeks ago (4 children)

Well, yeah, but it's git: https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh

My thinking is that I trust git on my computer, so I trust downloading from their repo.

But you're right. I should revisit this and see if it's even necessary.

[–] [email protected] 6 points 2 weeks ago* (last edited 2 weeks ago) (6 children)

Mine shows the user and host, git commit and branch, docker context and directory, color coded based on status of git:

[root@server001|G:19e526e@(master)|D:myContext|currentDir] $

## PS1 adapted from https://gist.github.com/xenji/2292341
ps1_generator() {
    # docker context inspect --format '{{ .Name }}'
    Time12h="\T"; Time12a="\@"; ShortHost="\h"; Username="\u";
    PathShort="\W"; PathFull="\w"; NewLine="\n"; Jobs="\j";
    test -f ~/.config/git-prompt.sh || \
        curl -L https://raw.github.com/git/git/master/contrib/compl
etion/git-prompt.sh \
             > ~/.config/git-prompt.sh
    source ~/.config/git-prompt.sh
    Color_Off="\[\033[0m\]"; IBlack="\[\033[0;90m\]"; BWhite="\[\03
3[1;37m\]"; BGreen="\[\033[1;32m\]";
    BIRed="\[\033[1;91m\]"; BIWhite="\[\033[1;97m\]"; BIPurple="\[\
033[1;95m\]"; BIBlue="\[\033[1;94m\]";
    GIT_PS1='$(git branch &>/dev/null;\
if [ $? -eq 0 ]; then \
  echo "$(echo `git status` | \grep "nothing to commit" > /dev/null
 2>&1; \
  DIRTY="$?"; \
  HEADREV=`git log --pretty=%h -n 1`; \
  echo -n "|G:'${BWhite}'$HEADREV"; \
  if [ "$DIRTY" -eq "0" ]; then \
    # @4 - Clean repository - nothing to commit
    echo "@'${BGreen}'"$(__git_ps1 "(%s)"); \
  else \
    # @5 - Changes to working tree
    echo "'${BIBlue}'@'${BIRed}'"$(__git_ps1 "{%s}"); \
  fi)'${Color_Off}'"; \
else \
  # @2 - Prompt when not in GIT repo
  echo ""; \
fi)'
    if docker context inspect >/dev/null 2>&1; then
        DOCKER_PS1='|D:'${BIBlue}'$(docker context inspect --format
 "{{ .Name }}")'${Color_Off}
    fi
    USER_PS1=${BIPurple}${Username}'@'${ShortHost}${Color_Off}
    PATH_PS1='|'${BWhite}${PathShort}${Color_Off}
    export PS1='['${USER_PS1}${GIT_PS1}${DOCKER_PS1}${PATH_PS1}'] $
 '
}
ps1_generator && unset -f ps1_generator
[–] [email protected] 2 points 2 weeks ago

I'm sorry for your loss. 😢🐕

[–] [email protected] 1 points 2 weeks ago

Thanks for taking a look.

7
Question about gum (lemmy.thewooskeys.com)
 

Is anyone familiar with gum?

I have a simple:

while true; do
    CHOICE=$(gum choose "one" "two" "three")
    case "$CHOICE" in
        "one")
            <do something>
        "two")
            <do something>
        "three")
            <do something>
    esac
done

If the user hits ESC, gum displays "nothing selected" and exits.

Is there a way to disable the "nothing selected"? I tried redirecting 2>/dev/null but it suppresses the entire menu. I also tried adding $'\x1b' to the case, but it did nothing.

I also tried adding:

    if [ -z "$CHOICE" ]; then
        exit 0
    fi

directly after CHOICE=$(gum choose...).

No dice.

[–] [email protected] 18 points 1 month ago
[–] [email protected] 3 points 1 month ago

I recently got a Xerox and don't hate it yet (high praise for the printer industry).

[–] [email protected] 4 points 1 month ago

That works for me, for a while. I also auto-restart the invidious container stack hourly, per their recommendation. But sooner or later it fails, and usually the fix is to recreate a token. It only takes a minute, but it's a hassle to do often.

 

Within the past couple months, I saw someone's pet-project where they were cobbling together a self-hostable FOSS app/service to allow people to collaborate on travel planning. It included note taking, images, possibly some functionality around dates, and a map to drop pins and see a route (I'm not sure which backend but I would guess OSM).

Now I can't find it. :(

Does anyone use an app like this? Does anyone have any recommendations? My needs are loose - my only requirements are a FOSS license and to be self-hostable.

Thanks for ideas/suggestions.

 

Cross-posted from "finance management software suggestions" by @mike_[email protected] in [email protected]


I used to use Quicken long ago but have been using Moneydance for many years to manage my personal finances. But Moneydance is propietary software and I prefer FOSS now. What's your preferred finance management software?

Thing I need it to do:

  • manage different accounts (common types are banks, credit cards, loans, assets)
  • have basic reporting (e.g., categorized expenses per time period)
  • preferably uses tags
  • export or copy reports or data - could be excel or csv or something that can be pasted or imported into spreadsheets
  • self-hostable with a web app

I'm not a fan of software that's budget-focused. I don't mind it having some budgeting functionality, but I don't want opinionated software to force me to manage my money a certain way. I just want felxible software to help me manage my software how I want to manage it.

I'm wary of source-available/freemium/dual-licensed/open-core licenses. It can't hurt to suggest such apps if you like them and I'll take a look, but I think it's not likely that I'll buy into that philosophy.

So what software do you use and like?

 

I used to use Quicken long ago but have been using Moneydance for many years to manage my personal finances. But Moneydance is propietary software and I prefer FOSS now. What's your preferred finance management software?

Thing I need it to do:

  • manage different accounts (common types are banks, credit cards, loans, assets)
  • have basic reporting (e.g., categorized expenses per time period)
  • preferably uses tags
  • export or copy reports or data - could be excel or csv or something that can be pasted or imported into spreadsheets
  • self-hostable with a web app

I'm not a fan of software that's budget-focused. I don't mind it having some budgeting functionality, but I don't want opinionated software to force me to manage my money a certain way. I just want felxible software to help me manage my software how I want to manage it.

I'm wary of source-available/freemium/dual-licensed/open-core licenses. It can't hurt to suggest such apps if you like them and I'll take a look, but I think it's not likely that I'll buy into that philosophy.

So what software do you use and like?

 

I requested to schedule an annual wellness exam with my doctor, they said "She's booking out into 2026, would you still like to schedule?"

They're scheduling out a YEAR in advance!

I realize this is likely a regional issue to some degree, but I have a hunch that in the US (the country I'm in) it's very difficult to get a appointments for non-urgent issues. It's also incredibly difficult in my area to be able to find a doctor that's accepting new patients!

Why can't medical facilities afford to expand to support the demand? This isn't meant to open a discussion about healthcare - it's just a rant. Grrr!

32
Wake word vanished? (lemmy.thewooskeys.com)
 

After a recent update to ESPHome, my ATOM Echos no longer show a wake word in Home Assistant and the wake word field isn't even editable:

And indeed they aren't responding to me speaking the wake word.

Has anyone encountered this? Does anyone know of a fix or has a suggestion?

13
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

I've got this command in a bash script:

TEST=$(curl -o /dev/null -s -k -w "%{http_code}" -u "${USERNAME}:${PASSWORD}" "${URL}/dashboard/")
echo "${TEST}" #debug

When the script runs, the output is "000".

When I run the same curl command from the shell, the output is "200" (which is correct, since the URL is valid).

I verified that the USERNAME, PASSWORD, and URL vars are being passed to the subshell.

I'd appreciate it if you could point out what I'm doing wrong here. :)

UPDATE: This has been solved.

10
Assistance creating a sensor (lemmy.thewooskeys.com)
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

Hi.

This works fine in the template editor:

{% if states('sensor.apollo_mtr_1_cca750_presence_target_count') | int > 0 %}
  Detected
{% elif is_state('binary_sensor.apollo_msr_2_c7bfe8_radar_zone_1_occupancy', 'on') %}
  Detected
{% elif is_state('binary_sensor.apollo_msr_2_c7bfe8_radar_zone_2_occupancy', 'on') %}
  Detected
{% elif is_state('binary_sensor.apollo_msr_2_c7bfe8_radar_zone_3_occupancy', 'on') %}
  Detected
{% else %}
  Not Detected
{% endif %}

But when I try to create a binary_sensory from it in configuration.yaml, I get "'binary_sensor' is undefined":

template:
  - binary_sensor:
    - name: "Lounge Presence"
      state: >-
        {% if states('sensor.apollo_mtr_1_cca750_presence_target_count') | int > 0 %}
          Detected
        {% elif is_state('binary_sensor.apollo_msr_2_c7bfe8_radar_zone_1_occupancy', 'on') %}
          Detected
        {% elif is_state('binary_sensor.apollo_msr_2_c7bfe8_radar_zone_2_occupancy', 'on') %}
          Detected
        {% elif is_state('binary_sensor.apollo_msr_2_c7bfe8_radar_zone_3_occupancy', 'on') %}
          Detected
        {% else %}
          Not Detected
        {% endif %}
      device_class: presence

I'm probably using incorrect syntax or something. Can anyone help me with this?

 

I host a website that uses mTLS for authentication. I created a client cert and installed it in Firefox on Linux, and when I visit the site for the first time, Firefox asks me to choose my cert and then I'm able to visit the site (and every subsequent visit to the site is successful without having to select the cert each time). This is all good.

But when I install that client cert into GrapheneOS (settings -> encryption & credentials -> install a certificate -> vpn & app user certificate), no browser app seems to recognize that it exists at all. Visiting the website from Vanadium, Fennec, or Mull browsers all return "ERR_BAD_SSL_CLIENT_AUTH_CERT" errors.

Does anyone have experience successfully using an mTLS cert in GrapheneOS?

[SOLVED] Thanks for the solution, @[email protected]

29
Layered encryption? (lemmy.thewooskeys.com)
 

If we consider information to be safe if we encrypt it (e.g., text in a file, encrypted with modern strong encryption), would it be safer (as in harder to crack) if we then encrypted the encrypted file, and encrypted the encrypted^2 file, etc.? Is this what strong encryption already does behind the scenes?

 

I got a new printer. Auto-discovered, added, and prints fine from Windows in 2 minutes. Auto discovered, added, and prints fine from OSX in 30 seconds. Auto-discovered and added on Linux, but trying to print results in "printer is unreachable at this time" - even after 50 re-installs, different configs, different drivers, different protocols.

I recognized that some computers were on different subnets, but couldn't figure out a pattern. It turns out that the printer has a setting called "Restricted Server List" and the default setting is null. Here's its description in the admin interface: "Comma-delimited list of IP addresses that are allowed to make TCP connections. Example: 157.184.0.0/24. where 0 is a wildcard and /24 is the network prefix."

It also has a setting called "Restricted Server List Options", set to block all ports by default. Here's its description: "By default, addresses not in the restricted server list will have all access blocked. When Block Printing Only is selected, addresses not in the restricted sever list will be blocked from printing only. When Block Printing and HTTP Only is selected, addresses not in the restricted server list will be blocked from printing and HTTP. "

Admin interface doesn't say this anywhere, but the default setting of no restricted servers apparently allows access from other networks, but not from the same network as the printer. I set the restricted servers to "192.168.132.0/24" and then I could access the printer admin web page and print to the printer from my Linux box, but not from any of the computers that were working before. So I set it to "192.168.0.0/16" and every computer on all subnets in my house can print and access the printer admin.

The default setting of no restricted servers was extremely non-intuitive in that it actually only restricted servers on the same subnet. And there was no such documentation.

What a crappy waste of 7 frickin' hours!

view more: next ›