avidamoeba

joined 2 years ago
[–] avidamoeba@lemmy.ca 2 points 1 month ago

That's a nice summary of some of the mental gymnastics going on!

[–] avidamoeba@lemmy.ca 7 points 1 month ago

Jerry, is this you?

[–] avidamoeba@lemmy.ca 32 points 1 month ago* (last edited 1 month ago) (9 children)

Specifically pretend-progressive idiots, for whom progess is great when it's for their approved groups.

[–] avidamoeba@lemmy.ca 21 points 1 month ago

Nah, just have him say what he thinks about Palestinians and muslims. The rest follows.

[–] avidamoeba@lemmy.ca 3 points 1 month ago* (last edited 1 month ago) (1 children)

It's a simple matter of fact that many if not most of us, at least in NA have started with the default lib programming. There clearly is a path through deprogramming that creates likeminded people who then support people like Zohran. Playing the word gymnastics like Mamdani does enables libs to take on some of these ideas instead of rejecting all of them because of one thought-terminating slogan. That puts them on the deprogramming path. I don't think this contradicts any long-term leftist goals.

[–] avidamoeba@lemmy.ca 3 points 1 month ago (1 children)

I don't think we're doing that. We can critique our own and we should. We should do a lot more of this before a candidate is locked in for an election. That doesn't mean we don't vote for those candidates at the election. I think almost anyone here who lives in NYC would vote for Zohran.

[–] avidamoeba@lemmy.ca 5 points 1 month ago (1 children)

He has to. Otherwise he's got no path to office. That said the status quo has moved enough to make criticizing Israel a net positive among D electorate.

[–] avidamoeba@lemmy.ca 3 points 1 month ago

Verified here wirh "us states with letter d"

[–] avidamoeba@lemmy.ca 10 points 1 month ago* (last edited 1 month ago)

Ah yeah, if you cast a wider timeline net then there's defibitely been praise for killing Palestinian politicians.

[–] avidamoeba@lemmy.ca 5 points 1 month ago (3 children)

Yeah but to complete the square, there has to be praise for the murder of Palestinian politicians. I assume that's about the strike in Doha and a brief search only shows them "being concerned" over it, not praising it. Of course it's a meme so there's no point litigating the accuracy to the T. I'm sure things aren't the same behind closed doors. But if there's a src for the lib praising Palestinian politicians' deaths that would be helpful.

[–] avidamoeba@lemmy.ca 4 points 1 month ago* (last edited 1 month ago) (2 children)
0 4   *   *   *    /usr/sbin/reboot

Adjust interval as needed.

Or if you want something a bit faster and less disruptive:

#!/bin/sh

NAME="$0"

logger_cmd () {
  echo $@
  logger -p daemon.info -t "$NAME[$$]" $@
}

if ! which ncat 1>/dev/null
then
  logger_cmd "ncat not found, installing..."
  opkg update && opkg install ncat
fi

chk_conn () {
  echo "Checking connectivity to $@"
  if ncat --send-only --recv-only -w 334ms $@ 2>/dev/null; then
    return 0
  fi

  logger_cmd "Cannot reach $@"
  return 1
}

restart_network_iface() {
    # TODO: Don't restart every minute

    COOLDOWN_LOCK=/tmp/internet-connectivity-watchcat.tmp
    COOLDOWN_SECONDS=300

    cooldown_time_end=$(cat $COOLDOWN_LOCK || echo 0)

    time_now="$(cat /proc/uptime)"
    time_now="${time_now%%.*}"

    cooldown_time_left=$((cooldown_time_end - time_now))

    if [ "$cooldown_time_left" -lt "1" ]
    then
        logger_cmd "Restarting network interface: \"$1\"."
        ifdown "$1"
        ifup "$1"

        cooldown_time_end=$((time_now + COOLDOWN_SECONDS))
        echo $cooldown_time_end > $COOLDOWN_LOCK
    else
        logger_cmd "Skipping interface \"$1\" restart due to cooldown. Cooldown left: $cooldown_time_left seconds"
    fi
}


logger_cmd "Checking internet connectivity..."

if   chk_conn google.com 443 \
  || chk_conn amazon.com 443 \
  || chk_conn facebook.com 443 \
  || chk_conn cloudflare.com 443 \
  || chk_conn telekom.de 443
then
  logger_cmd "Connected to internet."
else
  logger_cmd  "Not connected to internet."
  restart_network_iface "$1"
fi

In restart_network_iface use /usr/sbin/reboot instead of interface up/down and run the script every few minutes via cron or systemd timer. This was written for OpenWrt so if you use that you can use it as-is. For other systems you'd also have to adjust the logger_cmd.

You can place that on another machine and send a signal to a smart plug instead if you're worried of a locked up / frozen router. That said if your router freezes like that, you should probably change it and you should be able to run this script on it.

[–] avidamoeba@lemmy.ca 14 points 1 month ago

Yeah, it's a very well done vid that mom and pop can understand.

view more: ‹ prev next ›