recentpopularlog in

kme : macos   155

« earlier  
Prevent .DS_Store file creation on network volumes - Mac OS X Hints
<code class="language-bash">find /Volumes/PSP/ | grep -ir '\(\._\..*\|\.AppleDouble\|\.AppleDesktop\|ws_ftp\.log\|Thumbs\.db\|pspbrwse\.jbf\)$' \
| sed 's/^\(.*\)$/rm -f "\1"/' | /bin/sh</code>
finder  mac  macos  annoyance  network  filesytem  sysadmin 
6 weeks ago by kme
How to Prevent .DS_Store File Creation
<code class="language-bash">defaults write DSDontWriteNetworkStores true</code>

See also:
mac  macos  finder  annoyance  defaults  movein 
6 weeks ago by kme
bash - How to set Readline key bindings using ALT (Meta) or some other control key as prefix instead of `C-` and `e`? - Unix & Linux Stack Exchange |
There are too many questions in one question, but this one's interesting:
Furthermore, how can I control the "timeout" that should occur before a key binding, that is a prefix of a longer key binding, is executed?
macos  inputrc  keybindings  terminal 
7 weeks ago by kme
md5sum on Mac OS X | check MD5 hashes
tl;dr: use 'md5', but it doesn't have a '-c' option.
macos  checksum  hashes  md5  sysadmin  security  sortof  solution 
8 weeks ago by kme
How to specify shell for vim? - Super User
I don't understand why this was necessary; my shell was already set to the MacPorts version of Bash, but MacVim was running /bin/sh instead.

<code class="language-vim">set shell=/path/to/zsh</code>
macvim  macos  vim  annoyance  configfile  movein  solution 
8 weeks ago by kme
API Reference: iOS Manual Pages |
This is missing section 1 of the manual, so not so useful. See for a comprehensive list of still-accessible references.
macos  darwin  ios  bsd  developer  manpages  reference 
11 weeks ago by kme
documentation - Does Apple provide a web site with content of `man` pages for the command-line commands bundled with Mac OS X? - Ask Different |
It's like playing whack-a-mole. In 2019, almost 2020, the suggestion to do a web search for " stat.1" is probably still the state of things.

See for a comprehensive list.
macos  ios  bsd  darwin  manpages  reference  developer  annoyance  maybesolution 
11 weeks ago by kme
macos - Changing xterm color definitions breaks X11 - Super User
So I guess the answer is to put that stuff in ~/.Xdefaults, since I couldn't get an obvious answer as to whether ~/.Xresources was read on startup, or whether I needed to create a ~/.xinitrc to read it in with 'xrdb'.
On my Mac OS X 10.5.8, I changed the color background of the Xterm (X11) by adding the following lines to the file .Xdefaults:
macos  osx  x11  xquartz  xdefaults  xresources  solution 
12 weeks ago by kme
XTerm introduction and TrueType fonts configuration
My ~/.Xdefaults
<code class="language-xdefaults">! source:
xterm*background: Black
xterm*faceName: Input Mono
xterm*faceSize: 12
xterm*foreground: grey
! enables "UTF-8 Encoding" and "UTF-8 Fonts" menu options
xterm*locale: UTF-8

xterm*VT100.Translations: #override \
Shift <KeyPress> Insert: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD) \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl <Btn1Up>: exec-formatted("xdg-open '%t'", PRIMARY)</code>
x11  xterm  configuration  xrdb  xresourcess  howto  macos  osx  xquartz  solution  fuckina  essential  movein 
12 weeks ago by kme
How do I uninstall Java on my Mac?
<code class="language-bash">sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Oracle/Java</code>
macos  mac  osx  java  uninstallation  uninstall  solution 
october 2019 by kme
How to Turn Off macOS Mojave Screenshot Preview Thumbnails - The maciOS
This is a ridiculously wordy post for only really saying:
Hide or Turn Off Mojave Screenshot Previews
STEP 1: Shift + Command + 5
STEP 2: Open “options”
STEP 3: Disable floating option
STEP 4: Screenshot thumbnail preview is disabled
macos  mojave  10.14  annoyance  screenshot  solution 
september 2019 by kme
swift - How to force reload preference plist for an app in OS X? - Stack Overflow
The reason is, from Mac OS Mavericks, apple started to cache plist files, which results in replacing a plist file manually has no effect until the cache is reloaded automatically. If you open the application which uses this plist file to early, it overwrites your copied file with the old/cached one.

