Skip to content

Instantly share code, notes, and snippets.

View okraits's full-sized avatar

Oliver Kraitschy okraits

View GitHub Profile
#!/bin/sh
common_set_list_old() {
local cfg="$1"
local val="$2"
local element list=${val//,/ }
#$UCI_DELETE $cfg
for element in $list; do
echo "$element"
done
@okraits
okraits / create_tmux_session.sh
Last active June 2, 2024 19:10
Create or re-attach a tmux session for a given project path (and enter python venv and create additional tmux windows)
#!/bin/sh
# first argument: path to base directory
if [ -n "$1" ]; then
BASE_PATH="$1"
SESSION_NAME="$BASE_PATH"
else
echo "Required argument BASE_PATH missing."
exit 1
fi