run prettier (insertPragma, proseWrap, singleAttributePerLine

This commit is contained in:
Aminda Suomalainen 2024-06-19 08:27:28 +03:00
parent 5dafae9e95
commit 0b29f1e813
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
32 changed files with 177 additions and 94 deletions

View File

@ -1,3 +1,5 @@
# @format
# See https://pre-commit.com for more information
# See https://pre-commit.ci for more information
ci:

View File

@ -1,8 +1,11 @@
<!-- @format -->
# Upgrading Windows 10 to Windows 11 on unsupported systems
## WARNING
- READ FIRST: [Microsoft: Installing Windows 11 on devices that don't meet minimum system requirements](https://support.microsoft.com/windows/installing-windows-11-on-devices-that-don-t-meet-minimum-system-requirements-0b2dc4a2-5933-4ad4-9c09-ef0a331518f1)
- READ FIRST:
[Microsoft: Installing Windows 11 on devices that don't meet minimum system requirements](https://support.microsoft.com/windows/installing-windows-11-on-devices-that-don-t-meet-minimum-system-requirements-0b2dc4a2-5933-4ad4-9c09-ef0a331518f1)
This is not supported by Microsoft, most of the methods listed here didn't
work for me on the first system I updated, Windows is not my primary operating
@ -11,8 +14,8 @@ affect me.
## What works
Sedric, Tassu and Zaldaryn have no TPM or currently supported CPU, while
the health check app says they are only two to six years old.
Sedric, Tassu and Zaldaryn have no TPM or currently supported CPU, while the
health check app says they are only two to six years old.
- https://github.com/AveYo/MediaCreationTool.bat
@ -22,8 +25,8 @@ I think the first method is likely the best, but I cannot rule these working
on another system out yet. They didn't work on my first system tried.
- `00-AllowUpgradesWithUnsupportedTPMOrCPU.reg` - the official Microsoft
recommendation and the only one that should be used. If after reboot
nothing happens, maybe try the rest rebooting every failure.
recommendation and the only one that should be used. If after reboot nothing
happens, maybe try the rest rebooting every failure.
- https://support.microsoft.com/windows/windows-11-n-asentaminen-e0edbbfb-cfc5-4011-868b-2ce77ac7c70e
- `01-LabConfig.reg` - widely reported to work
- `01-Setup.reg` - ^

View File

@ -1,3 +1,5 @@
<!-- @format -->
Some kind of explaining for [IPv6.reg](IPv6.reg) like
[Windows.reg](Windows.reg) which includes this file has.

View File

@ -1 +1,3 @@
<!-- @format -->
AutoHotKey scripts, I place these to `shell:startup` as I need them.

View File

@ -1,3 +1,5 @@
<!-- @format -->
# Configuring SNTP Servers in Windows terminal
<!-- editorconfig-checker-disable -->
@ -26,15 +28,15 @@ w32tm /resync
w32tm /query /peers
```
- The list is space separated NTP servers, while I think Windows uses SNTP instead
of NTP.
- `/resync` may sync current time, but is also required for the GUI
(Windows + I, Date & time) and following command to get aware of peers.
- The list is space separated NTP servers, while I think Windows uses SNTP
instead of NTP.
- `/resync` may sync current time, but is also required for the GUI (Windows +
I, Date & time) and following command to get aware of peers.
- Shows where time is synced from and statistics.
- There is also `net time` to sync, I am unsure of the differences while
that may be blocked while the second keeps working. It may also not
show all the peers, just the primary one, while `w32tm` is more verbose
and has all of them.
that may be blocked while the second keeps working. It may also not show
all the peers, just the primary one, while `w32tm` is more verbose and has
all of them.
- As Windows doesn't support NTS and probably won't in near future, there is
no point in listing distant foreign servers.

View File

@ -1,3 +1,5 @@
/** @format */
//
// Remember to start writing at line 2. This is my second attempt at Firefox
// autoconfig after being taught by LibreAwoo, but this time I am trying to

View File

@ -1,25 +1,27 @@
<!-- @format -->
# Sway configuration
This is my `~/.config/sway/config`, and `…config.d/`. The main config contains
thinks that I have felt as essential or otherwise felt like putting there,
but as I love include directives, a lot is in the config.d.
thinks that I have felt as essential or otherwise felt like putting there, but
as I love include directives, a lot is in the config.d.
## Themes
My i3 config says that on Debian the packages are:
`sudo apt install lxappearance gtk-chtheme qt4-qtconfig qt5ct`
The source for that is marked as https://askubuntu.com/a/600946
Additionally apparently my `~/.xprofile` specifies `GTK_THEME` which
I have hoped to get get detected/understood by browsers etc, but I think
I decided to not import that to Sway which naturally doesn't read xprofile.
The source for that is marked as https://askubuntu.com/a/600946 Additionally
apparently my `~/.xprofile` specifies `GTK_THEME` which I have hoped to get
get detected/understood by browsers etc, but I think I decided to not import
that to Sway which naturally doesn't read xprofile.
Apparently Adwaita must be set to dark theme in `gnome-control-center`
### Fonts
Using the same apps and `gnome-tweaks` (as there are probably a lot of
methods setting fonts):
Using the same apps and `gnome-tweaks` (as there are probably a lot of methods
setting fonts):
- User-interface text: Noto Serif Regular 10
- Document text: Noto Serif Regular 11
@ -28,12 +30,11 @@ methods setting fonts):
- Apparently this means "apps that don't use client-side decorations"
The number behind is obviously the number and it's based on what were the
defaults before I touched them so I am hoping GNOME knows what they are
doing.
defaults before I touched them so I am hoping GNOME knows what they are doing.
Noto should have all characters, looks good enough to my eyes, I guess Serif
makes a distinguishion between letters "I" and "l", it doesn't seem to have
a Mono variant, but the Sans is close enough.
makes a distinguishion between letters "I" and "l", it doesn't seem to have a
Mono variant, but the Sans is close enough.
Where reading speed is needed, `OpenDyslexic` is nice, but some applications
have trouble handling it, e.g. mpv (makes Ä and Ö and Å all Å) and Firefox
@ -53,7 +54,8 @@ Other font settings in GNOME-Tweak:
Workarounds:
- Use VNC (see my Scripts repo [`bash/swaymirror.bash`](https://gitea.blesmrt.net/mikaela/scripts/src/branch/master/bash/swaymirror.bash))
- Use VNC (see my Scripts repo
[`bash/swaymirror.bash`](https://gitea.blesmrt.net/mikaela/scripts/src/branch/master/bash/swaymirror.bash))
- Do something weird with OBS
- Use a dedicated application that don't seem to be in Fedora repos, flatpak
or snap.

View File

@ -1,26 +1,30 @@
<!-- @format -->
# More sway configuration
`~/.config/sway/config.d/` where `*.conf` is included by my sway config.
Thus this `README.md` is not read, even if I happened to carelessly
copy-paste it in.
`~/.config/sway/config.d/` where `*.conf` is included by my sway config. Thus
this `README.md` is not read, even if I happened to carelessly copy-paste it
in.
- `autostart-communication.conf` - chat/communication apps I am expected to have
open or at least check at times
- `autostart-fineid.conf` - Finnish electric identity card, that I also use as SSH key
- `autostart-communication.conf` - chat/communication apps I am expected to
have open or at least check at times
- `autostart-fineid.conf` - Finnish electric identity card, that I also use as
SSH key
- `autostart-utilities.conf` - general utilities, like `nm-applet` or VPN etc.
- `grimshot.conf` - screenshotting keybinds using `grimshot`
- `i3-selenized-dark.conf` - selenized dark colour scheme
- `keyboard.conf` - keyboard configuration
- `media.conf` - media key configuration and autostarts related to it
- `pointer-accel.conf` - pointer/mouse configuration, mainly setting acceleration
profile to `flat`
- `pointer-accel.conf` - pointer/mouse configuration, mainly setting
acceleration profile to `flat`
- `README.md` - you are currently reading this :wink:
- `sedric.conf` - configuration specific to my laptop hostnamed `sedric`
- `swaybar.conf` - `swaybar` configuration
- `swayidle.conf` - `swayidle` configuration/autostart
- `wlsunset-kotka.conf` - `wlsunset` configuration/autostart for my hometown for when
I happen to visit for longer period of time
- `wlsunset-lauttasaari.conf` - `wlsunset` configuration for my home neighbourhood
- `wlsunset-kotka.conf` - `wlsunset` configuration/autostart for my hometown
for when I happen to visit for longer period of time
- `wlsunset-lauttasaari.conf` - `wlsunset` configuration for my home
neighbourhood
- `zz-floating.conf` - configures windows that should float. For some reason
that is inherited from my `i3` config, it tells to put float rules above the
last line, so it should be read last and `z` is the last letter of English

View File

@ -1,4 +1,8 @@
/* Originally based upon, but heavily modified from https://github.com/jan-warchol/selenized/blob/master/other-apps/wofi/selenized-dark.css */
/**
* Originally based upon, but heavily modified from https://github.com/jan-warchol/selenized/blob/master/other-apps/wofi/selenized-dark.css
*
* @format
*/
* {
border: none;

View File

@ -1,3 +1,5 @@
<!-- @format -->
# Chrony config files
For some reason Debian package for Chrony doesn't include other config files
@ -13,10 +15,10 @@ Refer to ../../Windows/time/README.md
## Other random notes
On pools, the default maxsources is 4 and pools would be resolved until
there would be 4 names while the documentation for Telia and Snopyta says
they have only 3. Cloudflare again resolves to two per IP version, so I
assume that means 2.
On pools, the default maxsources is 4 and pools would be resolved until there
would be 4 names while the documentation for Telia and Snopyta says they have
only 3. Cloudflare again resolves to two per IP version, so I assume that
means 2.
## Commands of interest:
@ -47,8 +49,10 @@ Checking that something has NTS?
nmap -p 4460 -Pn ntp.example.net
```
In [GitHub user jauderho's curated NTS list](https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d)
user [cadusilva suggests this command instead](https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d?permalink_comment_id=4192632#gistcomment-4192632):
In
[GitHub user jauderho's curated NTS list](https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d)
user
[cadusilva suggests this command instead](https://gist.github.com/jauderho/2ad0d441760fc5ed69d8d4e2d6b35f8d?permalink_comment_id=4192632#gistcomment-4192632):
```'
chronyd -Q -t 3 'server NTP_SERVER_HERE iburst nts maxsamples 1'

View File

@ -1,7 +1,9 @@
<!-- @format -->
# dnf protected packages
In normal operation, packages listed here will not be removed by dnf even
when told it to do so.
In normal operation, packages listed here will not be removed by dnf even when
told it to do so.
<!-- editorconfig-checker-disable -->
<!-- prettier-ignore-start -->

View File

@ -1,3 +1,5 @@
<!-- @format -->
My dracut configuration files mainly for generating unified kerneil images
(uki).

View File

@ -16,6 +16,12 @@
<user v='Mikaela' />
<!-- Folding Slots -->
<slot id='0' type='CPU' />
<slot id='1' type='GPU' />
<slot
id='0'
type='CPU'
/>
<slot
id='1'
type='GPU'
/>
</config>

View File

@ -1,3 +1,5 @@
<!-- @format -->
# `/etc/hosts`
This file is DNS before DNS and legacy remain which is still used.
@ -27,16 +29,15 @@ Hosts that I dislike enough to mention in my `hosts` file.
## `dns`
This began from question why should I have DNS to have DNS, but having it
on DNS resolver level broke DNSSEC due to my weird mixing of systemd-resolved
and Unbound, so now it's something I can attempt to `/etc/hosts`.
This began from question why should I have DNS to have DNS, but having it on
DNS resolver level broke DNSSEC due to my weird mixing of systemd-resolved and
Unbound, so now it's something I can attempt to `/etc/hosts`.
**_EXCERCISE CAUTION!_**
## `hostname`
As can be seen in `hosts.debian`, Debian specifies hostname in format
such as:
As can be seen in `hosts.debian`, Debian specifies hostname in format such as:
```
::1 localhost

View File

@ -1,3 +1,5 @@
<!-- @format -->
Useful nginx files that I will probably need and which I will forget if I
cannot read them from here.
@ -7,18 +9,20 @@ cannot read them from here.
These files may age badly, so here are some hopefully timeless pointers:
- Generate the config file with https://ssl-config.mozilla.org/ (and if
time eats it, try https://github.com/mozilla/ssl-config-generator/ in
hope of finding where it is now. \* Name it 00-something so it will be the first file read and make
everything a different file.
- Generate the config file with https://ssl-config.mozilla.org/ (and if time
eats it, try https://github.com/mozilla/ssl-config-generator/ in hope of
finding where it is now. \* Name it 00-something so it will be the first
file read and make everything a different file.
- If using my acmesh-ssl.bash script, the files to fill should be like:
(the script runs `$ACMESH --key-file $NGINXDIR/key.pem --fullchain-file $NGINXDIR/cert.pem --reloadcmd "$SYSTEMCTLRESTART nginx"`)
(the script runs
`$ACMESH --key-file $NGINXDIR/key.pem --fullchain-file $NGINXDIR/cert.pem --reloadcmd "$SYSTEMCTLRESTART nginx"`)
- `ssl_certificate`, `ssl_trusted_certificate` are `cert.pem`
- `ssl_certificate_key` is `key.pem`
The header syntax is following, **_THIS LIKELY WON'T TIME WELL, ESPECIALLY CSP_**
The header syntax is following, **_THIS LIKELY WON'T TIME WELL, ESPECIALLY
CSP_**
```
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;

View File

@ -1,3 +1,5 @@
<!-- @format -->
# Chromium recommended policies
- https://chromeenterprise.google/policies/
@ -25,7 +27,8 @@
## `brave-search.json`
Sets and displays recommendation on the use of search.brave.com as a search engine by default.
Sets and displays recommendation on the use of search.brave.com as a search
engine by default.
## `disable-default-browser-check.json`
@ -34,16 +37,18 @@ suggested policy, allows the user to set as default in browser settings.
## `duckduckgo.json`
Sets and displays recommendation on the use of start.duckduckgo.com as a search engine by default.
Sets and displays recommendation on the use of start.duckduckgo.com as a
search engine by default.
## `ecosia.json`
Sets and displays recommendation on the use of Ecosia as a search engine by default.
Sets and displays recommendation on the use of Ecosia as a search engine by
default.
## `enable-google-safebrowsing.json`
Enforces Google Safe Browsing in standard mode. For advanced mode and
sending data to Google, increase to 2 or see the sample below.
Enforces Google Safe Browsing in standard mode. For advanced mode and sending
data to Google, increase to 2 or see the sample below.
## `enable-google-safebrowsing-less-private.json.sample`

View File

@ -1,15 +1,18 @@
<!-- @format -->
Central configuration for PKCS#11 plugin using software and smartcards.
- https://digisaatio.fi/wiki/P11-kit
- https://www.systutorials.com/docs/linux/man/5-pkcs11.conf/
Remember also [my FINEID notes in the gist/ repo](https://gitea.blesmrt.net/mikaela/gist/src/branch/master/fineid)
Remember also
[my FINEID notes in the gist/ repo](https://gitea.blesmrt.net/mikaela/gist/src/branch/master/fineid)
## libcryptoki.module
According to the manual (2nd link) the full path shouldn't be required,
but the 1st link disagrees and works for me, so thus `module: /usr/lib64/libcryptoki.so`
instead of `module: libcryptoki.so`.
According to the manual (2nd link) the full path shouldn't be required, but
the 1st link disagrees and works for me, so thus
`module: /usr/lib64/libcryptoki.so` instead of `module: libcryptoki.so`.
Additionally the DVV card reader software does the management, so
`managed: no`.

View File

@ -1,5 +1,8 @@
<!-- @format -->
Fedora & SailfishOS: drop `.pem` files of root certificates here and
`sudo update-ca-trust`.
Debian & co: drop `.crt` to `/usr/local/share/ca-certificates/extra/`
(create if doesn't exist, `/extra/` may be anything) and run `sudo update-ca-certificates`
Debian & co: drop `.crt` to `/usr/local/share/ca-certificates/extra/` (create
if doesn't exist, `/extra/` may be anything) and run
`sudo update-ca-certificates`

View File

@ -1,3 +1,5 @@
<!-- @format -->
`sshd_config` should include something like
```

View File

@ -1,2 +1,4 @@
<!-- @format -->
The names may not contain a dot, the RHEL sudo is wheel (not to be confused
with Debian's passwordless sudo) and the proper permissions are 0400.

View File

@ -1,2 +1,4 @@
This file contains questionable choices and options which may be deprecated
or otherwise not so good ideas.
<!-- @format -->
This file contains questionable choices and options which may be deprecated or
otherwise not so good ideas.

View File

@ -1,9 +1,11 @@
<!-- @format -->
The IPv6 files are copied from
https://www.reddit.com/r/raspberry_pi/comments/14vcpz/rpi_as_an_ipv6_router_using_a_sixxs_tunnel_and/
and they are here because they were my biggest difficulty with having Arch
on Pi as IPv6 router. \* Also helpful
and they are here because they were my biggest difficulty with having Arch on
Pi as IPv6 router. \* Also helpful
https://wiki.archlinux.org/index.php/IPv6_tunnel_broker_setup
Miredo.service again is edited from what Arch & Debian ship so it starts
after there is already network connectivity and Unbound is running
so it won't start complaining about name resolution errors.
Miredo.service again is edited from what Arch & Debian ship so it starts after
there is already network connectivity and Unbound is running so it won't start
complaining about name resolution errors.

View File

@ -1,6 +1,8 @@
Services in this directory are meant for my Jolla Phone which runs
Sailfish OS. It doesn't have cron, so I tried the nearest equivalent
that is there out-of-box, systemd timers.
<!-- @format -->
Services in this directory are meant for my Jolla Phone which runs Sailfish
OS. It doesn't have cron, so I tried the nearest equivalent that is there
out-of-box, systemd timers.
- aliendalvik-stopper again stops android support hourly so it won't waste
battery.

View File

@ -1,3 +1,5 @@
<!-- @format -->
# systemd unit overrides
These are meant to be in `/etc/systemd/system/whatever.service.d/` and thus

View File

@ -1 +1,3 @@
<!-- @format -->
https://gitea.blesmrt.net/mikaela/scripts/src/branch/master/bash/deprecated/ydns6

View File

@ -1,8 +1,10 @@
<!-- @format -->
# systemd-timesyncd source configuration
For more information about the time servers, refer to their websites or
`../../chrony/sources.d` which comes with more detailed comments. Chrony
is my preferred NTP client/server, but SteamOS happens to come with
`../../chrony/sources.d` which comes with more detailed comments. Chrony is my
preferred NTP client/server, but SteamOS happens to come with
systemd-timesyncd enabled and using the pool.ntp.org, so I had to revive this
at least partially.

View File

@ -1,7 +1,10 @@
<!-- @format -->
`~/.config/systemd/user`
To enable lingering
`sudo loginctl enable-linger username` or if it doesn't work, `sudo touch /var/lib/systemd/linger/username`
`sudo loginctl enable-linger username` or if it doesn't work,
`sudo touch /var/lib/systemd/linger/username`
https://wiki.archlinux.org/index.php/Systemd/User will be a big help

View File

@ -1,2 +1,4 @@
Fedora uses this directory and this may be suitable for (Fedora) systems
with a single Tor instance without NonAnonymousMode (FDE so not needed).
<!-- @format -->
Fedora uses this directory and this may be suitable for (Fedora) systems with
a single Tor instance without NonAnonymousMode (FDE so not needed).

View File

@ -1,3 +1,5 @@
<!-- @format -->
# PipeWire notes
<!-- editorconfig-checker-disable -->
@ -28,8 +30,8 @@ one from `alsamixer` is enough to fix it.
In `alsamixer` having it as pro-audio exposes the sound card in F6 known as
_Logitech USB Headset_ and there I see two siliders, _Headphone_ and _Mic_,
_Headphone_ can apparently be 100 and _Mic_ muted when not in use to avoid
it echoing back.
_Headphone_ can apparently be 100 and _Mic_ muted when not in use to avoid it
echoing back.
---
@ -43,8 +45,8 @@ The old pulseaudio fix for less than 20 % volume being unhearable is editing
from #pipewire on freenode which has public logging according to the title.
The `api.alsa.soft-mixer = true` may be nicer as the volume is a lot less,
77 % is well audible on USB headset and even 100 % isn't too loud. External
The `api.alsa.soft-mixer = true` may be nicer as the volume is a lot less, 77
% is well audible on USB headset and even 100 % isn't too loud. External
speakers with subwoofer again work as usual.
2021-06-14: the above solution is wrong and outdated, the files mentioned
@ -53,7 +55,8 @@ don't exist by default anymore, they need to be copied and edited separately
See also:
- https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1220
- marked as duplicate of: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/207
- marked as duplicate of:
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/207
## Bluetooth

View File

@ -1,8 +1,10 @@
<!-- @format -->
# yum/dnf repositories
This directory is still read by `dnf` and contains files for repositories
that I appear to end up adding on every system that aren't as clear to add
as the links below.
This directory is still read by `dnf` and contains files for repositories that
I appear to end up adding on every system that aren't as clear to add as the
links below.
## Additional repositories

2
pnpm-lock.yaml vendored
View File

@ -1,3 +1,5 @@
# @format
lockfileVersion: "9.0"
settings:

View File

@ -1,4 +1,6 @@
<!-- @format -->
# User crontabs
Don't edit these directly, use `crontab -e` instead! And also consider
making a systemd service instead!
Don't edit these directly, use `crontab -e` instead! And also consider making
a systemd service instead!