memchr
2
19
memchr

@lemmy.world

scan memory for a character

memchr 30 points 3 years ago

I think it's either bots or some spooky spammers that are falsely reporting the number of users. e.g. lemmy.k6qw.com currently claims to have 44k users with no posts...

path: 0 429003, hotness: undefined, score: 30, children: 7
memchr 20 points 3 years ago

spez is fediverse salesman of the year

path: 0 433233, hotness: undefined, score: 20, children: 1
memchr 11 points 3 years ago

There are many more bad instances like this in the statistics. I think it will become a problem for Lemmy sooner or later.

path: 0 429003 429038 429186, hotness: undefined, score: 11, children: 4
memchr 8 points 3 years ago
// ==UserScript==
// @name        archive.org link
// @include     *://*.google*/search*
// @include     *://*
// @exclude     *://*.archive.org*
// @exclude     *://archive.org*
// @grant       none
// @version     1.0
// @author      memchr
// @description 6/15/2023, 6:57:32 AM
// ==/UserScript==
function get_archive_href(href) {
  return "https://web.archive.org/web/" + href.replace(/^https?:\/\/www\.reddit\.com/, "https://old.reddit.com")
}

if (window.location.hostname.match(/^(\w*\.)?google.*$/)) { // google
  const results = document.querySelectorAll('div.yuRUbf > a');
  results.forEach(e => {
    let href = e.getAttribute('href');
    href = get_archive_href(href);
    let archive_link = document.createElement('a');
    archive_link.href = href;
    archive_link.textContent = "archive";
    archive_link.style.marginLeft = "10px";
    e.insertAdjacentElement("afterend", archive_link);
  })
} else if (!window.location.hostname.match(/(localhost$|^(127|192|10)\.)/)) {
  const href = get_archive_href(location.href);
  document.addEventListener('keydown', function(event) {
    if (event.ctrlKey && event.altKey && event.key === 'a') {
      window.location.href = href;
    }
  });
}

press shift+ctrl+A or click on archive if you use google.

path: 0 254701, hotness: undefined, score: 8, children: 3
memchr 7 points 3 years ago

What advantage does Discourse have over FluxBB?

path: 0 648834, hotness: undefined, score: 7, children: 0
memchr 6 points 3 years ago

digg déjà vu

path: 0 83769, hotness: undefined, score: 6, children: 0
memchr 5 points 3 years ago

You can use appending https://web.archive.org/web/ to the said reddit URL (use old.reddit.com) as a workaround. The archive team has been archiving a lot of reddit content lately.

path: 0 174534 203829, hotness: undefined, score: 5, children: 1
memchr 5 points 3 years ago

try this script

// ==UserScript==
// @name        reddit archive link
// @include     *://*.google*/search*
// @include     *://*.reddit.com/r/*
// @grant       none
// @version     1.0
// @author      memchr
// @description 6/15/2023, 6:57:32 AM
// ==/UserScript==
function get_archive_href(href) {
  return href.replace(/https:\/\/www\.reddit/,"https://web.archive.org/web/https://old.reddit");
}

if (window.location.hostname.match(/^(\w*\.)?google.*$/)) { // google
  const results = document.querySelectorAll('div.yuRUbf > a');
  results.forEach(e => {
    let href = e.getAttribute('href');
    if (href.match(/reddit\.com\/r\//)) {
      href = get_archive_href(href);
      let archive_link = document.createElement('a');
      archive_link.href = href;
      archive_link.textContent = "archive";
      archive_link.style.marginLeft = "10px";
      e.insertAdjacentElement("afterend", archive_link);
    }
  })
} else if (window.location.hostname.match(/^(\w*\.)?redd.*$/)) { // reddit shit
  const href = get_archive_href(location.href);

  const button = document.createElement('button');
  button.textContent = 'archive';
  button.style.position = 'fixed';
  button.style.bottom = '20px';
  button.style.left = '20px';
  button.style.backgroundColor = '#655CF2ff';
  button.style.color = 'white';
  button.style.zIndex = '9999';
  button.style.borderRadius = '20px';
  button.style.padding = '5px';
  document.body.appendChild(button);

  button.addEventListener('click', () => {location.replace(href)});
}

It will add a link to archive.org next to the reddit Google search result, or a blue link to archive button in the bottom left corner of a reddit page.

Script manager such as violentmonkey is required.

path: 0 171260 173718 204799, hotness: undefined, score: 5, children: 5
memchr 5 points 3 years ago path: 0 254701 270672 273407, hotness: undefined, score: 5, children: 0
memchr 4 points 3 years ago

A bit off topic:

Normally the mirrors behind the CDN would have decent speeds everywhere, e.g.

  • mirror.osbeck.com
  • arch.hu.fo
  • mirror.sunred.org

These are the top tree mirrors currently on the mirror status and they are all behind cloudflare.

path: 0 354506, hotness: undefined, score: 4, children: 0
memchr 4 points 3 years ago

yes, it's called defederation.

path: 0 429003 429038 429186 434142 435995, hotness: undefined, score: 4, children: 0
memchr 3 points 3 years ago

It would be nice to have some sort of mutually assured destruction with these mega corps.

path: 0 525236 644651, hotness: undefined, score: 3, children: 0
memchr 2 points 3 years ago

The situation has worsened. I counted about 2 million new "users" in 3 days.

path: 0 454671 496562, hotness: undefined, score: 2, children: 0
memchr 2 points 3 years ago

How did you suspend the system?

path: 0 656409, hotness: undefined, score: 2, children: 3
memchr 2 points 3 years ago

does systemctl suspend work?

path: 0 656409 688533 689138, hotness: undefined, score: 2, children: 1
memchr 1 point 3 years ago

Sure thing, mind you post some specs like output of ip a, and ip route show? And what network manager do you use?

path: 0 83904, hotness: undefined, score: 1, children: 8
memchr 1 point 3 years ago

There is also a possibility of system corruption. Can you post the output of this command as well?

_tmp=$(mktemp) && pacman -Qkk 2>&1 | grep -v '0 altered' > $_tmp && less < $_tmp
path: 0 83904 96546 101719 102697, hotness: undefined, score: 1, children: 0
memchr 1 point 3 years ago

ip a shows no interface except lo.

what is the output of lspci -v -s 05:00.0 and lspci -v -s 06:00.0?

path: 0 83904 96546 101719, hotness: undefined, score: 1, children: 4
memchr 1 point 3 years ago

You are welcome.

However, I suspect it's possibly a system corruption. So check your memory and hard drive to make sure they are OK before using your PC again.

And consider using btrfs, you can take snapshots before updating packages and restore them in case of package corruption.

path: 0 83904 96546 101719 103643 103864, hotness: undefined, score: 1, children: 1

thanks for using Leebra!

go to feed...