aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.local/bin/cookiefire
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:54:12 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:54:12 +0100
commit78ba44085efcac39324ce7ab705845a91d21a81a (patch)
tree19e8562dd773c3308efe31d425f44d69df8c45c4 /home/.local/bin/cookiefire
parent6e096aed5c750d5e8d3b2c39d02ac5c5dcac8c6b (diff)
downloaddotfiles-78ba44085efcac39324ce7ab705845a91d21a81a.tar.gz
dotfiles-78ba44085efcac39324ce7ab705845a91d21a81a.tar.bz2
dotfiles-78ba44085efcac39324ce7ab705845a91d21a81a.zip
chore: remove stale and outdated configuration files
Delete 17 items confirmed unused/superseded: - pulse/ (4 files): PulseAudio configs, superseded by PipeWire - pipewire/media-session.d/: deprecated, superseded by WirePlumber - neofetch/config.conf: neofetch is abandoned/archived - .urlview: mutt-era URL viewer config - nvim ftplugin xdefaults.lua, xmodmap.lua: X11-only (xrdb/xmodmap) - Steam CS:GO + L4D2 configs: CS:GO replaced by CS2, L4D2 untracked - fakecam/ + service: abandoned virtual webcam project - noisetorch.service: project abandoned, PipeWire has built-in noise cancellation - gtk-2.0/: GTK2 is legacy - spotifyd.service.d/: no longer using spotifyd - htop/htoprc: auto-generated, not worth tracking - cookiefire, terminal-benchmark, terminal-testdrive, stop, videowrapper: unused scripts
Diffstat (limited to 'home/.local/bin/cookiefire')
-rwxr-xr-xhome/.local/bin/cookiefire73
1 files changed, 0 insertions, 73 deletions
diff --git a/home/.local/bin/cookiefire b/home/.local/bin/cookiefire
deleted file mode 100755
index 7471f05..0000000
--- a/home/.local/bin/cookiefire
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/bash
-# -*- mode:sh -*-
-
-die() {
- echo >&2 "$*"
- exit 1
-}
-
-
-
-cleanup() {
- rm -f "$tmpfile"
-}
-trap cleanup EXIT INT QUIT TERM
-
-# Run older ld (pseudo condition)
-
-if [ "$#" == "0" ]; then
- profile=default-default
-elif [ "$#" == "1" ]; then
- profile=$1
-else
- die "usage $0 [profile]"
-fi;
-
-
-extract_cookies() {
-
-if [ "$#" -ge 1 ]; then
- sqlfile="$1"
-else
- if tty -s; then
- sqlfile=$(ls -t ~/.librewolf/*/cookies.sqlite | head -1)
-
- sqlfile="-" # Will use 'cat' below to read stdin
- fi
-fi
-
-if [ "$sqlfile" != "-" -a ! -r "$sqlfile" ]; then
- echo "Error. File $sqlfile is not readable." >&2
- exit 1
-fi
-
-# We have to copy cookies.sqlite, because FireFox has a lock on it
-cat "$sqlfile" >> $tmpfile
-
-
-# This is the format of the sqlite database:
-# CREATE TABLE moz_cookies (id INTEGER PRIMARY KEY, name TEXT, value TEXT, host TEXT, path TEXT,expiry INTEGER, lastAccessed INTEGER, isSecure INTEGER, isHttpOnly INTEGER);
-
-echo "# Netscape HTTP Cookie File"
-sqlite3 -separator $'\t' $tmpfile <<- EOF
-.mode tabs
-.header off
-select host,
-case substr(host,1,1)='.' when 0 then 'FALSE' else 'TRUE' end,
-path,
-case isSecure when 0 then 'FALSE' else 'TRUE' end,
-expiry,
-name,
-value
-from moz_cookies;
-EOF
-
-cleanup
-
-}
-
-tmpfile="$(mktemp /tmp/cookies.sqlite.XXXXXXXXXX)"
-curlcookies="$(mktemp /tmp/curlcookies.XXXXXXXXXX)"
-echo $HOME/.librewolf/*.$profile/cookies.sqlite | { read cookie_file ;
-extract_cookies "$cookie_file" ;
-}