10655

@git #10655

https://github.com/o-az — https://x.com/awkroot
3241 Follower 197 Following
I think I figured out how to defeat metamask spam replies on x, specifically for org accounts

Based on my test, I can post "my metamask wallet is hacked. I need help" and get 0 metamask spam replies
when you pass `--allow-read` w/o passing any file paths you're giving access to all files

you can do `--allow-read=foo.txt`
you can also do `--allow-read=/foo --deny-read=/foo/bar`

same applies for `--allow-write`

all `--allow-*` & `--deny-*` flags work the this way too
/dev
Most outages are caused by configuration bugs, not code bugs. So when you think about it, it's kind of crazy that we don't write tests for our configuration files

study postmortems
/dev
I used to be more active on /backend but decided to only post in /dev for anything non-frontend
surprised the /zyn channel is not very active. If you know your zyns I have a few questions please
proton is all talk and all action. Everything they do lately is a green flag

- switching to non-profit structure
https://proton.me/blog/proton-non-profit-foundation

all apps are open source
- https://proton.me/community/open-source
Me too brother

I keep telling myself to pickup 🎱 again. I played it daily for years
/dev
when onboarding new users, don't just copy other successful projects

Like how ethermail is copying onboarding of social apps. It requires you subscribe to 3 mail letters in order to proceed. Why would an email service force you to subscribe to spam before creating an account?
nothing ruins the vibes more than docs that over promise and example source code that underdeliver

understand this:

- it's better to not document a feature at all than to half ass docs,
- if your the docs link to examples that don't work, you failed,
- the examples should be runnable as a standalone,
- more below
/dev
when people complain about the JavaScript ecosystem, send them this

along with a volume of all the lawsuits filed against each other in the WordPress (PHP) ecosystem
/dev
What I shipped this week

1. My first frame
- adding a join button in the /chick-fil-a channel
you need to react to `localStorage` changes

attach an event listener to `storage` event: `window.addEventListener('storage', event => {})`

this doesn't work on the same browsing context. `localStorage.setItem(...)` won't be listened to

solution: dispatch `StorageEvent` synthetically with `window.dispatchEvent`
meh. You don't have to use all the tech or write in all functions variations

You can still use 1 index.html file for your website
You can still use XMLHttpRequest

Basically you can still do things exactly the same way you did them back when JavaScript "was simple"
im okay with this
/dev
the channel owner removed the cast from the channel or how does this work?
mad props to docs that indicate the version in which a given feature was added

example: Node.js
/dev
other Finder alternatives

QSpace - have used. Can recommend https://qspace.awehunt.com

Xplorer - never used. OSS https://xplorer.space

Transmit 5 - have used, my go to SFTP GUI client. Can also be used as a file explorer https://panic.com/transmit

Marta - never used https://marta.sh
speaking of macOS files and folders and open source software, does anyone use file explorer that's not Finder?

Spacedrive looks promising but too beta for me. The nice thing about it is it works on macOS, Linux and Windows

https://spacedrive.com
/dev
elite quality framework-agnostic db migration tool. Works with all the good databases

Have used this extensively. Love it

https://github.com/amacneil/dbmate
/dev
pro tip

to update all extensions to latest on chromium-based browsers

go to `chrome://extensions`
enable "Developer mode"
hit "Update"

if you don't enable dev mode, it only updates when you fully restart the browser
TIL on macOS

mkdir ~/Developer (it has a fancy icon in finder)
/dev
resharing this insanely useful extension because it's that good

https://dub.sh/visbug

you can play with it here before installing https://visbug.web.app
prevent usage of the wrong package manager

`npm_config_yes=true`: auto-accept npx pkg install prompt

`--no-package-lock=true`: some npm versions automatically create package-lock.json file even if the command fails
/dev
Doing a chick-fil-a meal giveaway for the best chick-fil-a food pic

winner will be selected this week