This commit is contained in:
David Tomaschik
2024-10-29 16:45:16 -07:00
15 changed files with 70 additions and 22 deletions

View File

@@ -242,6 +242,8 @@ case ${TOOL} in
udevadm control --reload-rules" udevadm control --reload-rules"
;; ;;
pm3iceman) pm3iceman)
# arch:
# sudo pacman -Syu git base-devel readline bzip2 lz4 arm-none-eabi-gcc arm-none-eabi-newlib qt5-base bluez python gd --needed
install_pkgs git ca-certificates build-essential pkg-config \ install_pkgs git ca-certificates build-essential pkg-config \
libreadline-dev gcc-arm-none-eabi libnewlib-dev qtbase5-dev \ libreadline-dev gcc-arm-none-eabi libnewlib-dev qtbase5-dev \
libbz2-dev libbluetooth-dev libpython3-dev libssl-dev libbz2-dev libbluetooth-dev libpython3-dev libssl-dev

18
bin/setup/spicerandr.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -ue
cat >/usr/local/bin/x-resize <<"EOF"
#!/bin/sh
PATH=/usr/bin:/bin:/usr/local/bin
desktopuser=$(/bin/ps -ef | /bin/grep -oP '^\w+ (?=.*vdagent( |$))') || exit 0
export DISPLAY=:0
export XAUTHORITY=$(eval echo "~$desktopuser")/.Xauthority
/usr/bin/xrandr --output $(/usr/bin/xrandr | awk '/ connected/{print $1; exit; }') --auto
EOF
chmod 755 /usr/local/bin/x-resize
cat >/etc/udev/rules.d/50-resize.rules <<"EOF"
ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
EOF
chmod 644 /etc/udev/rules.d/50-resize.rules

View File

@@ -52,7 +52,7 @@ alias ipy="ipython3"
alias bc="command bc -q" alias bc="command bc -q"
# Get a decently readable df # Get a decently readable df
alias dfh="df -h -x tmpfs -x devtmpfs" alias dfh="df -h -x tmpfs -x devtmpfs -x squashfs -x fuse -x efivarfs"
# Clear the GPG agent # Clear the GPG agent
alias clear-gpg-agent="echo RELOADAGENT | gpg-connect-agent" alias clear-gpg-agent="echo RELOADAGENT | gpg-connect-agent"

View File

@@ -0,0 +1,4 @@
{
"editor.accessibilitySupport": "off",
"telemetry.telemetryLevel": "off"
}

View File

@@ -1,5 +1,6 @@
[user] [user]
name = David Tomaschik name = David Tomaschik
email = david@systemoverlord.com
signingKey = 0x5DEA789B signingKey = 0x5DEA789B
[core] [core]

1
dotfiles/npmrc Normal file
View File

@@ -0,0 +1 @@
prefix = ${HOME}/.npm-packages

View File

@@ -6,7 +6,7 @@ umask 027
# Paths and preferences # Paths and preferences
export PYTHONPATH="$HOME/.python:$PYTHONPATH" export PYTHONPATH="$HOME/.python:$PYTHONPATH"
export GOPATH="$HOME/go:$HOME/Projects/Go:/usr/share/gocode" export GOPATH="$HOME/go:$HOME/Projects/Go:/usr/share/gocode"
export PATH="$HOME/bin:$HOME/bin/tools:/sbin:/usr/sbin:$PATH:$HOME/go/bin" export PATH="$HOME/bin:$HOME/bin/tools:/sbin:/usr/sbin:$PATH:$HOME/go/bin:$HOME/.npm-packages/bin"
export VISUAL=vim export VISUAL=vim
export EDITOR=vim export EDITOR=vim
export DEBEMAIL="david@systemoverlord.com" export DEBEMAIL="david@systemoverlord.com"

View File

