Latest fixes

This commit is contained in:
Brian Zalewski 2023-11-06 03:50:23 +00:00
parent 26bef84dd3
commit 09fb2fdbb7
8 changed files with 54 additions and 16 deletions

View file

@ -7,6 +7,7 @@ This page outlines various projects and tasks that we are currently working on.
- Integrate Sheldon - Integrate Sheldon
- Look at Flipper Zero - Look at Flipper Zero
- Consider https://formulae.brew.sh/cask/parallels-client#default
- https://github.com/tadamcz/updates.sh/blob/main/updates.sh (Homebrew download parallelism) - https://github.com/tadamcz/updates.sh/blob/main/updates.sh (Homebrew download parallelism)
- Add Mamba - Add Mamba
- https://docs.pkgx.sh/using-pkgx/shell-integration - https://docs.pkgx.sh/using-pkgx/shell-integration

View file

@ -385,9 +385,11 @@ softwareGroups:
- neofetch - neofetch
- nomino - nomino
- normit - normit
- nve
- pastel - pastel
- peco - peco
- percol - percol
- pick
- pidcat - pidcat
- pgcli - pgcli
- pueue - pueue

View file

@ -47,7 +47,8 @@ Brewfile
.zcompdump .zcompdump
.zlogin .zlogin
.zlogout .zlogout
.zshenv
.zsh_history .zsh_history
.zsh_sessions .zsh_sessions/
.zprofile .zprofile
.zshrc.zwc .zshrc.zwc

View file

@ -74,9 +74,10 @@ if command -v gping > /dev/null; then
fi fi
### safe-rm ### safe-rm
if command -v safe-rm > /dev/null; then # TODO: Integrate this so it fails gracefully if folder does not exist (i.e. safe-rm -rf ~/Crunch should not return an error)
alias rm='safe-rm' # if command -v safe-rm > /dev/null; then
fi # alias rm='safe-rm'
# fi
### VIM ### VIM
if command -v vim > /dev/null; then if command -v vim > /dev/null; then

View file

@ -334,6 +334,9 @@ export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/pass"
### PIPX ### PIPX
export PIPX_BIN_DIR="$HOME/.local/bin/pipx" export PIPX_BIN_DIR="$HOME/.local/bin/pipx"
if command -v python3 > /dev/null; then
export PIPX_DEFAULT_PYTHON="$(which python3)"
fi
### Poetry ### Poetry
export POETRY_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/poetry" export POETRY_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/poetry"

View file

