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
download iso from repo | |
https://www.dell.com/support/article/us/en/04/sln296511/updating-dell-poweredge-servers-via-bootable-media-iso?lang=en | |
mkdir -p /mnt/disk | |
mount -o loop download /mnt/disk | |
#where "download" is name of downloaded file. | |
yum install -y glibc.i686 procmail compat-libstdc++-33.i686 libxml2.i686 libstdc++.i686 | |
cd /mnt/disk/drm_files/repository/System$$$$$$$ | |
sh ./apply_components.sh |
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
lsof -Pnl +M -i4 | grep LISTEN |
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
cat $filename | egrep -v "^#" | |
or | |
cat $filename | egrep -v "(^#.*|^$)" |
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
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash | |
or | |
exim -bp | exiqgrep -i | xargs exim -Mrm |
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
sed -i 's/oldstring/new string/g' |
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
CREATE database $databasename; | |
CREATE USER '$newuser'@'localhost' IDENTIFIED BY '$password'; | |
GRANT ALL PRIVILEGES ON $databasename.* TO '$newuser'@'localhost'; | |
or to all | |
GRANT ALL PRIVILEGES ON *.* TO '$newuser'@'localhost'; | |
Reset pass for mysql user | |
ALTER USER '$user'@'localhost' IDENTIFIED BY '$password' ; |
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
mkdir -p /mnt/disk | |
mount -o loop $$$$.iso /mnt/disk | |
yum install squashfs-tools | |
unsquashfs filesystem.squashfs | |
mv filesystem.squashfs /path/to/backup/ | |
mount squashfs/LiveOS/ext3fs.img ext3fs -o loop |
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
#Show email passwords. | |
/usr/local/psa/admin/sbin/mail_auth_view |
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
for i in *mkv; do ffmpeg -i $i -vcodec copy -acodec copy $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
ffmpeg -i $input -map_channel 0.1.1 -strict -2 $output |