Category Archives: Computer

MacOS Sequoia filling up with system data

MacOS Sequoia filling up with system data Disables Spotlight indexing across all drives: sudo mdutil -a -i off. Turn it back on: sudo mdutil -a -i on.

Ollama+Deepseek+Chatbox+AnythingLLM

1. Download Ollama, install it. 2. >>ollama run deepseek-r1:1.5b or 7b, will download the model. 3. Download chatbox, install and configure it. Can run ollama now. >>ollama run deepseek-r1:1.5b

Set up a local web server on macOS 15 Sequoia

1. Configure Apache. $sudo vi /etc/apache2/httpd.conf 1.1. PHP is NOT included in Sequoia. Apple even includes the following note at line 187 of this file: #PHP was deprecated in macOS 11 and removed from macOS 12 1.2. Enable Perl LoadModule perl_module libexec/apache2/mod_perl.so 1.3. Enable personal websites LoadModule userdir_module libexec/apache2/mod_userdir.so Include /private/etc/apache2/extra/httpd-userdir.conf 2. An important new […]

ffmpeg

ffmpeg @MacOS download FFmpeg binaries Extract and Move FFmpeg Binary to /Users/test/Local export PATH=$PATH:/Users/test/Local # convert video/audio format # convert mp4 to mkv, and use H.265 video encoder, AAC audio encoder $ ffmpeg -i input.mp4 -c:v libx265 -c:a aac output.mkv # cut video/audio # cut a segment from 10s to 20s and save as mp4 […]

yt-dlp

on MacOS. # install: $ python3 -m pip install -U yt-dlp # pgrade: $ pip3 install –upgrade pip # version: $ yt-dlp —version # download: $ yt-dlp video_url # list: $ yt-dlp –list-formats video_url # defalut download: -f “bv*+ba/b” # download video/audio: $ yt-dlp -f “398+140” video_url # output mp4: $ yt-dlp -f “247+251” –merge-output-format […]

sips – macOS

# Show all information: $ sips -g all /path/image.jpg # Show some information: $ sips -g pixelWidth -g pixelHeight /path/image.jpg # Modify size: $ sips -z 1024 1024 /path/image.jpg # Change format: $ sips -s format jpeg example.HEIC –out example.jpg # Rotate: $ sips -r 90 example.jpg # Reverse: $ sips -f horizontal example # […]

MPV

~/.config/mpv mpv.conf input.conf ## Seek units are in seconds, but note that these are limited by keyframes RIGHT seek 5 # seek 5 seconds forward LEFT seek -5 # seek 5 seconds backward UP seek 60 # seek 1 minute forward DOWN seek -60 # seek 1 minute backward Ctrl+r cycle-values “!reverse” video-rotate “no” “90” […]

Install Apache, MySQL, PHP on macOS Catalina 10.15

Install Apache, MySQL, PHP on macOS Catalina 10.15

IP v6 for XX-net on Mac

IP v6 for xx-net on windows