httpd.service failed because a configured resource limit was exceeded : Failed to start The Apache HTTP Server

It may be that your disk space is out!

see for yourself:

run “df -h”

Find more space in order to start apache.

sudo service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because a configured resource limit was exceeded. See "systemctl status httpd.service" and "journalctl -xe" for details.

Apr 04 00:20:23 rehmann-co-instance-us-west dbus[322]: avc: received setenforce notice (enforcing=0)
Apr 04 00:20:23 rehmann-co-instance-us-west dbus-daemon[322]: dbus[322]: avc: received setenforce notice (enforcing=0)
Apr 04 00:20:26 rehmann-co-instance-us-west sudo[1177]: root : TTY=pts/0 ; PWD=/var/log/httpd ; USER=root ; COMMAND=/sbin/service httpd restart
Apr 04 00:20:26 rehmann-co-instance-us-west polkitd[301]: Registered Authentication Agent for unix-process:1178:13160 (system bus name :1.31 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Apr 04 00:20:26 rehmann-co-instance-us-west systemd[1]: httpd.service failed to run 'start' task: No space left on device
Apr 04 00:20:26 rehmann-co-instance-us-west systemd[1]: Failed to start The Apache HTTP Server.

jpegoptim Flags

jpegoptim -help
jpegoptim v1.4.4 Copyright (c) 1996-2016, Timo Kokkonen
Usage: jpegoptim [options]

-d, --dest= specify alternative destination directory for
optimized files (default is to overwrite originals)
-f, --force force optimization
-h, --help display this help and exit
-m, --max=
set maximum image quality factor (disables lossless
optimization mode, which is by default on)
Valid quality values: 0 - 100
-n, --noaction don't really optimize files, just print results
-S, --size=
Try to optimize file to given size (disables lossless
optimization mode). Target size is specified either in
kilo bytes (1 - n) or as percentage (1% - 99%)
-T, --threshold= keep old file if the gain is below a threshold (%)
-b, --csv print progress info in CSV format
-o, --overwrite overwrite target file even if it exists (meaningful
only when used with -d, --dest option)
-p, --preserve preserve file timestamps
-P, --preserve-perms
preserve original file permissions by overwriting it
-q, --quiet quiet mode
-t, --totals print totals after processing all files
-v, --verbose enable verbose mode (positively chatty)
-V, --version print program version

-s, --strip-all strip all markers from output file
--strip-none do not strip any markers
--strip-com strip Comment markers from output file
--strip-exif strip Exif markers from output file
--strip-iptc strip IPTC/Photoshop (APP13) markers from output file
--strip-icc strip ICC profile markers from output file
--strip-xmp strip XMP markers markers from output file

--all-normal force all output files to be non-progressive
--all-progressive force all output files to be progressive
--stdout send output to standard output (instead of a file)
--stdin read input from standard input (instead of a file)

Program Documentation is a documentation hosting platform specializing in windows documentation files. By converting “.chm” windows help files into html format, they become viewable and searchable on the web so programming questions can be answered more easily. contains a wide variety of help documentation from late 90s help files from pre-Windows XP computers to the latest Python documentation.

ulimit flags, commands, and help

help ulimit
ulimit: ulimit [-SHacdefilmnpqrstuvx] [limit]
Modify shell resource limits.

Provides control over the resources available to the shell and processes
it creates, on systems that allow such control.

-S use the `soft' resource limit
-H use the `hard' resource limit
-a all current limits are reported
-b the socket buffer size
-c the maximum size of core files created
-d the maximum size of a process's data segment
-e the maximum scheduling priority (`nice')
-f the maximum size of files written by the shell and its children
-i the maximum number of pending signals
-l the maximum size a process may lock into memory
-m the maximum resident set size
-n the maximum number of open file descriptors
-p the pipe buffer size
-q the maximum number of bytes in POSIX message queues
-r the maximum real-time scheduling priority
-s the maximum stack size
-t the maximum amount of cpu time in seconds
-u the maximum number of user processes
-v the size of virtual memory
-x the maximum number of file locks

If LIMIT is given, it is the new value of the specified resource; the
special LIMIT values `soft', `hard', and `unlimited' stand for the
current soft limit, the current hard limit, and no limit, respectively.
Otherwise, the current value of the specified resource is printed. If
no option is given, then -f is assumed.

Values are in 1024-byte increments, except for -t, which is in seconds,
-p, which is in increments of 512 bytes, and -u, which is an unscaled
number of processes.

Exit Status:
Returns success unless an invalid option is supplied or an error occurs.

Better Key Rates – OSX

Set better keyboard repeat rates with the following commands in terminal. Before running the commands set your Key Repeat and Delay Until Repeat to the fastest options (System Preferences->Keyboard).

#disable special characters when holding keys
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

# normal minimum is 15 (225 ms)
defaults write -g InitialKeyRepeat -float 10.0
defaults write NSGlobalDomain InitialKeyRepeat -float 10.0

# normal minimum is 2 (30 ms)
defaults write NSGlobalDomain KeyRepeat -float 1.0
defaults write -g KeyRepeat -float 1.0

Log out and back in and your keys will be blazing fast. Don’t set them too low or you will have trouble using your keyboard to type in your password (trust me, I tried super low values and almost got locked out). If you re-open or adjust your keyboard settings from the system preferences menu, you may have to re-run these commands (so keep this post handy!)

Change Mac Address of Network Cards in OSX

Give yourself a fresh mac address.

  1. Generate a random valid MAC: openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
  2. Set it: sudo ifconfig en0 ether 00:00:00:00:00:00

Obviously you’ll need to replace 00:00:00:00:00:00 with your generated mac address. Don’t mind the openssl error “unable to write ‘random state'”. It worked just fine.