Compare commits

..

10 Commits

Author SHA1 Message Date
ae471c224b
aminda-duperemove.service: fix path to the binary 2024-05-20 21:15:23 +03:00
1af8de8186
systemd/aminda-duperemove.service: add /usr/local/bin
It's mostly filled with my scripts repo and has duplicates since the symlinks turn into duplicate files instead of staying as symlinks. Not that I expect it to affect much.
2024-05-20 21:11:32 +03:00
0d02542f4c
if .local/firefox/defaults/pref doesn't exist, there is no need to create it or files there 2024-05-20 20:27:13 +03:00
3ff87045a3
install: remove mystery if that seems to move itself into itself? 2024-05-20 20:22:34 +03:00
a00bd7ae42
firefox: clear app.update.download.attempts 2024-05-20 19:48:12 +03:00
73ff0cbcf0
{firefox,chromium}: ask for download directory to make drive-by attempts more obvious 2024-05-20 19:42:19 +03:00
f0a7657d47
chromium: rm disable-incognito.json.badidea
I just tried disabling it and then searching for the difference between it and guest mode and it was so full of ads without even the option to allow my usual extensions
2024-05-20 19:35:20 +03:00
dfa77e7d69
add prettier 2024-05-20 18:31:43 +03:00
0597b4f359
{firefox,chromium}: add PrivacyGuides recommended LegitimateURLShortener.txt 2024-05-20 18:22:29 +03:00
e2188d25f8
{firefox,chromium}: further cut/adjust default allowlists 2024-05-20 18:20:23 +03:00
14 changed files with 123 additions and 56 deletions

3
.gitattributes vendored
View File

@ -75,3 +75,6 @@ LICENSE text lockable
CITATION.cff text lockable
# NOTE! .gitattributes doesn't support the case-insensitive style above!
package.json text linguist-vendored
pnpm-lock.yaml text linguist-vendored

5
.gitignore vendored
View File

@ -12,6 +12,8 @@
!.mikaela
!.mikaela_install
!.pre-commit-config.yaml
!.prettierignore
!.prettierrc
!.reuse
# Certificates (unlikely to happen, but better safe than sorry)
@ -20,3 +22,6 @@
# Symlinks
install.run
LICENSE
node_modules/

View File

@ -18,10 +18,11 @@ mkdir -p ~/.ssh
cat .mikaela/keys/authorized_keys >~/.ssh/authorized_keys
cat etc/ssh/ssh_config >~/.ssh/config
cat .editorconfig >~/.editorconfig
mkdir -p ~/.local/firefox/defaults/pref/
cat conf/autoconfig.js >~/.local/firefox/defaults/pref/autoconfig.js
#cat conf/librewolf.overrides.cfg >~/.local/firefox/librewolf.overrides.cfg
cat conf/firefox-forbidden-policies.js >~/.local/firefox/firefox-forbidden-policies.js
if [ -d ~/.local/firefox/defaults/pref/ ]; then
cat conf/autoconfig.js >~/.local/firefox/defaults/pref/autoconfig.js
#cat conf/librewolf.overrides.cfg >~/.local/firefox/librewolf.overrides.cfg
cat conf/firefox-forbidden-policies.js >~/.local/firefox/firefox-forbidden-policies.js
fi
#cat conf/librewolf.overrides.cfg >~/public_html/autoconfig.js
cat conf/firefox-forbidden-policies.js >~/public_html/autoconfig.js
mkdir -p ~/.librewolf/ ~/.var/app/io.gitlab.librewolf-community/.librewolf/

0
.prettierignore Normal file
View File

0
.prettierrc Normal file
View File

View File

