Compare commits
4 Commits
52fde23819
...
feature
| Author | SHA1 | Date | |
|---|---|---|---|
| 995d5772ff | |||
| 97c1dfa3d3 | |||
| 9b81f94eae | |||
| 3fd6313c1e |
46
.todo2
46
.todo2
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
"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~
45
.todo2~
@@ -1,45 +0,0 @@
|
|||||||
{
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -31,7 +31,7 @@ withLoop(){
|
|||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo "Pinging ${site} until a connection is reached"
|
echo "Pinging: ${site}"
|
||||||
${pingcmd} ${site} &>/dev/null
|
${pingcmd} ${site} &>/dev/null
|
||||||
if [ $? = "2" ];then
|
if [ $? = "2" ];then
|
||||||
echo
|
echo
|
||||||
37
dino-git.sh
37
dino-git.sh
@@ -1,37 +0,0 @@
|
|||||||
#!/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
45
doppler.sh
@@ -1,45 +0,0 @@
|
|||||||
#!/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
|
|
||||||
20
genswap.sh
20
genswap.sh
@@ -41,8 +41,8 @@ function autoSwap(){
|
|||||||
echo -e "${LGREEN}------------------------------------------------------------------${NC}"
|
echo -e "${LGREEN}------------------------------------------------------------------${NC}"
|
||||||
read
|
read
|
||||||
|
|
||||||
echo -e "${LCYAN}\nCreating file ${SWAPPATH}/${SWAPNAME}...\n${NC}"
|
echo -e "${LCYAN}\nCreating file in ${SWAPPATH}...\n${NC}"
|
||||||
dd if=/dev/zero of=${SWAPPATH}${SWAPNAME} count=${TOTALRAM} bs=1MiB
|
fallocate -l ${TOTALRAM}M ${SWAPPATH}${SWAPNAME}
|
||||||
ls -lh ${SWAPPATH}${SWAPNAME}
|
ls -lh ${SWAPPATH}${SWAPNAME}
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -85,20 +85,10 @@ function autoSwap(){
|
|||||||
echo -e "${LRED}Swap line does not exist in /etc/fstab, please manually check this.${NC}\n"
|
echo -e "${LRED}Swap line does not exist in /etc/fstab, please manually check this.${NC}\n"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "${LGREEN}Swap successfully added to /etc/fstab! Reboot to verify success...${NC}\n"
|
echo -e "${LGREEN}Swap successfully added to /etc/fstab${NC}\n"
|
||||||
|
|
||||||
echo -e "${YELLOW}Do you want to reboot your system now?(n/Y): ${NC}"
|
echo -e "\n${LGREEN}Swapfile setup complete${NC}\n"
|
||||||
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
36
get-lbry.sh
36
get-lbry.sh
@@ -1,36 +0,0 @@
|
|||||||
#!/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
|
|
||||||
4
nmip.sh
4
nmip.sh
@@ -19,10 +19,8 @@ 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"
|
||||||
elif [ ! -z "${1}" ];then
|
|
||||||
nmap -sP "${1}/24"
|
|
||||||
|
|
||||||
else
|
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
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
pkgname="master"
|
pkgname="master"
|
||||||
pkgurl="git@github.com:cilynx/rtl88x2bu/${pkgname}.zip"
|
pkgurl="https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959/archive/${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"
|
||||||
|
|||||||
68
svc.sh
68
svc.sh
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# SVC - SV Commander - frontend for the sv command
|
# SVC - SV Commander - frontend for the sv command
|
||||||
|
|
||||||
###############################################################################################
|
###############################################################################################
|
||||||
## Copyright (c) 2015, Justin Moore
|
## Copyright (c) 2015 - 2020, Justin Moore
|
||||||
##
|
##
|
||||||
## Permission to use, copy, modify, and/or distribute this software
|
## Permission to use, copy, modify, and/or distribute this software
|
||||||
## for any purpose with or without fee is hereby granted,
|
## for any purpose with or without fee is hereby granted,
|
||||||
@@ -47,8 +47,8 @@ stop Stop an enabled service
|
|||||||
enable Symenlink directory/file to /var/service
|
enable Symenlink directory/file to /var/service
|
||||||
disable 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 disabled service files
|
||||||
up Show status of running services
|
up Show status of running services
|
||||||
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
@@ -57,45 +57,45 @@ case $1 in
|
|||||||
|
|
||||||
enable | --enable-service )
|
enable | --enable-service )
|
||||||
ln -v -s /etc/sv/"${2}" /var/service/
|
ln -v -s /etc/sv/"${2}" /var/service/
|
||||||
;;
|
;;
|
||||||
|
|
||||||
disable | --remove-service )
|
disable | --remove-service )
|
||||||
rm -v /var/service/"${2}"
|
rm -v /var/service/"${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
enabled | --enabled-services )
|
enabled | --enabled-services )
|
||||||
cd /etc/sv && find -xtype l -exec ls -l {} \;
|
cd /etc/sv && find -xtype l -exec ls -l {} \;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
list | ls | --list )
|
list | ls | --list )
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -e "${LGREEN}Available Services (/etc/sv/):${NC}\n"
|
echo "${LGREEN}Available Services (/etc/sv/):${NC}\n"
|
||||||
ls /etc/sv
|
ls /etc/sv
|
||||||
echo
|
echo
|
||||||
echo -e "${LCYAN}Enabled Services (/var/service):${NC}\n"
|
echo "${LCYAN}Enabled Services (/var/service):${NC}\n"
|
||||||
echo
|
echo
|
||||||
ls /var/service
|
ls /var/service
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
|
||||||
up )
|
up )
|
||||||
sv s /var/service/*
|
sv s /var/service/*
|
||||||
;;
|
;;
|
||||||
|
|
||||||
start )
|
start )
|
||||||
sv start "${2}"
|
sv start "${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart )
|
restart )
|
||||||
sv restart "${2}"
|
sv restart "${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop )
|
stop )
|
||||||
sv stop "${2}"
|
sv stop "${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--help | -h | help )
|
*)
|
||||||
help
|
help
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user