feat: reshuffle files

This commit is contained in:
Jamie Albert
2025-11-12 01:11:54 +00:00
parent e58c120f62
commit 3ebb8c54f1
212 changed files with 483 additions and 160 deletions

42
.vscode/dao.code-snippets vendored Normal file
View File

@@ -0,0 +1,42 @@
{
// Place your dao workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Bash Header": {
"prefix": "header_bash",
"body": [
"#!/usr/bin/env bash",
"# ---",
"# @file_name: ${1:filename}",
"# @description: ${2:description}",
"# @date: ${3:date}",
"# @version: ${4:version}",
"# @usage: ./${5:filename}.sh [-h|--help]",
"#",
"# @author: Jamie Albert",
"# @author_contact: <mailto:jamie.albert@flatmail.me",
"# @license: GNU Affero General Public License v3.0 (Included in LICENSE)",
"# Copyright (C) 2025, Jamie Albert",
"# ---",
"set -euo pipefail",
"${6:}",
""
],
"description": "Bash Header",
}
}

14
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
},
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.code-workspace": "*.code-workspace"
}
}

View File

@@ -1,6 +0,0 @@
table inet mullvad_tailscale {
chain output {
type route hook output priority 0; policy accept;
ip daddr 100.64.0.0/10 ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
}

View File

@@ -1,13 +0,0 @@
# Default
Default look of Spotify with different color schemes.
## Screenshot
![screenshot](./ocean.png)
## Info
### Ocean
Part of material ocean themes, [checkout here](https://github.com/material-ocean) for the same theme for different applications. By @Blacksuan19

View File

@@ -1,33 +0,0 @@
[Ocean]
text = FFFFFF
subtext = F1F1F1
main = 0F111A
sidebar = 0F111A
player = 0F111A
card = 00010A
shadow = 0F111A
selected-row = F1F1F1
button = FF4151
button-active = F1F1F1
button-disabled = 434C5E
tab-active = FF4151
notification = 00010A
notification-error = FF4151
misc = 00010A
[gruvbox]
text = fbf1c7
subtext = ebdbb2
main = 1d2021
sidebar = 282828
player = 3c3836
card = 665c54
shadow = 1d2021
selected-row = d5c4a1
button = ebdbb2
button-active = 8ec07c
button-disabled = 535353
tab-active = 689d6a
notification = ebdbb2
notification-error = e2e2e2
misc = bdae93

View File

@@ -1,16 +0,0 @@
[gruvbox]
text = fbf1c7
subtext = ebdbb2
main = 1d2021
sidebar = 282828
player = 3c3836
card = 665c54
shadow = 1d2021
selected-row = d5c4a1
button = ebdbb2
button-active = 8ec07c
button-disabled = 535353
tab-active = 689d6a
notification = ebdbb2
notification-error = e2e2e2
misc = bdae93

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

View File

@@ -1,5 +0,0 @@
Host github.com
User git
IdentityFile /home/jamie/.ssh/github
IdentitiesOnly yes
StrictHostKeyChecking accept-new

View File

@@ -1,46 +0,0 @@
#!/usr/bin/env bash
case $- in
*i*) ;;
*) return ;;
esac
[[ -z ${debian_chroot:-} && -r /etc/debian_chroot ]] && debian_chroot=$(cat /etc/debian_chroot)
case "${TERM}" in
xterm-color | *-256color) color_prompt=yes ;;
*) ;;
esac
if [[ -n ${force_color_prompt:-} ]]; then
if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then
color_prompt=yes
else
color_prompt=
fi
fi
if [[ ${color_prompt} == yes ]]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
case "${TERM}" in
xterm* | rxvt*) PS1="\[\e]0;${debian_chroot:+(${debian_chroot})}\u@\h: \w\a\]${PS1}" ;;
*) ;;
esac
if [[ -x "/usr/bin/dircolors" ]]; then
# shellcheck disable=SC2015
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# shellcheck disable=SC1090
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
if ! shopt -oq posix; then
if [ -f "/usr/share/bash-completion/bash_completion" ]; then
. "/usr/share/bash-completion/bash_completion"
elif [ -f "/etc/bash_completion" ]; then
. "/etc/bash_completion"
fi
fi
. "/usr/local/bin/prompt.sh"

View File

