This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ##################################### | |
# Script: Video Preloader v1.1 | |
# Description: Preloads the recent video files of a specific path into the RAM to bypass HDD spinup latency | |
# Author: Marc Gutt | |
# Source: https://forums.unraid.net/topic/97982-video-preloader-avoids-hdd-spinup-latency-when-starting-a-movie-or-episode-through-plex-jellyfin-or-emby/#comments | |
# | |
# Changelog: | |
# 1.1 | |
# - changed the way how movies are found and sorted to avoid confusing error messages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: zram | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Increased Performance In Linux With zRam (Virtual Swap Compressed in RAM) | |
# Description: Adapted from systemd scripts at https://github.com/mystilleef/FedoraZram | |
### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ubuntu 18.04 | |
#php7.4 | |
# install php ppa | |
apt -y install software-properties-common | |
add-apt-repository ppa:ondrej/php -y | |
apt update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
echo Running | |
:wait | |
tasklist /FI "IMAGENAME eq SearchUI.exe" 2>nul | find /I "SearchUI.exe" >nul | |
if not errorlevel 1 goto found | |
echo Waiting 10 seconds | |
timeout /T 10 /NOBREAK>nul | |
goto wait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download latest release | |
wget https://dl.pstmn.io/download/latest/linux64 -O Postman.tar.gz | |
sudo rm -rf /opt/Postman/ | |
sudo tar xf Postman.tar.gz -C /opt/ | |
rm Postman.tar.gz | |
[ -e /usr/bin/postman ] && sudo rm /usr/bin/postman | |
sudo ln -sf /opt/Postman/app/Postman /usr/bin/postman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
msi-keyboard -m normal -c left,red,medium -c middle,purple,medium -c right,sky,medium |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo prime-select nvidia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo prime-select intel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo prime-select query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is useful for setting variables when they will not stick | |
echo "Enter variable name: " | |
read variable_name | |
echo "Enter variable value: " | |
read variable_value | |
echo "adding " $variable_name " to einvironment variables: " $variable_value |
NewerOlder