sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ macOS\ Mojave
svn install for mac eclipse 2019-09 Hint
Step1. Install New Software subversive - http://download.eclipse.org/technology/subversive/4.0/update-site/ Add select all for subversive next to install Restart .... Subversive SVN Connectors install Native JavaHL install anyway Step2. Eclipse Marketplace Subclipse 4.3.0 Install
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
Mac : bootcamp custom install Hint
Command + D Duplicate /Applications/Utilities/Boot\ Camp\ Assistant.app to /Applications/Utilities/Boot\ Camp\ Assistant\ Copy.app cd /Applications/Utilities/Boot\ Camp\ Assistant\ Copy.app cd Contents vi Info.plist <key>PreUSBBootSupportedModels</key> <array> <string>MacBook7,1</string> <string>MacBookAir3,2</string> <string>MacBookPro8,3</string> <string>MacPro5,1</string> <string>Macmini4,1</string> <string>iMac12,2</string> </array> Edit to <key>USBBootSupportedModels</key> <array> <string>MacBook7,1</string> <string>MacBookAir3,2</string> <string>MacBookPro8,3</string> <string>MacPro5,1</string> <string>Macmini4,1</string> <string>iMac12,2</string> <string>MacBookPro6,2</string> </array> Create USB Boot by ISO Press Option key […]
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 […]
bash : ttsScript.sh
#!/bin/sh usage () { echo " Usage: $0 --name \"TTS-TNM@1-PG\" --page 1-2 " >&2; exit 1 } while [ $# -gt 0 ]; do case "$1" in --name) NAME="$2"; shift;; --page) PAGE="$2"; shift;; --) shift; break;; -*) usage ;; *) break ;; esac; shift done [ "$NAME" = "" -o "$PAGE" = "" ] && […]
applescript : pages to txt Hint
set parmStat to true repeat set tmpNUM to display dialog "시작 페이지 번호?" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue" --> {button returned:"Continue", text returned:"3"} --display dialog "Hello, " & (text returned of startPG) & "." try set startPG to (text returned of tmpNUM) as number if startPG is greater […]