Compare commits

...

18 Commits

Author SHA1 Message Date
52fde23819 fallocate is no longer a viable option, use dd 2020-07-08 23:20:28 -07:00
f597d1285f doppler.sh: -ft opens forecast in stand alone terminal 2020-06-17 10:55:49 -07:00
2242818f97 doppler.sh: make radar image var more descriptive 2020-06-17 08:50:19 -07:00
6a6616cfbc doppler.sh: add forecast options, clean code 2020-06-17 08:48:38 -07:00
167eaf8c95 New Script: doppler.sh: check local radar map 2020-06-17 06:14:34 -07:00
a67d23f6cf Merge branch 'master' of gitea:mollusk/jitty-scripts 2020-06-17 00:45:17 -07:00
4f3d6ca96f New Script: dino-git.sh: build git version of dino XMPP client 2020-06-17 00:43:30 -07:00
aef1d2d10f auto-ping.sh: rename to aping.sh 2020-05-03 09:20:12 -07:00
6f24ce861c auto-ping.sh: clarify ping message 2020-05-03 09:19:11 -07:00
720e2a2ad3 Merge branch 'master' of origin 2020-04-30 10:52:20 -07:00
eb593f4df7 rtlwifi-setup.sh: use newer repo 2020-04-30 10:51:45 -07:00
faeb58e3d4 nmip.sh: change logic 2020-04-14 09:40:17 -07:00
562ad079ea add todos 2020-04-10 12:35:07 -07:00
9687642456 Merge branch 'master' of gitea:mollusk/jitty-scripts 2020-03-31 08:47:42 -07:00
ad4e548f25 Add todo file 2020-03-31 08:30:46 -07:00
38ef6ec0a3 svc.sh: change unenable to disable 2020-02-28 12:58:55 -07:00
5b91f75118 Remove endless sky save file 2020-02-23 18:11:33 -07:00
38ac94ceaa New File: Endless Sky game save 2020-02-21 14:25:58 -07:00
9 changed files with 183 additions and 8 deletions

46
.todo2 Normal file
View File

@@ -0,0 +1,46 @@
{
"title": "",
"tasks": [
{
"text": "Clean dishes in sink",
"priority": "veryhigh",
"creation": 1585609661,
"completion": 1585675940
},
{
"text": "Cancel duolingo subscription before April 2nd",
"priority": "veryhigh",
"creation": 1585614956
},
{
"text": "Write post on Nim forums about Space Nim",
"priority": "medium",
"creation": 1585117484
},
{
"text": "find radio chargers",
"priority": "low",
"creation": 1585609589
},
{
"text": "work on old computer from Lee",
"priority": "low",
"creation": 1585609627
},
{
"text": "set up joplin on Lindsay's computer",
"priority": "low",
"creation": 1585609744
},
{
"text": "get smokes",
"priority": "medium",
"creation": 1585667890
},
{
"text": "Fix Jsearch",
"priority": "medium",
"creation": 1585671336
}
]
}

45
.todo2~ Normal file
View File

@@ -0,0 +1,45 @@
{
"title": "",
"tasks": [
{
"text": "Clean dishes in sink",
"priority": "veryhigh",
"creation": 1585609661
},
{
"text": "Cancel duolingo subscription before April 2nd",
"priority": "veryhigh",
"creation": 1585614956
},
{
"text": "Write post on Nim forums about Space Nim",
"priority": "medium",
"creation": 1585117484
},
{
"text": "find radio chargers",
"priority": "low",
"creation": 1585609589
},
{
"text": "work on old computer from Lee",
"priority": "low",
"creation": 1585609627
},
{
"text": "set up joplin on Lindsay's computer",
"priority": "low",
"creation": 1585609744
},
{
"text": "get smokes",
"priority": "medium",
"creation": 1585667890
},
{
"text": "Fix Jsearch",
"priority": "medium",
"creation": 1585671336
}
]
}

View File