@ -1406,8 +1406,15 @@ async function installPackageList(packageManager, packages) {
runCommand(`Installing ${pkg} via ${packageManager}`, `pipx install ${pkg}`) runCommand(`Installing ${pkg} via ${packageManager}`, `pipx install ${pkg}`)
log('success', 'Install', `${pkg} successfully installed via ${packageManager}`) log('success', 'Install', `${pkg} successfully installed via ${packageManager}`)
} catch (e) { } catch (e) {
log('error', 'Install', `There was an error installing ${pkg} with pipx`) log('warn', 'Install', `There was an error installing ${pkg} with pipx, re-attempting using pip3`)
console.error(e) console.error(e)
try {
runCommand(`Installing ${pkg} via pip3`, `pip3 install ${pkg}`)
log('success', 'Install', `${pkg} successfully installed via pip3`)
} catch (e) {
log('error', 'Install', `There was an error installing ${pkg} with both pipx and pip3`)
console.error(e)
}
} }
} }
} else if (packageManager === 'pkg-darwin') { } else if (packageManager === 'pkg-darwin') {

View file

@ -66,7 +66,7 @@ gathering = smart
# inject_facts_as_vars = True # inject_facts_as_vars = True
# additional paths to search for roles in, colon separated # additional paths to search for roles in, colon separated
roles_path = roles/applications:roles/crypto:roles/helpers:roles/languages:roles/misc:roles/services:roles/system:roles/tools:roles/virtualization:/usr/share/ansible/roles:/etc/ansible/roles:~/.ansible/roles roles_path = roles/applications:roles/crypto:roles/deprecated:roles/helpers:roles/languages:roles/misc:roles/services:roles/system:roles/tools:roles/virtualization:/usr/share/ansible/roles:/etc/ansible/roles:~/.ansible/roles
# uncomment this to disable SSH key host checking # uncomment this to disable SSH key host checking
#host_key_checking = False #host_key_checking = False

View file

@ -3413,7 +3413,8 @@ softwarePackages:
_github: https://github.com/chrissimpkins/Crunch _github: https://github.com/chrissimpkins/Crunch
_home: https://github.com/chrissimpkins/Crunch _home: https://github.com/chrissimpkins/Crunch
_name: Crunch _name: Crunch
script: cd /tmp && rm -rf Crunch && git clone https://github.com/chrissimpkins/Crunch.git && make build-dependencies && make install-executable cask: crunch
script: cd /tmp && rm -rf Crunch && git clone https://github.com/chrissimpkins/Crunch.git && make build-dependencies && make install-executable && cd /tmp && rm -rf Crunch && rm -rf ~/zopfli && rm -rf ~/pngquant && echo "TODO WARNING - The ~/zopfli and ~/pngquant directories were deleted and may be required (but were removed due to HOME directory pollution)"
eul: eul:
_bin: null _bin: null
_desc: Menu bar application that shows system stats like CPU, RAM, and disk usage on macOS _desc: Menu bar application that shows system stats like CPU, RAM, and disk usage on macOS
@ -3505,11 +3506,11 @@ softwarePackages:
_bin: fm _bin: fm
_desc: Terminal file manager _desc: Terminal file manager
_docs: null _docs: null
_github: https://github.com/knipferrc/fm _github: https://github.com/mistakenelf/fm
_home: null _home: null
_name: fm _name: fm
github: github.com/knipferrc/fm github: github.com/mistakenelf/fm
go: github.com/knipferrc/fm@latest go: github.com/mistakenelf/fm@latest
fonts: fonts:
_bin: null _bin: null
_desc: null _desc: null
@ -4042,6 +4043,7 @@ softwarePackages:
_name: git-o-matic _name: git-o-matic
ansible: professormanhattan.gitomatic ansible: professormanhattan.gitomatic
github: github.com/muesli/gitomatic github: github.com/muesli/gitomatic
go: github.com/muesli/gitomatic@latest
pacman: gitomatic pacman: gitomatic
scoop: gitomatic scoop: gitomatic
mudlet: mudlet:
@ -6062,11 +6064,13 @@ softwarePackages:
_github: https://github.com/th-ch/youtube-music _github: https://github.com/th-ch/youtube-music
_home: https://th-ch.github.io/youtube-music/ _home: https://th-ch.github.io/youtube-music/
_when:script:darwin: '! test -d "/Applications/YouTube Music.app" && ! test -d "$HOME/Applications/YouTube Music.app"' _when:script:darwin: '! test -d "/Applications/YouTube Music.app" && ! test -d "$HOME/Applications/YouTube Music.app"'
_todo: Might have to add _post:cask: xattr -cr /Applications/YouTube\ Music.app to fix permissions
appimage: th-ch/youtube-music appimage: th-ch/youtube-music
apt: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/youtube-music_1.19.0_amd64.deb apt: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/youtube-music_1.19.0_amd64.deb
cask: https://raw.githubusercontent.com/th-ch/youtube-music/master/youtube-music.rb
exe: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/YouTube-Music-Setup-1.19.0.exe exe: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/YouTube-Music-Setup-1.19.0.exe
scoop: extras/youtube-music scoop: extras/youtube-music
script:darwin: DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0.dmg" && if [ $(arch) = 'arm64' ]; then DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0-arm64.dmg"; fi && curl -sSL "$DL_URL" > /tmp/YouTube-Music.dmg && sudo hdiutil attach /tmp/YouTube-Music.dmg && sudo cp -R "/Volumes/YouTube Music 1.20.0/YouTube Music.app" /Applications && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0" && rm -f /tmp/YouTube-Music.dmg script:darwin: DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0.dmg" && if [ $(arch) = 'arm64' ]; then DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0-arm64.dmg"; fi && curl -sSL "$DL_URL" > /tmp/YouTube-Music.dmg && sudo hdiutil attach /tmp/YouTube-Music.dmg && if [ -d "/Volumes/YouTube Music 1.20.0" ]; then sudo cp -R "/Volumes/YouTube Music 1.20.0/YouTube Music.app" /Applications && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0"; elif [ -d "/Volumes/YouTube Music 1.20.0-arm64" ]; then sudo cp -R "/Volumes/YouTube Music 1.20.0-arm/YouTube Music.app" /Applications && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0-arm"; fi && rm -f /tmp/YouTube-Music.dmg
winget: th-ch.YouTubeMusic winget: th-ch.YouTubeMusic
yay: youtube-music-bin yay: youtube-music-bin
imagine: imagine:
@ -6996,6 +7000,7 @@ softwarePackages:
_name: Parallels _name: Parallels
_when: '! test -d "/Applications/Parallels Desktop.app" && ! test -d "$HOME/Applications/Parallels Desktop.app"' _when: '! test -d "/Applications/Parallels Desktop.app" && ! test -d "$HOME/Applications/Parallels Desktop.app"'
ansible:darwin: professormanhattan.parallels ansible:darwin: professormanhattan.parallels
cask: parallels
gnome-passwords-keys: gnome-passwords-keys:
_bin: seahorse _bin: seahorse
flatpak: org.gnome.seahorse.Application flatpak: org.gnome.seahorse.Application
@ -7751,7 +7756,7 @@ softwarePackages:
_name: Rclone _name: Rclone
ansible: professormanhattan.rclone ansible: professormanhattan.rclone
apt: rclone apt: rclone
brew:linux: rclone brew: rclone
choco: choco:
- rclone - rclone
- winfsp - winfsp
@ -8447,8 +8452,8 @@ softwarePackages:
_name: shdoc _name: shdoc
ansible:darwin: professormanhattan.shdoc ansible:darwin: professormanhattan.shdoc
ansible:linux: professormanhattan.shdoc ansible:linux: professormanhattan.shdoc
script:darwin: cd /tmp && git clone --recursive https://github.com/reconquest/shdoc && cd shdoc && sudo make install script:darwin: cd /tmp && git clone --recursive https://github.com/reconquest/shdoc && cd shdoc && sudo make install && cd /tmp && rm -rf shdoc
script:linux: cd /tmp && git clone --recursive https://github.com/reconquest/shdoc && cd shdoc && sudo make install script:linux: cd /tmp && git clone --recursive https://github.com/reconquest/shdoc && cd shdoc && sudo make install && cd /tmp && rm -rf shdoc
yay: shdoc-git yay: shdoc-git
shellcheck: shellcheck:
_bin: shellcheck _bin: shellcheck
@ -10209,7 +10214,7 @@ softwarePackages:
_when:linux: '! test -f /var/ossec/bin/agent-auth' _when:linux: '! test -f /var/ossec/bin/agent-auth'
_when:windows: '! test -f "C:\Program Files (x86)\ossec-agent\agent-auth.exe"' _when:windows: '! test -f "C:\Program Files (x86)\ossec-agent\agent-auth.exe"'
choco: wazuh-agent choco: wazuh-agent
script:darwin: cd /tmp && curl -sSL https://packages.wazuh.com/4.x/macos/wazuh-agent-4.4.4-1.pkg > wazuh-agent.pkg && sudo launchctl setenv WAZUH_MANAGER "$WAZUH_MANAGER" && sudo installer -pkg wazuh-agent.pkg -target / && sudo chmod 755 /Library/Ossec && sudo chmod 755 /Library/Ossec/bin && rm /tmp/wazuh-agent.pkg && sudo wazuh-control start script:darwin: if ! csrutil status | grep enabled > /dev/null; then cd /tmp && curl -sSL https://packages.wazuh.com/4.x/macos/wazuh-agent-4.4.4-1.pkg > wazuh-agent.pkg && sudo launchctl setenv WAZUH_MANAGER "$WAZUH_MANAGER" && sudo installer -pkg wazuh-agent.pkg -target / && sudo chmod 755 /Library/Ossec && sudo chmod 755 /Library/Ossec/bin && rm /tmp/wazuh-agent.pkg && sudo wazuh-control start; else echo "WARNING - Skipping Wazuh Agent installation because System Integrity Protection is enabled. Disabling it requires booting into recovery and running csrutil disable, installing Wazuh Agent normally, and then re-enabling it again in recovery mode."; fi
script:linux: if command -v apt-get > /dev/null; then curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | sudo gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && sudo chmod 644 /usr/share/keyrings/wazuh.gpg && echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee -a /etc/apt/sources.list.d/wazuh.list && sudo apt-get update && sudo apt-get install -y wazuh-agent; elif command -v dnf > /dev/null; then echo "[wazuh]" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "gpgcheck=1" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "enabled=1" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "name=EL-\$releasever - Wazuh" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "baseurl=https://packages.wazuh.com/4.x/yum/" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "protect=1" | sudo tee -a /etc/yum.repos.d/wazuh.repo && sudo rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && sudo dnf install -y wazuh-agent; elif command -v zypper > /dev/null; then echo "[wazuh]" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "gpgcheck=1" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "enabled=1" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "name=EL-$releasever - Wazuh" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "baseurl=https://packages.wazuh.com/4.x/yum/" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "protect=1" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && sudo rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && sudo zypper install -y wazuh-agent; elif command -v apk > /dev/null; then sudo wget -O /etc/apk/keys/alpine-devel@wazuh.com-633d7457.rsa.pub https://packages.wazuh.com/key/alpine-devel%40wazuh.com-633d7457.rsa.pub && echo "https://packages.wazuh.com/4.x/alpine/v3.12/main" | sudo tee -a /etc/apk/repositories && sudo apk update && sudo apk add wazuh-agent; fi script:linux: if command -v apt-get > /dev/null; then curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | sudo gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && sudo chmod 644 /usr/share/keyrings/wazuh.gpg && echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | sudo tee -a /etc/apt/sources.list.d/wazuh.list && sudo apt-get update && sudo apt-get install -y wazuh-agent; elif command -v dnf > /dev/null; then echo "[wazuh]" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "gpgcheck=1" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "enabled=1" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "name=EL-\$releasever - Wazuh" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "baseurl=https://packages.wazuh.com/4.x/yum/" | sudo tee -a /etc/yum.repos.d/wazuh.repo && echo "protect=1" | sudo tee -a /etc/yum.repos.d/wazuh.repo && sudo rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && sudo dnf install -y wazuh-agent; elif command -v zypper > /dev/null; then echo "[wazuh]" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "gpgcheck=1" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "gpgkey=https://packages.wazuh.com/key/GPG-KEY-WAZUH" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "enabled=1" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "name=EL-$releasever - Wazuh" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "baseurl=https://packages.wazuh.com/4.x/yum/" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && echo "protect=1" | sudo tee -a /etc/zypp/repos.d/wazuh.repo && sudo rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && sudo zypper install -y wazuh-agent; elif command -v apk > /dev/null; then sudo wget -O /etc/apk/keys/alpine-devel@wazuh.com-633d7457.rsa.pub https://packages.wazuh.com/key/alpine-devel%40wazuh.com-633d7457.rsa.pub && echo "https://packages.wazuh.com/4.x/alpine/v3.12/main" | sudo tee -a /etc/apk/repositories && sudo apk update && sudo apk add wazuh-agent; fi
websocat: websocat:
_bin: websocat _bin: websocat
@ -10299,6 +10304,24 @@ softwarePackages:
ansible:windows: professormanhattan.windowspowertoys ansible:windows: professormanhattan.windowspowertoys
choco: powertoys choco: powertoys
scoop: powertoys scoop: powertoys
pick:
_bin: pick
_github: https://github.com/mptre/pick
_name: Pick
apt: pick
brew: pick
dnf: pick
emerge: pick
pkg-freebsd: pick
pkg_add: pick
port: pick
yay: pick
xbps-install: pick
nve:
_bin: nve
_github: https://github.com/ehmicky/nve
_name: nve
npm: nve
winrm-cli: winrm-cli:
_bin: winrm-cli _bin: winrm-cli
_desc: Command-line tool to remotely execute commands on Windows machines through WinRM _desc: Command-line tool to remotely execute commands on Windows machines through WinRM