Skip to content

Instantly share code, notes, and snippets.

@esedic
esedic / easing.css
Created December 22, 2019 09:25 — forked from bendc/easing.css
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);
OK, that means there's some broken JSON in the params of one of your elements.
Unfortunately, the only way to get some clue as to which one is to modify some Joomla core code.
Edit the file:
./libraries/vendor/joomla/registry/src/Format/Json.php
... and around line 72 will be ...
Which regex-characters must be escaped?
Special characters in regular expressions which have to be escaped are:. \ + * ? [ ^ ] $ ( ) { } = ! < > | : -
And a free escaper
https://www.regex-escape.com/regex-escaping-online.php
and a dummy bit of text to test
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var domStyle = document.createElement("style");
domStyle.append(
'<style>* { color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }\
* * { background-color: rgba(0,255,0,.2) !important; }\
* * * { background-color: rgba(0,0,255,.2) !important; }\
* * * * { background-color: rgba(255,0,255,.2) !important; }\
* * * * * { background-color: rgba(0,255,255,.2) !important; }\
@esedic
esedic / No WordPress urls allowd in Joomla
Created August 7, 2019 12:46 — forked from renekreijveld/No WordPress urls allowd in Joomla
Add this code snippet to .htaccess of your Joomla website after RewriteEngine On
## Redirect WordPress attempts - BEGIN
Redirect 301 /wp-login.php http://127.0.0.1/wp-login.php
Redirect 301 /wp-admin.php http://127.0.0.1/wp-admin.php
RewriteRule ^wp-content(.*)$ http://127.0.0.1/$1 [L,R=301]
RewriteRule ^wp-admin(.*)$ http://127.0.0.1/$1 [L,R=301]
## Redirect WordPress attempts - END
@esedic
esedic / clidemo_3.2.php
Last active August 7, 2019 12:44 — forked from renekreijveld/clidemo_3.2.php
Example CLI script for Joomla 3,2
<?php
/**
* @package Joomla.Cli
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* Joomla 3.2 example CLI script
* Written by: Rene Kreijveld, email [at] renekreijveld.nl
* 05-feb-2014
@esedic
esedic / install_elasticsearch_in_centos.sh
Created April 24, 2019 18:37
Install ElasticSearch with the Cerebro UI on CentOS 6 & 7 (with or without cPanel)
#!/bin/bash
# /**
# * @version 1.0
# * @package Install ElasticSearch with the Cerebro UI on CentOS 6 & 7 (with or without cPanel)
# * @author Fotis Evangelou (https://kodeka.io)
# * @url https://engintron.com
# * @copyright Copyright (c) 2018 - 2019 Kodeka OÜ. All rights reserved.
# * @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
# */
@esedic
esedic / temporary-email-address-domains
Created February 5, 2019 17:49 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@esedic
esedic / basic-webpack-config.js
Created September 20, 2018 19:10
A basic ES2015 Webpack Configuration with Uglification
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
entry: './src/main.js',
output: {
path: './dist/',
filename: 'bundle.js'
},
module: {
@esedic
esedic / gulpfile.js
Created May 15, 2018 09:01 — forked from kaweski/gulpfile.js
GULP
// Load gulp plugins with 'require' function of nodejs
var gulp = require('gulp'),
plumber = require('gulp-plumber'),
gutil = require('gulp-util'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
minifyCSS = require('gulp-minify-css'),
less = require('gulp-less'),
path = require('path');