Posts Tagged with
Mac OS X
When I tried to upgrade LuLu the firewall with command brew upgrade lulu, I faced this error.
Error: lulu: uninstall script /Applications/LuLu.app/Contents/Resources/LuLu Uni nstaller.app/Contents/MacOS/LuLu Uninstaller does not exist. Then thought of trying to remove/uninstall lulu, then re-install it. So, I ran brew remove --cask lulu using homebrew package manager. But the same error occurred.
I thought maybe it did not upgrade as I did not use --cask in the first command.
Just use $CMD_DURATION to get the time taken running the last command.
To make your prompt give you the elapsed time for every command you run in Terminal, add this function in your Fish config file ~/.config/fish/config.fish.
function fish_prompt; echo "$CMD_DURATION "; end The prompt will be like that.
I hope this helps you. You know someone will benefit from this, share it with him/her, a friend or colleage.
We can use string split like this (string split -r -m1 . $filename)[1].
I use this method in my Fish script function.
function vidfps --description "vidfps <input.mp4>" ffmpeg -i $argv -filter:v fps=fps=24 (string split -r -m1 . $argv)[1]-24fps.mp4 end The above function is located in my ~/.config/fish/config.fish file. So I can use it to convert a video to a 24 frames-per-second video using ffmpeg. the code (string split -r -m1 .
Here is a command with 3 arguments.
myfunc one two "third arg" How to get each argument in Fish script/function.
to get all arguments as one string/text, use $argv. to get first argument, use $argv[1]. to get second argument, use $argv[2]. to get the function name or the script name, use $argv[0]. to the remaining three arguments after two : myfunc one two three four five, use $argv[3..-1] as -1 is the end of arguments.
This error appears in too many cases, for example: when you are trying to ..
upgrade Flutter via flutter upgrade. upgrade a homebrew cask via brew upgrade --cask --greedy. push to GitLab. curl some file from the internet. the errno 54 (error number 54) means “Connection reset by peer”, which basically indicates a generic network connectivity problem. So, It’s a network issue. If your internet is very slow and there are hiccups with network, you will face this error.
Using open command doesn’t fulfil this job. So we need to use another command.
We can use open -a TextEdit filename.ext for example open -a TextEdit pin.svg. This command will open the file in TextEdit program in Mac OS.
We can use another flag with the open command to achieve the same goal. The command is open -e filename so we can use open -e /Users/mbp/Desktop/work/VectorAndClipart/pin.svg to open the pin.svg file in the Mac OS graphical text editor TextEdit.
Every Mac device has a serial number that tells its unique story. Mac serial numbers can show information such as purchase, manufacturing, or configuration details. However, they can also be a security risk when left unprotected.
Depending on if you can access the device, are logged into your Apple account, or still have the original packaging, there are several ways to check your Mac’s serial number.
Check the Underside of Your Mac Serial numbers are printed or engraved on the underside of your iMac, MacBook, or Mac Mini.
Set Up Your Apple ID When you set up your Mac, you’re required to sign in to your Apple account. If you skipped it earlier, now is the time to do it via the Apple menu > System Preferences > Sign In.
You can’t use the App Store, download updates, or use iCloud without logging into an Apple ID, so you definitely should.
Activate Service and Support Coverage A key thing to do is activate your Mac’s Service and Support Coverage.
When you press Cmd + Shift + 3 or Cmd + Shift + 4 to take a screenshot on Mac, it saves the file in PNG format. But if you can make Mac screenshots save automatically in other formats such as JPG, GIF, TIFF, HEIC, or even PDF.
change screenshot image format in Terminal Open Terminal from the Application > Utilities folder, or use Spotlight to open it. To save Mac OS screenshots in JPG format/extension, copy this command and paste it on your Terminal and click Enter.
If you are developing mobile apps for Android and/or iPhone and iPad, make sure to delete unused old software you installed in your journey to develop apps through months of updates and installations of libraries and tools.
If you do not want to clean your xcode on Mac manually, there are DevCleaner for Xcode which helps your delete obsolete/unwanted software tools/libs/cache/log.
Android Studio clean up Gradle Your Gradle Home directory contains wrapper, caches and daemons files.