This file contains 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 | |
for i in *.mkv; do ffmpeg -i "$i" "${i%.*}.mp4"; done |
This file contains 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 | |
ffmpeg -i in.mkv 2>&1 | grep "Stream #" |
This file contains 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 | |
ffmpeg -i in.mkv -map 0:0 -map 0:1 -acodec copy -vcodec copy out.mkv |
This file contains 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 | |
ffmpeg -i in.mkv -map 0:0 -map 0:3 out.mp4 |
This file contains 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.2 | |
#install php w/o apache | |
apt -y install php7.2-cli php7.2-mbstring php-pear php7.2-dev | |
#install sqlcmd | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - |
This file contains 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 16.04 | |
#php7.2 | |
# install php ppa | |
add-apt-repository ppa:ondrej/php | |
apt update -y | |
# install php w/o apache |
This file contains 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.3 | |
# install php ppa | |
apt -y install software-properties-common | |
add-apt-repository ppa:ondrej/php -y | |
apt update |
This file contains 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 | |
#install | |
apt -y install alien build-essential php7.3-dev libaio1 | |
alien oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm | |
alien oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm | |
alien oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm | |
dpkg -i oracle-instantclient12.2-basic_12.2.0.1.0-2_amd64.deb |
This file contains 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 |
This file contains 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 |
OlderNewer