Adding files

This commit is contained in:
Scott C. MacCallum 2022-12-06 21:09:41 -05:00
parent 5eafabce48
commit 01f9897826
11 changed files with 220 additions and 14 deletions

View File

@ -18,8 +18,9 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
host=sdf.org host=tty.sdf.org
user=scm
mosh $USER@$host screen bboard mosh $user@$host bboard
exit 0 exit 0

View File

@ -18,8 +18,9 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
host=sdf.org host=tty.sdf.org
user=scm
mosh $USER@$host com mosh scm@$host com
exit 0 exit 0

27
email.ksh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/ksh
# email.ksh
# This script starts email on the SDF cluster
# Copyright (C) 2022 Scott C. MacCallum
# scm@sdf.org
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
host=sdf.org
user=scm
program=alpine
mosh $user@$host $program
exit 0

View File

@ -20,6 +20,7 @@
host=sdf.org host=sdf.org
user=scm
echo "I will get the games list." echo "I will get the games list."
echo "When it is displayed, use the up and down arrow keys to navigate it." echo "When it is displayed, use the up and down arrow keys to navigate it."
@ -27,16 +28,16 @@ echo "Press the Q key to close it."
echo -n "Press the Return/Enter key now until the list displays: " echo -n "Press the Return/Enter key now until the list displays: "
read key read key
mosh $USER@$host games > games.txt mosh $user@$host games > games.txt
# To do: write some logic that checks if games.txt exists, if it does, ask # To do: write some logic that checks if games.txt exists, if it does, ask
# the user if they are OK with it be overwritten. # the user if they are OK with it be overwritten.
mosh $USER@$host less games.txt mosh $user@$host less games.txt
echo -n "Type the name of the game that you want to play: " echo -n "Type the name of the game that you want to play: "
read game read game
mosh $USER@$host $game mosh $user@$host $game
exit 0 exit 0

27
irc.ksh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/ksh
# irc.ksh
# This script starts a remote shell on the SDF cluster show that an IRC session
# can be resumed
# Copyright (C) 2022 Scott C. MacCallum
# scm@sdf.org
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
host=sdf.org
user=scm
mosh scm@$host
exit 0

41
latency.ksh Executable file
View File

@ -0,0 +1,41 @@
#!/bin/ksh
# latency.ksh
# This script displays the latency on each user accessible SDF server
# Run from a local system
# Tested on OpenBSD/amd64 7.2
# Copyright (C) 2022 Scott C. MacCallum
# scm@sdf.org
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
ping -c 3 beastie.sdf.org
ping -c 3 faeroes.sdf.org
ping -c 3 iceland.sdf.org
ping -c 3 ma.sdf.org
ping -c 3 miku.sdf.org
ping -c 3 otaku.sdf.org
ping -c 3 rie.sdf.org
ping -c 3 sdf.org
ping -c 3 sverige.sdf.org
exit 0

View File

@ -17,7 +17,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
host=sdf.org host=sdf.org
user=scm
mosh $USER@$host maint mosh $user@$host maint
exit 0 exit 0

View File

@ -21,14 +21,16 @@
echo 1. aNONradio echo 1. aNONradio
echo 2. BBoard echo 2. BBoard
echo 3. Commode echo 3. Com
echo 4. Donate echo 4. Donate
echo 5. Dues echo 5. Dues
echo 6. Games echo 6. Games
echo 7. IRC echo 7. Gopher
echo 8. Maint echo 8. IRC
echo 9. Mastodon echo 9. Maint
echo 10. Membership echo 10. Mastodon
echo 11. Who's connected echo 11. Matrix
echo 12. Membership
echo 13. Who's connected
exit 0 exit 0

25
play-anonradio.ksh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/ksh
# play-anonradio.ksh
# This script loads the mpg123 program to play aNONradio
# Copyright (C) 2020 Scott C. MacCallum
# scm@sdf.org
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
host=http://anonradio.net:8000/anonradio
mpg123 $host
exit 0

54
ps.ksh Executable file
View File

@ -0,0 +1,54 @@
#!/bin/ksh
# ps.ksh
# This script displays the processes running by a user on each user
# accessible SDF server, as defined by their variable
# Run from a local system
# Tested on OpenBSD/amd64 7.2
# Copyright (C) 2022 Scott C. MacCallum
# scm@sdf.org
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
user_ssh=scm
user_ps=scm
ssh $user_ssh@beastie.sdf.org hostname | more
ssh $user_ssh@beastie.sdf.org ps -u $user_ps | less
ssh $user_ssh@faeroes.sdf.org hostname | more
ssh $user_ssh@faeroes.sdf.org ps -u $user_ps | less
ssh $user_ssh@iceland.sdf.org hostname | more
ssh $user_ssh@iceland.sdf.org ps -u $user_ps | less
ssh $user_ssh@ma.sdf.org hostname | more
ssh $user_ssh@ma.sdf.org ps -u $user_ps | less
ssh $user_ssh@miku.sdf.org hostname | more
ssh $user_ssh@miku.sdf.org ps -u $user_ps | less
ssh $user_ssh@otaku.sdf.org hostname | more
ssh $user_ssh@otaku.sdf.org ps -u $user_ps | less
ssh $user_ssh@rie.sdf.org hostname | more
ssh $user_ssh@rie.sdf.org ps -u $user_ps | less
ssh $user_ssh@sdf.org hostname | more
ssh $user_ssh@sdf.org ps -u $user_ps | less
ssh $user_ssh@sverige.sdf.org hostname | more
ssh $user_ssh@sverige.sdf.org -u $user_ps | less
exit 0

26
start-irc.ksh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/ksh
# irc.ksh
# This script recovers a screen IRC session on the cluster at SDF
# Copyright (C) 2022 Scott C. MacCallum
# scm@sdf.org
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
host=sdf.org
user=scm
mosh scm@$host /sdf/arpa/ns/s/scm/irc.ksh
exit 0