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 | |
namespace MyVendor\MyExtension\Property\TypeConverters | |
use TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter | |
class MyPersistentObjectConverter extends PersistentObjectConverter { | |
/** | |
* @var string | |
*/ |
#!/bin/bash | |
# | |
# Creates a backup of a database in mirgrates every table to UTF-8 Including Collation | |
# written by christian Wolff [email protected] | |
## Configuration | |
DB_USER=$1 | |
DB_PASS=$2 | |
DB_NAME=$3 |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_ACCEPT} image/webp | |
RewriteCond %{DOCUMENT_ROOT}/$1.webp -f | |
RewriteRule (.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1] | |
</IfModule> | |
<IfModule mod_headers.c> | |
Header append Vary Accept env=REDIRECT_accept | |
</IfModule> |
<?php | |
/******************************************/ | |
// db_utf8_fix.php // | |
// Original author: J. van Hemert // | |
// Original Date: 26-10-2011 // | |
// // | |
// Fixes encoding when utf-8-encoded data // | |
// is stored in tables with other (e.g. // | |
// latin_swedish_ci) encoding. // | |
// Will convert all columns in all tables // |
(* | |
File: | |
Application.applicationWillSwitchOut.scpt | |
Abstract: | |
This script will automatically save all on-disk text documents with unsaved | |
changes when BBEdit loses focus. | |
Version: |