A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
const net = require("net"); | |
var server = net.createServer(function (c) { | |
var oldWrite = c.write; | |
c.write = function(d) { | |
if (!Buffer.isBuffer(d)) { | |
d = new Buffer(d); | |
} | |
oldWrite.call(this, d); | |
server.bytesSent += d.length; |
I am running a WordPress multisite network with sub-directory setup. When I check my error.log file, it is full of entries like this one:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
The problem was, in my case, one specific rewrite rule in the .htaccess file.
This recent reddit thread reveals discontent among the web development community about the sheer volume of stuff in a typical node_modules
dir. 140MB in this case!
Opinions in the thread varied from "I'm surprised npm even works" to "everything is fine". I'm not going to offer an opinion, just these two observations:
node_modules
dirs typically do contain lots of stuff that doesn't need to be there.# Extension package to add on Ubuntu 14.04 | |
sudo apt-get install libxml2-dev libbz2-dev libmcrypt-dev libreadline-dev libxslt1-dev autoconf -y | |
# Extension package to add on Ubuntu 18.04 | |
sudo apt-get install libssl-dev | |
# Extension package to add on Ubuntu 20.04 | |
sudo apt install -y pkg-config libssl-dev libsqlite3-dev libbz2-dev libxml2-dev libcurl4-openssl-dev libonig-dev libpq-dev libreadline-dev libxslt1-dev libzip-dev libsodium-dev libwebp-dev | |
# +apxs2 | |
sudo apt-get install apache2-dev -y |
{ | |
"presets": [ | |
[ "env", { | |
"modules": false, | |
"targets": { | |
"browsers": [ | |
"last 2 Chrome versions", | |
"last 2 Firefox versions", | |
"last 2 Safari versions", | |
"last 2 iOS versions", |
Functions | |
startElement | |
endElement | |
_wp_menu_output | |
_add_themes_utility_last | |
_wp_ajax_delete_comment_response | |
_wp_ajax_add_hierarchical_term | |
wp_link_manager_disabled_message | |
_wp_credits_add_profile_link |
build-container: | |
stage: build | |
image: | |
name: moby/buildkit:rootless | |
entrypoint: [ "sh", "-c" ] | |
variables: | |
BUILDKITD_FLAGS: --oci-worker-no-process-sandbox | |
before_script: | |
- | | |
mkdir ~/.docker |
FROM php:7.4-cli-alpine | |
# Install xdebug | |
RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \ | |
&& pecl install xdebug \ | |
&& docker-php-ext-enable xdebug \ | |
&& apk del .phpize-deps | |
WORKDIR /var/www/html |