@@ -1,11 +0,0 @@
table inet mullvad_tailscale {
chain output {
type route hook output priority -100; policy accept;
ip daddr 100.64.0.0/10 ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
chain input {
type filter hook input priority -100; policy accept;
ip saddr 100.64.0.0/10 ct mark set 0x00000f41 meta mark set 0x6d6f6c65;
}
}

View File

@@ -1,11 +0,0 @@
[koofr]
type = koofr
provider = koofr
user = koofr@do-bbs.me
password = GYsZmWtUoLUsLHBd5hCiFx7-yGK2XcEGfGqMAThjgLk
[koofr_vault]
type = crypt
remote = koofr:/vault
password = SlOeftMnQNgRoo4SJRxMCeZDHckgi3xFfw3jjfOpoJJqqPSed7vG7SaCJ7ZDvRT2SlU9M8i-5YeJLnhaN6EuzBY
password2 = YBQPmGBnC-B035q15aCsm-jnJeT8oHxRI4mT-RLzFKyijilF0yh4LfP0hQsPcPH-7cKbySGTR7SaKin55xsQZ5PYaqHGHpQJuC9WBU4wBMCTpNUcZ8VWW4yPqX2w8U5Uz2sshhQXUPWC5eKVsM1GaEcsUUWio7z-u06OF-yrhCK9yjwNl7ybkWpP8cAFnfMCkwGFeGK4sl94ddQE0iKNksQeSnAR-Lb0NdLQbN4pE0Fqyj-J2Cl-xbAQJg

View File

@@ -1,10 +1,13 @@
#!/usr/bin/env bash
# ---
# @file_name: dao.sh
# @version: 1.0.0
# @description: main dao handler
# @author: Jamie Albert (empty_produce)
# @author_contact: <mailto:empty.produce@flatmail.me>
# @description: main script handle for dao
# @date: 2025-11-12
# @version: 0.0.1
# @usage: ./dao.sh {update|transfer|pwgen|mount|firewall} [args]
#
# @author: Jamie Albert
# @author_contact: <mailto:jamie.albert@flatmail.me
# @license: GNU Affero General Public License v3.0 (Included in LICENSE)
# Copyright (C) 2025, Jamie Albert
# ---

View File

@@ -1,10 +1,13 @@
#!/usr/bin/env bash
# ---
# @file_name: prompt.sh
# @description: a bash prompt
# @date: 2025-11-12
# @version: 1.0.1
# @description: a prompt
# @author: Jamie Albert (empty_produce)
# @author_contact: <mailto:empty.produce@flatmail.me>
# @usage: . prompt.sh
#
# @author: Jamie Albert
# @author_contact: <mailto:jamie.albert@flatmail.me
# @license: GNU Affero General Public License v3.0 (Included in LICENSE)
# Copyright (C) 2025, Jamie Albert
# ---
@@ -13,7 +16,7 @@
# Script Exports
# ---
declare -x PASSWORD_STORE_DIR=~/dao/storage/pass
declare -x BW_SESSION; BW_SESSION=$(pass show bw/session)
# declare -x BW_SESSION; BW_SESSION=$(pass show bw/session)
# ---
# Script globals

View File

@@ -0,0 +1,78 @@
{
"workbench.colorTheme": "Gruvbox Dark Medium",
"git.autofetch": true,
"window.restoreWindows": "preserve",
"security.workspace.trust.untrustedFiles": "open",
"git.confirmSync": false,
"[css]": {
"editor.defaultFormatter": "mblode.pretty-formatter"
},
"explorer.confirmDelete": false,
"[shellscript]": {
"editor.defaultFormatter": "mkhl.shfmt"
},
"editor.tabSize": 2,
"explorer.confirmDragAndDrop": false,
"editor.stickyScroll.enabled": false,
"better-comments.tags": [
{
"tag": "!",
"color": "#ea6962",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "?",
"color": "#83b193",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//",
"color": "#504945",
"strikethrough": true,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "todo",
"color": "#d8a657",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "@description:",
"color": "#a9b665",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "*",
"color": "#a9b665",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
}
],
"git.enableSmartCommit": false,
"projectManager.git.baseFolders": [
"/home/jamie/dao"
],
}

View File

@@ -0,0 +1,5 @@
[_mail]
source = maildir://~/dao/storage/maildir/mail
check-mail-cmd = mbsync mail
check-mail-timeout = 30s
from = Jamie Albert <mail@do-bbs.com>

View File

@@ -0,0 +1,186 @@
# Binds are of the form <key sequence> = <command to run>
# To use '=' in a key sequence, substitute it with "Eq": "<Ctrl+Eq>"
# If you wish to bind #, you can wrap the key sequence in quotes: "#" = quit
<C-p> = :prev-tab<Enter>
<C-PgUp> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
<C-PgDn> = :next-tab<Enter>
\[t = :prev-tab<Enter>
\]t = :next-tab<Enter>
<C-t> = :term<Enter>
? = :help keys<Enter>
<C-c> = :prompt 'Quit?' quit<Enter>
<C-q> = :prompt 'Quit?' quit<Enter>
<C-z> = :suspend<Enter>
[messages]
q = :prompt 'Quit?' quit<Enter>
j = :next<Enter>
<Down> = :next<Enter>
<C-d> = :next 50%<Enter>
<C-f> = :next 100%<Enter>
<PgDn> = :next 100%<Enter>
k = :prev<Enter>
<Up> = :prev<Enter>
<C-u> = :prev 50%<Enter>
<C-b> = :prev 100%<Enter>
<PgUp> = :prev 100%<Enter>
g = :select 0<Enter>
G = :select -1<Enter>
J = :next-folder<Enter>
<C-Down> = :next-folder<Enter>
K = :prev-folder<Enter>
<C-Up> = :prev-folder<Enter>
H = :collapse-folder<Enter>
<C-Left> = :collapse-folder<Enter>
L = :expand-folder<Enter>
<C-Right> = :expand-folder<Enter>
v = :mark -t<Enter>
<Space> = :mark -t<Enter>:next<Enter>
V = :mark -v<Enter>
T = :toggle-threads<Enter>
zc = :fold<Enter>
zo = :unfold<Enter>
za = :fold -t<Enter>
zM = :fold -a<Enter>
zR = :unfold -a<Enter>
<tab> = :fold -t<Enter>
zz = :align center<Enter>
zt = :align top<Enter>
zb = :align bottom<Enter>
<Enter> = :view<Enter>
d = :choose -o y 'Really delete this message' delete-message<Enter>
D = :delete<Enter>
a = :archive flat<Enter>
A = :unmark -a<Enter>:mark -T<Enter>:archive flat<Enter>
C = :compose<Enter>
m = :compose<Enter>
b = :bounce<space>
rr = :reply -a<Enter>
rq = :reply -aq<Enter>
Rr = :reply<Enter>
Rq = :reply -q<Enter>
c = :cf<space>
$ = :term<space>
! = :term<space>
| = :pipe<space>
/ = :search<space>
\ = :filter<space>
n = :next-result<Enter>
N = :prev-result<Enter>
<Esc> = :clear<Enter>
s = :split<Enter>
S = :vsplit<Enter>
pl = :patch list<Enter>
pa = :patch apply <Tab>
pd = :patch drop <Tab>
pb = :patch rebase<Enter>
pt = :patch term<Enter>
ps = :patch switch <Tab>
[messages:folder=Drafts]
<Enter> = :recall<Enter>
[view]
/ = :toggle-key-passthrough<Enter>/
q = :close<Enter>
O = :open<Enter>
o = :open<Enter>
S = :save<space>
| = :pipe<space>
D = :delete<Enter>
A = :archive flat<Enter>
<C-l> = :open-link <space>
f = :forward<Enter>
rr = :reply -a<Enter>
rq = :reply -aq<Enter>
Rr = :reply<Enter>
Rq = :reply -q<Enter>
H = :toggle-headers<Enter>
<C-k> = :prev-part<Enter>
<C-Up> = :prev-part<Enter>
<C-j> = :next-part<Enter>
<C-Down> = :next-part<Enter>
J = :next<Enter>
<C-Right> = :next<Enter>
K = :prev<Enter>
<C-Left> = :prev<Enter>
[view::passthrough]
$noinherit = true
$ex = <C-x>
<Esc> = :toggle-key-passthrough<Enter>
[compose]
# Keybindings used when the embedded terminal is not selected in the compose
# view
$noinherit = true
$ex = <C-x>
$complete = <C-o>
<C-k> = :prev-field<Enter>
<C-Up> = :prev-field<Enter>
<C-j> = :next-field<Enter>
<C-Down> = :next-field<Enter>
<A-p> = :switch-account -p<Enter>
<C-Left> = :switch-account -p<Enter>
<A-n> = :switch-account -n<Enter>
<C-Right> = :switch-account -n<Enter>
<tab> = :next-field<Enter>
<backtab> = :prev-field<Enter>
<C-p> = :prev-tab<Enter>
<C-PgUp> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
<C-PgDn> = :next-tab<Enter>
[compose::editor]
# Keybindings used when the embedded terminal is selected in the compose view
$noinherit = true
$ex = <C-x>
<C-k> = :prev-field<Enter>
<C-Up> = :prev-field<Enter>
<C-j> = :next-field<Enter>
<C-Down> = :next-field<Enter>
<C-p> = :prev-tab<Enter>
<C-PgUp> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
<C-PgDn> = :next-tab<Enter>
[compose::review]
# Keybindings used when reviewing a message to be sent
# Inline comments are used as descriptions on the review screen
y = :send<Enter> # Send
n = :abort<Enter> # Abort (discard message, no confirmation)
s = :sign<Enter> # Toggle signing
x = :encrypt<Enter> # Toggle encryption to all recipients
v = :preview<Enter> # Preview message
p = :postpone<Enter> # Postpone
q = :choose -o d discard abort -o p postpone postpone<Enter> # Abort or postpone
e = :edit<Enter> # Edit (body and headers)
a = :attach<space> # Add attachment
d = :detach<space> # Remove attachment
[terminal]
$noinherit = true
$ex = <C-x>
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
<C-PgUp> = :prev-tab<Enter>
<C-PgDn> = :next-tab<Enter>

27
dotfiles/mail/.mbsyncrc Normal file
View File

@@ -0,0 +1,27 @@
IMAPAccount mail
Host 127.0.0.1
Port 1143
User mail@do-bbs.com
Passcmd "pass show pb/pass"
#SSLType IMAPS
TLSType STARTTLS
CertificateFile ~/dao/storage/vault/system/cert.pem
MaildirStore mail-local
Path ~/dao/storage/maildir/mail/
INBOX ~/dao/storage/maildir/mail/INBOX
SubFolders Verbatim
IMAPStore mail
Account mail
Channel mail
Far :mail:
Near :mail-local:
Patterns *
Expunge None
Remove None
CopyArrivalDate yes
Sync PullNew
Create Near
SyncState *

63
dotfiles/shells/.bashrc Normal file
View File

@@ -0,0 +1,63 @@
#!/usr/bin/env bash
# Only run for interactive shells
[[ $- != *i* ]] && return
# Load debian_chroot if available
[[ -z ${debian_chroot:-} && -r /etc/debian_chroot ]] && debian_chroot=$(< /etc/debian_chroot)
# Determine if color prompt should be used
color_prompt=
if [[ -n ${force_color_prompt:-} ]] || [[ ${TERM} =~ ^(xterm-color|.*-256color)$ ]]; then
if [[ -x /usr/bin/tput ]] && tput setaf 1 >&/dev/null; then
color_prompt=yes
fi
fi
# Set PS1 based on color support
if [[ ${color_prompt} == yes ]]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
# Set window title for xterm/rxvt
if [[ ${TERM} =~ ^(xterm|rxvt) ]]; then
PS1="\[\e]0;${debian_chroot:+(${debian_chroot})}\u@\h: \w\a\]${PS1}"
fi
# Clean up
unset color_prompt force_color_prompt
# Enable color support for ls and grep if available
if [[ -x /usr/bin/dircolors ]]; then
if [[ -r ~/.dircolors ]]; then
eval "$(dircolors -b ~/.dircolors)"
else
eval "$(dircolors -b)"
fi
# Color aliases
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# Alert alias for desktop notifications
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Load custom aliases if file exists
[[ -f ~/.bash_aliases ]] && . ~/.bash_aliases
# Enable bash completion if available and not in posix mode
if ! shopt -oq posix; then
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion
elif [[ -f /etc/bash_completion ]]; then
. /etc/bash_completion
fi
fi
# Load custom prompt script if it exists
[[ -f /usr/local/bin/prompt.sh ]] && . /usr/local/bin/prompt.sh

View File

@@ -0,0 +1,13 @@
Host github.com
User git
IdentityFile /home/jamie/.ssh/github
IdentitiesOnly yes
StrictHostKeyChecking accept-new
Host gitea
HostName gitea.do-bbs.com
User git
IdentityFile /home/jamie/.ssh/gitea
IdentitiesOnly yes
StrictHostKeyChecking accept-new
Port 748

View File

@@ -20,12 +20,4 @@ Host athena
IdentitiesOnly yes
StrictHostKeyChecking accept-new
User u497749
IdentityFile ~/.ssh/athena
Host gitea
HostName gitea.do-bbs.com
User git
IdentityFile /home/jamie/.ssh/gitea
IdentitiesOnly yes
StrictHostKeyChecking accept-new
Port 748
IdentityFile ~/.ssh/athena

Some files were not shown because too many files have changed in this diff Show More