@@ -168,4 +168,7 @@ if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi
if test -f "${HOME}/.zprompt" ; then if test -f "${HOME}/.zprompt" ; then
THEME=${THEME:=$(cat "${HOME}/.zprompt")} THEME=${THEME:=$(cat "${HOME}/.zprompt")}
fi fi
if command -v starship >/dev/null 2>&1 ; then
: ${THEME:=starship}
fi
prompt "${THEME:-matir}" >/dev/null 2>&1 prompt "${THEME:-matir}" >/dev/null 2>&1

View File

@@ -5,18 +5,18 @@ function dumpenv {
if test -x "/sbin/starship" ; then if test -x "/sbin/starship" ; then
_STARSHIP_PATH="/sbin/starship" _STARSHIP_PATH="/sbin/starship"
function starship_prompt { function starship_prompt {
eval $(/sbin/starship init zsh) eval "$(/sbin/starship init zsh)"
} }
elif test -x "${HOME}/tools/starship/starship" ; then elif test -x "${HOME}/tools/starship/starship" ; then
_STARSHIP_PATH="${HOME}/tools/starship/starship" _STARSHIP_PATH="${HOME}/tools/starship/starship"
function starship_prompt { function starship_prompt {
eval $($HOME/tools/starship/starship init zsh) eval "$($HOME/tools/starship/starship init zsh)"
} }
fi fi
if test -f ${HOME}/.zprompt ; then if test -f ${HOME}/.zprompt ; then
if test "$(cat ${HOME}/.zprompt)" = "starship" ; then if test "$(cat ${HOME}/.zprompt)" = "starship" ; then
if test -n "${_STARSHIP_PATH:-}" ; then if test -n "${_STARSHIP_PATH:-}" ; then
eval $(${_STARSHIP_PATH} init zsh) eval "$(${_STARSHIP_PATH} init zsh)"
fi fi
fi fi
fi fi
@@ -25,3 +25,13 @@ unset _STARSHIP_PATH
function hashall { function hashall {
tee >(md5sum) | tee >(sha1sum) | sha256sum tee >(md5sum) | tee >(sha1sum) | sha256sum
} }
function rtmux {
if [ "$#" -lt 1 ] ; then
echo "Usage: $0 <host> [tmux args]" >&2
return 1
fi
HOST="${1}"
shift
ssh -t ${HOST} -- tmux "$@"
}

View File

@@ -1,14 +1,11 @@
# Rules for the Saleae Logic analyzer to allow to run the programs a normal user # Saleae Logic Analyzer
# being part of the plugdev group. Simply copy the file to /etc/udev/rules.d/ # This file should be installed to /etc/udev/rules.d so that you can access the Logic hardware without being root
# and plug the device #
# type this at the command prompt: sudo cp 99-SaleaeLogic.rules /etc/udev/rules.d
BUS!="usb", ACTION!="add", SUBSYSTEM!=="usb_device", GOTO="saleae_logic_rules_end" SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="0925", ATTR{idProduct}=="3881", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="21a9", ATTR{idProduct}=="1001", MODE="0666"
# Saleae Logic analyzer (USB Based) SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="21a9", ATTR{idProduct}=="1003", MODE="0666"
# Bus 006 Device 006: ID 0925:3881 Lakeview Research SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="21a9", ATTR{idProduct}=="1004", MODE="0666"
# Bus 001 Device 009: ID 21a9:1004 Product: Logic S/16, Manufacturer: Saleae LLC SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="21a9", ATTR{idProduct}=="1005", MODE="0666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="21a9", ATTR{idProduct}=="1006", MODE="0666"
ATTR{idVendor}=="0925", ATTR{idProduct}=="3881", MODE="664", GROUP="plugdev"
ATTR{idVendor}=="21a9", ATTR{idProduct}=="1004", MODE="664", GROUP="plugdev"
LABEL="saleae_logic_rules_end"

12
vscode_extensions Normal file
View File

@@ -0,0 +1,12 @@
golang.go
ms-azuretools.vscode-docker
ms-python.debugpy
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-toolsai.vscode-jupyter-cell-tags
ms-toolsai.vscode-jupyter-slideshow
ms-vscode-remote.remote-containers
p1c2u.docker-compose