Macos' patch command is outdated and doesn't work with some modern patches. Homebrew has a gpatch (GNU's patch) which is up to date and the composer PHP utility takes advantage of this automatically if it's installed. #til
Tagged with #til
13 results found.
-
-
Use an expression to select an array value in PHP. It's handy for quick output logic. Update: it's a bit too clever, perhaps, versus using the tenary operator.
$classes .= [ ' sort-default', ' sort-custom' ][ has_custom_sort( $post ) ]; -
When you want to create an exception to a
add_headerdirective in nginx that is declared in an include, just declare it before it, as successive declarations of the same header are ignored. #til