@ -19,9 +19,12 @@
"jid1-MnnxcxisBPnSXQ@jetpack": {
"checkForDNTPolicy": true,
"disabledSites": [
"cloudflare.com",
"challenges.cloudflare.com",
"chrome-extension-scheme",
"ecosia.org",
"keyoxide.org"
"keyoxide.org",
"moz-extension-scheme",
"research.cloudflare.com"
],
"learnInIncognito": true,
"learnLocally": true,
@ -36,26 +39,13 @@
"uBlock0@raymondhill.net": {
"toAdd": {
"trustedSiteDirectives": [
"azure.com",
"bittimittari.fi",
"chrome-extension-scheme",
"cloudflare.com",
"disroot.org",
"challenges.cloudflare.com",
"duckduckgo.com",
"ecosia.org",
"element.io",
"google",
"google.com",
"keyoxide.org",
"live.com",
"matrix.org",
"microsoft.com",
"microsoft365.com",
"microsoftonline.com",
"moz-extension-scheme",
"office.com",
"one.one",
"pikaviestin.fi"
"research.cloudflare.com"
]
},
"toOverwrite": {
@ -78,7 +68,8 @@
"ublock-cookies-easylist",
"adguard-cookies",
"ublock-cookies-adguard",
"ublock-quick-fixes"
"ublock-quick-fixes",
"https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt"
]
}
}
@ -237,6 +228,10 @@
"Enabled": true
},
"Preferences": {
"app.update.download.attempts": {
"Comment": "If this is what it looks like, it will stop the prompts to download Firefox manually.",
"Status": "clear"
},
"autoadmin.failover_to_cached": {
"Comment": "Preference not allowed for stability reasons. :(",
"Status": "locked",
@ -706,6 +701,7 @@
"Value": 1
}
},
"PromptForDownloadLocation": true,
"SearchEngines": {
"Add": [
{
@ -763,6 +759,7 @@
"Fujitsu mPollux DigiSignApplication": "/usr/lib64/libcryptoki.so"
}
},
"ShowHomeButton": true
"ShowHomeButton": true,
"StartDownloadsInTempDirectory": true
}
}

View File

