recentpopularlog in

kme : bsd   19

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
How My Printer Caused Excessive Syscalls & UDP Traffic
How my printer caused excessive syscall rates and UDP traffic, and how I used DTrace to root cause it.
I’m not sure whether to laugh or cry. I laugh, because, LOL computers. There’s some new dumb shit you deal with everyday, better to roll with the punches and laugh. You live longer that way.
dtrace  debugging  bsd 
june 2019 by kme
Sed command returning "invalid command code" - Stack Overflow
I had this error on macOS and the problem was that '-i' expects a (zero-length) string argument. But this is a weird-ass way of telling you that.
macos  bsd  sed  shellscripting  annoyance  erromessage  solution 
march 2019 by kme
macos - Case-insensitive ls sorting in Mac OSX - Ask Different | https://apple.stackexchange.com/
I needed sort's '-V' (version string sort) option, and here's how I got that:
Install the GNU Coreutils package:

sudo port install coreutils
sorting  textprocessing  bsd  mac  osx  shellscripting  workaround  solution 
november 2018 by kme
mac osx - Equivalent of logrotate on OSX - Server Fault


Based on Brian Armstrong's answer, here's something with a little more explanation and a correction. This handles the log created by postgres on OSX installed by Homebrew. Located at /etc/newsyslog.d/postgresql.conf:

# logfilename [owner:group] mode count size(KB) when flags [/pid_file] [sig_num]
/usr/local/var/postgres/postgresql.log : 600 2 2048 * J /usr/local/var/postgres/postmaster.pid

This will rotate the log file when it reaches 2MB in size, keep 2 archives (for a total of 6MB storage used), and bzip2-compress the archives. It will notify the postgres process to reopen the log files once rotated, which is necessary to get new log entries and to actually free the disk space without restarting the machine.

Important to note that size is in KB, not bytes.

You can test the config file (without affecting any files) using sudo newsyslog -nvv.

newsyslog documentation is located here: http://www.freebsd.org/cgi/man.cgi?newsyslog.conf(5). Also used: http://www.redelijkheid.com/blog/2011/3/28/adding-custom-logfile-to-os-x-server-log-rotation.html
syslog  logfiles  logs  logrotated  bsd  mac  osx  sysadmin  systemmaintenance  solution 
february 2016 by kme
Apple's OS X Launchd is being ported to FreeBSD | The FreeBSD Forums
Example: the OS X plist editor. It's just an XML editor and can edit pretty much any configuration file on the machine.


Unless the GUI won't start
mac  osx  launchd  systemd  bsd  debate 
september 2015 by kme

Copy this bookmark:





to read