A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
<?php | |
$im = new \Imagick(); | |
$count = count( \Imagick::queryFonts() ); | |
$im->newImage(450, ($count * 25 + 20), new ImagickPixel('white')); | |
$draw = new \ImagickDraw(); | |
$draw->setFillColor('black'); | |
$draw->setFontSize(20); | |
foreach ( \Imagick::queryFonts() as $i => $font ) { |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
# ignore everything in this directory | |
/* | |
# but not these | |
!.gitignore | |
!assets/ | |
!core/ | |
!_SASS/ | |
!_JS/ |
This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |