Compare commits

..

8 Commits

Author SHA1 Message Date
4f3d6ca96f New Script: dino-git.sh: build git version of dino XMPP client 2020-06-17 00:43:30 -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
7 changed files with 214 additions and 38 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
}
]
}

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

View File

@@ -85,10 +85,20 @@ function autoSwap(){
echo -e "${LRED}Swap line does not exist in /etc/fstab, please manually check this.${NC}\n"
else
echo -e "${LGREEN}Swap successfully added to /etc/fstab${NC}\n"
echo -e "${LGREEN}Swap successfully added to /etc/fstab! Reboot to verify success...${NC}\n"
echo -e "\n${LGREEN}Swapfile setup complete${NC}\n"
echo -e "${YELLOW}Do you want to reboot your system now?(n/Y): ${NC}"
read rebootCheck
if [ "${rebootCheck}" = "y" ] || [ "${rebootCheck}" = "Y" ];then
echo -e "${LRED}Rebooting system in 3 seconds...${NC}\n"
sleep 3
sudo reboot
else
echo -e "\n${LGREEN}Swapfile setup complete, setting swappiness level...${NC}\n"
fi
fi
}

36
get-lbry.sh Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
appname="LBRY"
version="0.15.0"
arch="amd64"
url="https://github.com/lbryio/lbry-app/releases/download/v${version}/${appname}_${version}_${arch}.deb"
depends="gnome-keyring nodejs npm binutils xz"
tmpdir="/tmp"
output_file="lbry.deb"
desc="Content distribution platform using blockchain technology"
fetch_deps(){
sudo dnf install ${depends}
}
fetch_url(){
if [ ! -f ${tmpdir}/${output_file} ];then
wget -O ${tmpdir}/${output_file} ${url}
fi
}
extract_file(){
cd ${tmpdir}
sudo ar x ${output_file} data.tar.xz
sudo tar xvf data.tar.xz
}
install(){
sudo cp -rv ${tmpdir}/usr/* /usr/
sudo cp -rv ${tmpdir}/opt/* /opt/
}
fetch_deps
fetch_url
extract_file
install

View File

@@ -19,8 +19,10 @@ NC='\033[0m' # No Color
if [ ! -f /usr/bin/nmap ];then
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"
nmap -sP ${lanip}/24 # Use sudo to get names of devies
fi

12
svc.sh
View File

@@ -1,9 +1,9 @@
#!/bin/sh
#!/bin/bash
# SVC - SV Commander - frontend for the sv command
###############################################################################################
## Copyright (c) 2015 - 2020, Justin Moore
## Copyright (c) 2015, Justin Moore
##
## Permission to use, copy, modify, and/or distribute this software
## for any purpose with or without fee is hereby granted,
@@ -47,7 +47,7 @@ stop Stop an enabled service
enable Symenlink directory/file to /var/service
disable Remove symlink from /var/service
enabled View synlinked paths of all services
ls List enabled and disabled service files
ls List enabled and unenabled service files
up Show status of running services
"""
@@ -70,10 +70,10 @@ case $1 in
list | ls | --list )
echo
echo "${LGREEN}Available Services (/etc/sv/):${NC}\n"
echo -e "${LGREEN}Available Services (/etc/sv/):${NC}\n"
ls /etc/sv
echo
echo "${LCYAN}Enabled Services (/var/service):${NC}\n"
echo -e "${LCYAN}Enabled Services (/var/service):${NC}\n"
echo
ls /var/service
echo
@@ -95,7 +95,7 @@ case $1 in
sv stop "${2}"
;;
*)
--help | -h | help )
help
;;
esac