yum update yum install epel-release -y yum install rpmconf yum-utils rpmconf -a package-cleanup --leaves package-cleanup --orphans yum install dnf dnf -y remove yum yum-metadata-parser dnf remove yum yum-metadata-parser rm -Rf /etc/yum dnf -y upgrade dnf -y upgrade http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm dnf -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm dnf […]
create linux install USB boot on Mac OS Hint
Check USB disk number $ diskutil list $ diskutil unmountDisk /dev/disk26 $ sudo dd if=/Users/owl/Downloads/CentOS-Stream-x86_64-dvd1.iso of=/dev/disk26 bs=10m Check progress crtl+t
Mac : raid 10 Hint
$ diskutil appleRAID list diskutil createRAID stripe RAID10_Volume_Name JHFS+ UUID_OF_MIRROR_ARRAY1 UUID_OF_MIRROR_ARRAY2 diskutil appleRAID add spare UUID_OF_NEW_HARD_DRIVE UUID_OF_RAID_ARRAY diskutil appleRAID add member UUID_OF_NEW_HARD_DRIVE UUID_OF_RAID_VOLUME diskutil appleRAID repairMirror
MySQL : table name case insensitive : lower_case_table_names
vi /etc/my.cnf lower_case_table_names = 1
centos 7 : mysql-connector-java Hint
# yum install mysql-connector-java # ll /usr/share/java/mysql-connector-java.jar
yum install mysql-connector-java --downloadonly Hint
# yum install mysql-connector-java --downloadonly # ll /var/cache/yum/x86_64/7/base/
bash : get image file size
$ identify -format '%w %h' PG7.png 4158 5908
bash : check Audio file duration
$ ffmpeg -i TTS-TNM@2-PG4-all.aiff 2>&1 | grep Duration Duration: 00:02:11.09, start: 0.000000, bitrate: 352 kb/s $ afinfo TTS-TNM@2-PG4-all.aiff | awk '/estimated duration/ { print $3 }' 131.089070 $ afinfo TTS-TNM@2-PG4-all.aiff | awk '/estimated duration/ { print $3 }' | paste -sd+ - | bc | awk '{printf("%d:%02d:%02d:%02d\n",($1/60/60/24),($1/60/60%24),($1/60%60),($1%60))}' 0:00:02:11
bash : ttsTXT.sh
#!/bin/sh usage () { echo " Usage: $0 --name \"TTS-TNM@1\" --voice-kr Yuna --voice-en Susan -rate 155 " >&2; exit 1 } while [ $# -gt 0 ]; do case "$1" in --name) NAME="$2"; shift;; --voice-kr) VOICEkr="$2"; shift;; --voice-en) VOICEen="$2"; shift;; --rate) RATE="$2"; shift;; --) shift; break;; -*) usage ;; *) break ;; esac; shift done […]