Hot answers tagged command-line
f you store your CA certificates on the filesystem (in PEM format) you can tell curl to use them with sudo curl --cacert /path/to/cacert.pem ... You can also turn off the certificate verification with sudo curl --insecure ... Edit: Updated with regard to feedback If you want to set this permanently, you should create a .curlrc files and place in your ...
Root doesn't read from the current user trust settings, but there are both an admin trust settings and root-user-specific trust settings. (These are also distinct from the system trust settings.) Note, also, that certificate trust settings are somewhat distinct from just adding a certificate to a keychain; you can mark a cert as trusted without fully adding ...
You have to install them because, starting with version 4.3, Xcode is released as a sandboxed, single app bundle. Before that, Xcode was distributed as an installer called Install Xcode.app. The installer had access to the whole filesystem and created a /Developer directory, where frameworks and additional tools where placed, and installed the command line ...
According to Accessing Kernel Memory on the x86 Version of Mac OS X, /dev/mem and /dev/kmem were removed when Apple released OS X for Intel processors. The (excellent) article also explains how to reenable the memory devices, namely using the kmem=1 kernel boot argument. To set it, open Terminal, type: sudo nvram boot-args="kmem=1" and reboot. The ...
I was also looking for a solution for this. Today I just had some time to play around and found a way to programmatically actually call the functionality from the keychain menu plugin. This solution works perfectly as long as Apple doesn't change the relevant parts in the keychain menu plugin. #import <objc/runtime.h> #import ...
If you use MacPorts (and the 3rd-party script you mentioned doesn't remove it from $PATH or calls /usr/bin/curl) you can install the certsync and curl ports in this order. certsync is a tool and a corresponding launchd plist that will export your system keychain to $prefix/etc/openssl/cert.pem and install a symlink $prefix/share/curl/curl-ca-bundle.crt ...
Once you've installed it (I used Macports) your ~/.surfraw.conf file should look like this, at a minimum: SURFRAW_graphical=yes SURFRAW_graphical_browser=open The open command opens the default GUI application for whatever it's passed. In this case it's passed a http:// URL so it opens it in the default browser.
Surfraw 2.2.8 can be installed using either Homebrew or Macports. Here's how to install via Homebrew. These commands should be typed within the terminal application: Install Homebrew ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" Install Surfraw brew install surfraw
Another option is to use MacRuby: /usr/local/bin/macruby -e 'framework "Cocoa";NSWorkspace.sharedWorkspace.setIcon(NSImage.alloc.initWithContentsOfFile("/tmp/a.png"),forFile:"/tmp/file",options:0)' You can download an installer for MacRuby from http://macruby.org.
Only top voted, non community-wiki answers of a minimum length are eligible