summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-03-13 02:41:09 -0700
committerKai Stevenson <kai@kaistevenson.com>2023-03-13 02:41:09 -0700
commitd25bfbc4b61da3e905750ae9eb70b5c8983135be (patch)
tree3a6a932a5b421d01f5d42cbda918543f0c000521 /sh
parentaca46379f7bbe5d7aa084175b3ad7efe7665c7c3 (diff)
restructured directory
Diffstat (limited to 'sh')
-rwxr-xr-xsh/getlogs25
-rwxr-xr-xsh/syncmusic32
-rwxr-xr-xsh/tmuxstartscript19
-rwxr-xr-xsh/w3msearch2
4 files changed, 0 insertions, 78 deletions
diff --git a/sh/getlogs b/sh/getlogs
deleted file mode 100755
index 349c5ac..0000000
--- a/sh/getlogs
+++ /dev/null
@@ -1,25 +0,0 @@
-USER=AberrantFlux
-REMOTELOGDIR=zncu@aberrantflux.xyz:/home/zncu/.znc/moddata/log/$USER/
-LOGDIR=~/log/irc
-NETWORK=AndreiNet
-rsync -avzP --rsh=ssh $REMOTELOGDIR $LOGDIR/$USER
-echo "Logs available for:"
-echo
-for CHANNEL in $LOGDIR/$USER/$NETWORK/*
-do
- DATE=$(date -r $CHANNEL +"%Y-%m-%d %H:%M")
- NAME="$(basename $CHANNEL)"
- echo "$NAME - last edited $DATE"
-done
-while :
-do
- CHANNELSELECTION=exit
- read -p "Enter the name of a channel to read the most recent log: [exit] " CHANNELSELECTION
- CHANNELSELCTION="${CHANNELSELECTION:=exit}"
- if [ $CHANNELSELCTION = exit ];
- then
- break
- fi
- LASTLOG="$(ls -t $LOGDIR/$USER/$NETWORK/$CHANNELSELECTION | head -n1)"
- less $LOGDIR/$USER/$NETWORK/$CHANNELSELECTION/$LASTLOG
-done
diff --git a/sh/syncmusic b/sh/syncmusic
deleted file mode 100755
index 4b487c9..0000000
--- a/sh/syncmusic
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-REMOTEDIR=root@canonical.aberrantflux.xyz:/srv/music
-LOCALDIR=$(pwd)
-echo "Remote directory is at $REMOTEDIR"
-echo "Local dir is at $LOCALDIR"
-echo "To sync from remote to local, enter d. To sync from local to remote, enter u. To cancel, enter c"
-printf "Direction: "
-read DIRECTION
-
-if [ $DIRECTION = d ]
-then
- COMMAND="rsync -avzP $REMOTEDIR/* $LOCALDIR/"
- echo "About to run $COMMAND - enter y to continue, or n to cancel"
- printf "Confirm: "
- read CONFIRMATION
- if [ $CONFIRMATION = y ]
- then
- rsync -avzP $REMOTEDIR/* $LOCALDIR/
- fi
-fi
-
-if [ $DIRECTION = u ]
-then
- COMMAND="rsync -avzP $LOCALDIR/* $REMOTEDIR/"
- echo "About to run $COMMAND - enter y to continue, or n to cancel"
- printf "Confirm: "
- read CONFIRMATION
- if [ $CONFIRMATION = y ]
- then
- rsync -avzP $LOCALDIR/* $REMOTEDIR/
- fi
-fi
diff --git a/sh/tmuxstartscript b/sh/tmuxstartscript
deleted file mode 100755
index e0281ff..0000000
--- a/sh/tmuxstartscript
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-tmux new-session -d
-sleep 0.05
-tmux send-keys "cd ~ ; ls" C-m
-tmux split-pane -h
-sleep 0.05
-tmux send-keys "cd ~/doc ; ls" C-m
-tmux split-pane -v
-sleep 0.05
-tmux send-keys "cd ~/src ; ls" C-m
-tmux new-window
-tmux split-pane -v
-sleep 0.05
-tmux send-keys "alsamixer" C-m
-tmux split-pane -h
-sleep 0.05
-tmux send-keys "cmus" C-m
-tmux select-window -t 1
-tmux attach
diff --git a/sh/w3msearch b/sh/w3msearch
deleted file mode 100755
index e451c58..0000000
--- a/sh/w3msearch
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-w3m www.google.com/search?q="$1"