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
#!/usr/bin/env bash | |
apachectl -S |grep 'namevhost\|alias' |sed 's/^.*namevhost //'|sed 's/^.*alias //'|cut -f1 -d"("|sort -u |
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 | |
# Stop on error | |
set -e | |
# Stop on unitialized variables | |
set -u | |
# Stop on failed pipes | |
set -o pipefail | |
# IP_ADDR can be the IP address of your server OR FQDN that points to your server |
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 | |
IP_ADDR="10.10.10.120" | |
#take care of selinx and the firewall | |
setsebool -P httpd_read_user_content 1 | |
yum install -y policycoreutils-python | |
semanage port -m -t http_port_t -p tcp 8000 |
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
# Boost volume of all videos in directory | |
# This ONLY works in BASH. (maybe others, but it does NOT work in Fish shell) | |
# This is meant to be done by first moving all the videos into a subdirectory | |
# Then the output files with boosted volume are dumped one directory up | |
for i in *.avi; do ffmpeg -i $i -vcodec copy -af "volume=10dB" ../$i; done | |
# ____________________________________________________________________________________ | |
# Combine video from first video with audio from anthe second video. |
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
# This ONLY works in BASH. (maybe others, but it does NOT work in Fish shell) | |
# This is meant to be done by first moving all the videos into a subdirectory | |
# Then the output files with boosted volume are dumped one directory up | |
for i in *.avi; do ffmpeg -i $i -vcodec copy -af "volume=10dB" ../$i; 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
## Basic audio and system packages | |
apt install jackd2 jackd2-firewire jack-tools jack-midi-clock alsa-base alsa-utils alsa-firmware-loaders libasound2 libasound2-data linux-firmware aj-snapshot python3-liblo liblash-compat-1debian0 libarchive13 aj-snapshot software-properties-common unrar-free unzip zip | |
## Graphical environment and system packages | |
apt install nodm xinit xserver-xorg-input-all compton pcmanfm-qt lxqt-config lxqt-config-randr lxqt-session lxqt-runner lxqt-admin lxqt-globalkeys lxqt-power lxqt-panel lxqt-powermanagement lxqt-notificationd lxqt-openssh-askpass compton-conf | |
# For some reason this installed a TON of KDE/plasma dependencies!!! No good. Purge em: | |
apt purge plasma-framework plasma-workspace sddm sddm-theme-breeze |
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
$INPUTVIDEO='input.mp4' | |
$OUTPUTVIDEO='output.mp4' | |
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO |
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 cleans up CSVs | |
echo "Removing all commas between quotes" #Quick and dirty | |
echo "Then removing quotes" | |
echo "Lastly, we remove duplicates based on Column 7 - Phone number" | |
cat $1 | sed ':a;s/^\(\([^"]*,\?\|"[^",]*",\?\)*"[^",]*\),/\1 /;ta' | \ | |
sed 's/\"//g' | \ | |
sort -t ',' -k 7,7 -u > $1-OUTPUT.csv |
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
# This will set all QT5 apps to use whatever theme is set up from qt5ct. | |
# This file needs to be put into /etc/profile.d/ | |
# It actually works! (I have been fighting with this for over a year and finally figured it out) | |
export QT_QPA_PLATFORMTHEME="qt5ct" | |
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
libqt5x11extras5-dev libqt5xmlpatterns5-dev cmake-extras extra-cmake-modules libasound2-dev libjack-jackd2-dev libqt5xdg-dev |
NewerOlder