To reload the preference file manually, use
<code class="language-bash">defaults read <filename>.plist</code>

to read the new plist values.

Source: nethack

Now, I just use a sh script to call the defaults after executing my program.
macos  mojave  10.14  preferences  plist  solution 
september 2019 by kme
Your first extension - Mozilla | MDN
On macOS 10.14 (Mojave), I had to
<code class="language-bash">
sudo port install nodejs10
sudo port install python27
sudo port select --set python2 python27

# install NPM modules into $HOME
npm config set prefix $HOME/.local/lib/node_modules
echo "export PATH=$HOME/.local/lib/node_modules/bin:$PATH" >> ~/.bash_profile

# this needed 'python2' in the PATH (for node-gyp, whatever that is)
npm install -g web-ext

# then build the extension
web-ext build

Also, try to use the linter on the built '.zip' file:

<code class="language-bash">addons-linter web-ext-artifacts/*.zip</code>

Otherwise you might get a "Can't install addon because it seems to be corrupt" error, which probably means that you just have a syntax error in your JavaScript, or else the manifest.json is missing a 'content_scripts' 'matches' key (ref:
webdevel  firefox  extension  webextension  macos  errormessage  solution 
september 2019 by kme
Converting Binary Plists - ForensicsWiki
<code class="language-bash">plutil -convert xml1 file.plist</code>
plist  propertylist  forensics  xml  macos  mac  solution 
september 2019 by kme
Fixing SSL CA certificates with OpenSSL from MacPorts -
MacPorts now offers a Methode that syncs certificates from the system keychain:
<code class="language-bash">sudo port install certsync
sudo port load certsync</code>
As for the missing dependency, consider filing a bug.
openssl  macports  macos  ca  cacert  certificate  curl  maybesolution 
september 2019 by kme
A (slightly) simpler command-line Spotlight search
Any qualified Spotlight query should be usable with "-interpret", so go ahead with
<code class="language-bash">mdfind -interpret "kind:image flash:1 modified:<=1/1/08 ex-girlfriend"</code>
to find those late-night pictures of last year's special someone.
macos  spotlight  metadata  mdfind  commandline  shellscripting  terminal  searchandindex  tipsandtricks  alternativeto  find 
september 2019 by kme
Spotlight Metadata Attributes
You can use these with 'mdfind', e.g., 'kMDItemKind == "Application"'.
mdfind  metadata  spotlight  macos  osx  devel  reference 
september 2019 by kme
macos - How to bring an application made in Automator to the foreground upon launch? - Ask Different
I used 'open -a' to run the application (from a shell script), instead of just running the binary from the Contents/MacOS directory directly.
macos  automator  windowmanagement  sortof  solution 
september 2019 by kme
macOS build fails by linker · Issue #82 · shundhammer/qdirstat
<code>/Applications/Developer/ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Developer/ -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -o .app/Contents/MacOS/ -F/opt/local/libexec/qt5/lib -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [.app/Contents/MacOS] Error 1
make: *** [sub-doc-make_first-ordered] Error 2</code>
build  compiler  errormessage  maybesolution  macos 
september 2019 by kme
827976 - Creating the hidden window lazily on non-Mac platforms
Could this be why shortcuts don't work until the first time a menu selection is triggered?
thunerbird  bug  regression  a11y  macos  shortcutkey  hotkey  needshelp 
september 2019 by kme
Switch Out The Awful Default Notification Center Sound For Something Better [OS X Tips] | Cult of Mac
Doesn't seem to work anymore in Mojave. It's not playing Basso, but some other sound I can't find in /System/Library/Sounds.
macos  notificationcenter  customization  alertsounds  annoyance  maybesolution 
september 2019 by kme
TermiT/Flycut: Clean and simple clipboard manager for developers
See also:
Forked from:

It's just OK, but there's still no way to reliably ignore clipboard input from specific programs (like clipboard managers). Maccy pretty much gets the job done.
macos  clipboard  clipboardmanager  pasteboard  opensource  utility  app  alternativeto  unclutter 
september 2019 by kme
This one is interesting because of the JavaScript transforms (which I didn't explore), and it does let you remove items from the history, but beyond that it's not great.

See also:
macos  pasteboard  clipboard  clipboardmanager  utility  app  alternativeto  maccy  flycut 
september 2019 by kme
See also:

Flycut (available in the app store) is a fork of this.
macos  clipboard  clipboardmanager  pasteboard  utility  app  alternativeto  flycut 
september 2019 by kme
Maccy - clipboard manager for macOS
See also:

I picked this one, because it respects when KeePassX clears the clipboard.

Initial setup:
<code class="language-bash">defaults write org.p0deje.Maccy hotKey control+command+c
# optionally
# defaults write org.p0deje.Maccy pasteByDefault true # default is false</code>

Giving this app permission to control accessibility features is only necessary if you want it to paste by default (default: false).
thisone  macos  pasteboard  clipboar  clipboardmanager  alternativeto  flycut  jumpcut 
september 2019 by kme
How do I change the login screen background in macOS Mojave? - Ask Different
Long story short, name the image /Library/Desktop Pictures/Mojave.heic, preserving the original
macos  loginscreen  wallpaper  background  customization  mojave  10.14  solution 
september 2019 by kme
macos - How to run mvim (MacVim) from Terminal? - Stack Overflow
My solution: add /Applications/ to the PATH.
macvim  macos  console  terminal  cli  movein  solution 
september 2019 by kme
How to Show the Expanded Print Details Dialog in Mac OS by Default
<code class="language-bash">defaults write -g PMPrintingExpandedStateForPrint -bool TRUE</code>
macos  mojave  10.14  defaults  essential  movein  annoyance  printing 
september 2019 by kme
Disable Dock Bouncing in Mac OS X
<code class="language-bash">defaults write no-bouncing -bool TRUE</code>
macos  defaults  solution  dock  animation  movein 
september 2019 by kme
MartinHarding/macOSuckless: Scripts, commands, hacks, and tweaks to make macOS suck less.
<code class="language-bash">
# always show the detailed Print dialog
# source:
defaults write -g PMPrintingExpandedStateForPrint -bool TRUE

# Unhide Library folder
# (might require a restart)
chflags nohidden ~/Library

# Expand Save Panel by default
defaults write -g NSNavPanelExpandedStateForSaveMode -bool true
defaults write -g NSNavPanelExpandedStateForSaveMode2 -bool true

# Set Dock size and make it unchangeable
defaults write tilesize -int 48
defaults write size-immutable -bool true
killall Dock

# Dim Dock icon when application is hidden
defaults write showhidden -boolean true
killall Dock

# Add a blank space to the end of Dock
defaults write persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock

# Disable shadows on window screenshots
defaults write disable-shadow -bool true
killall SystemUIServer

# Disable animations when you open an application from the Dock.
defaults write launchanim -bool false

# disable bounce animation when application wants attention
# source:
defaults write no-bouncing -bool TRUE

# Make all animations faster that are used by Mission Control.
# (not sure if this does anything, actually)
defaults write expose-animation-duration -float 0.1

# Fixes an issue with some applications that have poor smoothing in Mojave when not running on Retina monitors.
# (not sure how much good this actually does)
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
macos  osx  dotfiles  defaults  annoyances  movein  essential 
september 2019 by kme
Disable the New Window Animation in Mac OS X
<code class="language-bash">defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO</code>
window  animation  dialogbox  defaults  movein  essential  macos  mojave  10.14  solution 
september 2019 by kme
« earlier      
per page:    204080120160

Copy this bookmark:

to read