@ -29,7 +29,6 @@
- [`disable-brave-tor.json`](#disable-brave-torjson)
- [`disable-brave-vpn.json`](#disable-brave-vpnjson)
- [`disable-floc.json`](#disable-flocjson)
- [`disable-incognito.json.badidea`](#disable-incognitojsonbadidea)
- [`doh-adguard-dns0.json`](#doh-adguard-dns0json)
- [`dph-adguard.json`](#dph-adguardjson)
- [`doh-adguard-unfiltered.json`](#doh-adguard-unfilteredjson)
@ -209,10 +208,6 @@ Disables floc or ad topics that are against privacy.
- https://start.duckduckgo.com/?q=google+floc+privacy+topics
## `disable-incognito.json.badidea`
Disables incognito mode. I don't recommend this.
## `doh-adguard-dns0.json`
## `dph-adguard.json`

View File

@ -10,26 +10,13 @@
"cjpalhdlnbpafiamejdnhcphjbkeiagm": {
"toAdd": {
"trustedSiteDirectives": [
"azure.com",
"bittimittari.fi",
"chrome-extension-scheme",
"cloudflare.com",
"disroot.org",
"challenges.cloudflare.com",
"duckduckgo.com",
"ecosia.org",
"element.io",
"google",
"google.com",
"keyoxide.org",
"live.com",
"matrix.org",
"microsoft.com",
"microsoft365.com",
"microsoftonline.com",
"moz-extension-scheme",
"office.com",
"one.one",
"pikaviestin.fi"
"research.cloudflare.com"
]
},
"toOverwrite": {
@ -52,7 +39,8 @@
"ublock-cookies-easylist",
"adguard-cookies",
"ublock-cookies-adguard",
"ublock-quick-fixes"
"ublock-quick-fixes",
"https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt"
]
}
},
@ -73,9 +61,12 @@
"pkehgijcmpdhfbdbbnkijodmdjhbjlgp": {
"checkForDNTPolicy": true,
"disabledSites": [
"cloudflare.com",
"challenges.cloudflare.com",
"chrome-extension-scheme",
"ecosia.org",
"keyoxide.org"
"keyoxide.org",
"moz-extension-scheme",
"research.cloudflare.com"
],
"learnInIncognito": true,
"learnLocally": true,

View File

@ -0,0 +1,4 @@
{
"DownloadRestrictions": 4,
"PromptForDownloadLocation": true
}

View File

@ -1,3 +0,0 @@
{
"IncognitoModeAvailability": "Disabled"
}

View File

@ -4,9 +4,10 @@ Description=Aminda's deduplication service
[Service]
Type=oneshot
TimeoutStartSec=infinity
ExecStart=-/usr/sbin/duperemove -rdhq --hashfile=/root/home.hash /home
ExecStart=-/usr/sbin/duperemove -rdhq --hashfile=/root/flatpak.hash /var/lib/flatpak
ExecStart=-/usr/sbin/duperemove -rdhq --hashfile=/root/snap.hash /var/lib/snapd
ExecStart=-/usr/bin/duperemove -rdhq --hashfile=/root/home.hash /home
ExecStart=-/usr/bin/duperemove -rdhq --hashfile=/root/usr-local-bin.hash /usr/local/bin
ExecStart=-/usr/bin/duperemove -rdhq --hashfile=/root/flatpak.hash /var/lib/flatpak
ExecStart=-/usr/bin/duperemove -rdhq --hashfile=/root/snap.hash /var/lib/snapd
User=root
StandardOutput=journal
StandardError=journal

View File

@ -55,10 +55,6 @@ if hash pre-commit 2>/dev/null; then
pre-commit gc
fi
if [ -f $HOME/.MIKAELAGREP ]; then
mv $HOME/.MIKAELAGREP $MIKAELA_GREP
fi
if [ -f "$MIKAELA_GREP" ]; then
bash -x .mikaela_install
fi

7
package.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"devDependencies": {
"prettier": "3.2.5",
"prettier-plugin-nginx": "1.0.3",
"prettier-plugin-toml": "2.0.1"
}
}

70
pnpm-lock.yaml generated vendored Normal file
View File

@ -0,0 +1,70 @@
lockfileVersion: "9.0"
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
prettier:
specifier: 3.2.5
version: 3.2.5
prettier-plugin-nginx:
specifier: 1.0.3
version: 1.0.3
prettier-plugin-toml:
specifier: 2.0.1
version: 2.0.1(prettier@3.2.5)
packages:
"@taplo/core@0.1.1":
resolution:
{
integrity: sha512-BG/zLGf5wiNXGEVPvUAAX/4ilB3PwDUY2o0MV0y47mZbDZ9ad9UK/cIQsILat3bqbPJsALVbU6k3cskNZ3vAQg==,
}
"@taplo/lib@0.4.0-alpha.2":
resolution:
{
integrity: sha512-DV/Re3DPVY+BhBtLZ3dmP4mP6YMLSsgq9qGLXwOV38lvNF/fBlgvQswzlXmzCEefL/3q2eMoefZpOI/+GLuCNA==,
}
prettier-plugin-nginx@1.0.3:
resolution:
{
integrity: sha512-vV5q85s8XnV6NEgvz1gVLfZhmxAxY03MyOYj2ApBpjFkbs00lRsRkTmqO9L39ADuD18z1RRCcfZ3eVxKhI/nqg==,
}
prettier-plugin-toml@2.0.1:
resolution:
{
integrity: sha512-99z1YOkViECHtXQjGIigd3talI/ybUI1zB3yniAwUrlWBXupNXThB1hM6bwSMUEj2/+tomTlMtT98F5t4s8IWA==,
}
engines: { node: ">=16.0.0" }
peerDependencies:
prettier: ^3.0.3
prettier@3.2.5:
resolution:
{
integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==,
}
engines: { node: ">=14" }
hasBin: true
snapshots:
"@taplo/core@0.1.1": {}
"@taplo/lib@0.4.0-alpha.2":
dependencies:
"@taplo/core": 0.1.1
prettier-plugin-nginx@1.0.3: {}
prettier-plugin-toml@2.0.1(prettier@3.2.5):
dependencies:
"@taplo/lib": 0.4.0-alpha.2
prettier: 3.2.5
prettier@3.2.5: {}