recentpopularlog in

kme : macos   166

« earlier  
Quickly Show/Hide Hidden Files on macOS Sierra, OS X El Capitan & Yosemite | Ian Lunn - Front-end Developer
Since the release of macOS Sierra, when in Finder, it is now possible to use the shortcut:

CMD + SHIFT + .


Not sure if this actually (still) works. I'm pretty sure I restarted Finder.
<code class="language-bash">defaults write com.apple.finder AppleShowAllFiles YE</code>
hiddenfiles  dotfiles  mac  osx  macos  finder  hotkey  fuckina  solution 
5 days ago by kme
Show all files in the Finder | Macworld
<code class="language-bash">defaults write com.apple.Finder AppleShowAllFiles YES</code>
macos  finder  hiddenfiles  configsetting  defaultswrite  defaults  maybesolution 
5 days ago by kme
macos - Imagemagick convert command creating video from images gives avconv error on Mac - Stack Overflow
Find your delegates.xml file on your system. Mine (on my Mac Sierra) is at /usr/local/etc/ImageMagick-6/delegates.xml. But it could also be in /opt/local/etc/ImageMagick-6/delegates.xml. Mine shows
<code class="language-xml"><delegate encode="mpeg:encode" stealth="True" command="&quot;ffmpeg&quot; -nostdin -v -1 -i &quot;%M%%d.jpg&quot; &quot;%u.%m&quot; 2&gt; &quot;%u&quot;"/></code>
libav  ffmpeg  macports  macos  sierra  sortof  solution 
22 days ago by kme
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 
10 weeks ago by kme
How to Prevent .DS_Store File Creation
<code class="language-bash">defaults write com.apple.desktopservices DSDontWriteNetworkStores true</code>

See also: https://hints.macworld.com/article.php?story=2005070300463515
mac  macos  finder  annoyance  defaults  movein 
10 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 | https://unix.stackexchange.com/
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.app  terminal 
10 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 
12 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 
12 weeks ago by kme
API Reference: iOS Manual Pages | https://developer.apple.com/
This is missing section 1 of the manual, so not so useful. See https://pinboard.in/u:kme/b:64ae11e07786 for a comprehensive list of still-accessible references.
macos  darwin  ios  bsd  developer  manpages  reference 
november 2019 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 | https://apple.stackexchange.com/
It's like playing whack-a-mole. In 2019, almost 2020, the suggestion to do a web search for "site:opensource.apple.com/source stat.1" is probably still the state of things.

See https://pinboard.in/u:kme/b:64ae11e07786 for a comprehensive list.
macos  ios  bsd  darwin  manpages  reference  developer  annoyance  maybesolution 
november 2019 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 
october 2019 by kme
XTerm introduction and TrueType fonts configuration
My ~/.Xdefaults
<code class="language-xdefaults">! source: http://futurile.net/2016/06/14/xterm-setup-and-truetype-font-configuration/
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 
october 2019 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
</code>

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: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/content_scripts)
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 - andatche.com
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/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Developer/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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: https://apps.apple.com/us/app/flycut-clipboard-manager/id442160987
Forked from: https://github.com/snark/jumpcut/

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
CutBox
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: https://github.com/cutbox/CutBox
macos  pasteboard  clipboard  clipboardmanager  utility  app  alternativeto  maccy  flycut 
september 2019 by kme
Jumpcut
See also: https://github.com/snark/jumpcut/

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: https://github.com/p0deje/Maccy

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
« earlier      
per page:    204080120160

Copy this bookmark:





to read