@@ -31,7 +31,7 @@ withLoop(){
clear clear
echo echo
echo "Pinging: ${site}" echo "Pinging ${site} until a connection is reached"
${pingcmd} ${site} &>/dev/null ${pingcmd} ${site} &>/dev/null
if [ $? = "2" ];then if [ $? = "2" ];then
echo echo

37
dino-git.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
GIT_URL="https://github.com/dino/dino.git"
MASTER_DIR="dino"
BUILD_DIR="build"
if [[ -z "${1}" ]];then
echo "Please specify how many threads you want the make command to use (starting from 0)"
echo "Example: ${0} 5"
echo "The above example will use 4 threads"
exit 0
fi
echo "getting dependencies..."
if [[ -f /usr/bin/apt ]];then
sudo apt install cmake valac libgee-0.8-dev libsqlite3-dev libgtk-3-dev libnotify-dev libgpgme-dev libsoup2.4-dev libgcrypt20-dev libqrencode-dev gettext libsignal-protocol-c-dev
elif [[ -f /usr/bin/dnf ]];then
sudo dnf install cmake vala libgee-devel gtk3-devel libgcrypt-devel qrencode-devel gdk-pixbuf2-devel libsoup-devel gpgme-devel libsignal-protocol-c-devel
else
echo "Package manager not detected"
fi
if [[ ! -d "${MASTER_DIR}" ]];then
git clone ${GIT_URL}
cd ${MASTER_DIR}
./configure
make -j${1}
if [[ ! -f "${BUILD_DIR}/dino" ]];then
echo "The build failed, since the ${BUILD_DIR} is missing"
exit 1
else
echo "You can now run the binary located in $(pwd)/${BUILD_DIR}"
fi
else echo "${MASTER_DIR} directory exists already"
fi

45
doppler.sh Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/sh
# doppler.sh
RADAR_IMAGE_URL="https://radar.weather.gov/lite/N0R/FSX_loop.gif"
VIDEO_PLAYER=/usr/bin/mpv
LINK_DOWNLOADER=/usr/bin/curl
FORECAST_URL="wttr.in"
TERMINAL_APP=/usr/bin/xterm
TERMINAL_OPTS="-maximized -hold -e"
if [[ ! -f "${VIDEO_PLAYER}" ]];then
echo "${VIDEO_PLAYER} not found"
echo "Please install it with your system's package manager"
notify-send "${VIDEO_PLAYER} not found" "Please install it with your system's package manager"
exit 1
fi
if [[ ! -f "${LINK_DOWNLOADER}" ]];then
echo "${VIDEO_PLAYER} not found"
echo "Please install it with your system's package manager"
notify-send "${VIDEO_PLAYER} not found" "Please install it with your system's package manager"
exit 1
fi
case "${1}" in
-f | forecast)
echo "Getting forecast from ${FORECAST_URL}..."
${LINK_DOWNLOADER} ${FORECAST_URL}
;;
-ft | forecast-terminal)
notify-send "Getting forecast from ${FORECAST_URL}..."
${TERMINAL_APP} ${TERMINAL_OPTS} ${LINK_DOWNLOADER} ${FORECAST_URL}
;;
-h | help | --help)
echo -e "\nUsage: ${0} [-f | forecast ], [-ft, forecast-terminal], [-h, help, --help]\n"
;;
*)
notify-send "Getting radar image" "please wait..."
${VIDEO_PLAYER} --loop=inf "${RADAR_IMAGE_URL}"
;;
esac

View File

@@ -41,8 +41,8 @@ function autoSwap(){
echo -e "${LGREEN}------------------------------------------------------------------${NC}" echo -e "${LGREEN}------------------------------------------------------------------${NC}"
read read
echo -e "${LCYAN}\nCreating file in ${SWAPPATH}...\n${NC}" echo -e "${LCYAN}\nCreating file ${SWAPPATH}/${SWAPNAME}...\n${NC}"
fallocate -l ${TOTALRAM}M ${SWAPPATH}${SWAPNAME} dd if=/dev/zero of=${SWAPPATH}${SWAPNAME} count=${TOTALRAM} bs=1MiB
ls -lh ${SWAPPATH}${SWAPNAME} ls -lh ${SWAPPATH}${SWAPNAME}
sleep 1 sleep 1

View File

@@ -19,8 +19,10 @@ NC='\033[0m' # No Color
if [ ! -f /usr/bin/nmap ];then if [ ! -f /usr/bin/nmap ];then
printf "${LRED} Nmap is not installed...${NC}\n" printf "${LRED} Nmap is not installed...${NC}\n"
else elif [ ! -z "${1}" ];then
nmap -sP "${1}/24"
else
printf "${LGREEN}Looking up ${lanip}...${NC}\n" printf "${LGREEN}Looking up ${lanip}...${NC}\n"
nmap -sP ${lanip}/24 # Use sudo to get names of devies nmap -sP ${lanip}/24 # Use sudo to get names of devies
fi fi

View File

@@ -2,7 +2,7 @@
pkgname="master" pkgname="master"
pkgurl="https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/archive/${pkgname}.zip" pkgurl="git@github.com:cilynx/rtl88x2bu/${pkgname}.zip"
installcmd="dnf install" installcmd="dnf install"
installcmdextra="dnf group install" installcmdextra="dnf group install"
pkgdeps="wget unzip dnsmasq hostapd bc dkms kernel-headers rsync" pkgdeps="wget unzip dnsmasq hostapd bc dkms kernel-headers rsync"

6
svc.sh
View File

@@ -35,7 +35,7 @@ help(){
printf """ printf """
svc - Service Commander - frontend for the sv command svc - Service Commander - frontend for the sv command
Usage: svc enable | unenable | enableed | list | up | start | restart | stop <service> Usage: svc enable | disable | enabled | list | up | start | restart | stop <service>
For detailed help, see the commands below: For detailed help, see the commands below:
@@ -45,7 +45,7 @@ start Start an enabled service
restart Restart a enabled service restart Restart a enabled service
stop Stop an enabled service stop Stop an enabled service
enable Symenlink directory/file to /var/service enable Symenlink directory/file to /var/service
unenable Remove symlink from /var/service disable Remove symlink from /var/service
enabled View synlinked paths of all services enabled View synlinked paths of all services
ls List enabled and unenabled service files ls List enabled and unenabled service files
up Show status of running services up Show status of running services
@@ -59,7 +59,7 @@ case $1 in
ln -v -s /etc/sv/"${2}" /var/service/ ln -v -s /etc/sv/"${2}" /var/service/
;; ;;
unenable | --remove-service ) disable | --remove-service )
rm -v /var/service/"${2}" rm -v /var/service/"${2}"
;; ;;