The integrity
property for scripts and stylesheets:
- https://caniuse.com/subresource-integrity
- https://w3c.github.io/webappsec-subresource-integrity/
- https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
The integrity
property for scripts and stylesheets:
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
<?php | |
// https://developer.wordpress.org/reference/hooks/render_block/ | |
add_filter( 'render_block', 'foo_core_gallery_filter', 10, 3); | |
function foo_core_gallery_filter( $block_content, $block ) { | |
// use blockName to only affect the desired block | |
if( "core/calendar" !== $block['blockName'] ) { |
var links = document.querySelectorAll("a"); | |
var linkReport = []; | |
var linksChecked=0; | |
links.forEach(function(link){ | |
var reportLine = {url: link.getAttribute('href'), status:0, redirectedTo: "", message : "", element : link}; | |
linkReport.push(reportLine); | |
console.log("HEAD " + reportLine.url); |
Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
Install the NFS app.
In your Drobo Dashboard, under "Share Settings", make sure the directory you want to share is accessible to "Everyone".
mkdir Common
, where "Common" is the name of the directory you want to share (could be "Downloads", "raspi", whatever you want; I used "Common").This is more of a note-to self, but please feel more than free to replicate it.
wget https://git.io/vpn -O openvpn-install.sh
wget https://raw.githubusercontent.com/Angristan/OpenVPN-install/master/openvpn-install.sh -O openvpn-install.sh
tun0
vs eth0
)
sudo bash -c "iptables-save > /etc/iptables.conf"
and then adding iptables-restore < /etc/iptables.conf
to /etc/rc.localWarning: Due to Homebrew/php
tap being deprecated at the end of March 2018, and the moving of all PHP formulas to Homebrew/core
, the installation of PHP versions we currently use is going to change. Currently PHP 7.2
is available in the core, but we are waiting on previous versions to be made available and will update this guide as soon as we can. Thanks!
Note: This is an updated version of our prior OS X development series. The newly released macOS 10.13 High Sierra and the accompanying updates to Brew require significant changes compared to prior releases, necessitating a thorough revamp in the process. Since 10.12 we now use Homebrew's Apache, rather than the built-in version, but this new appraoch is more flexible and should continue to work on prior OS X versions.
Developing web applications on macOS is a real joy. There are plenty of options for setting up your develop
/* | |
* Replacing SVG strings in data-uri style situations | |
* by Jakob Erikson -- https://github.com/jakob-e | |
* | |
* http://codepen.io/jakob-e/pen/doMoML | |
*/ | |
// Function to replace characters in a string | |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); |
cd /var/www/mautic | |
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; | |
chmod -R g+w app/cache/ | |
chmod -R g+w app/logs/ | |
chmod -R g+w app/config/ | |
chmod -R g+w media/files/ | |
chmod -R g+w media/images/ | |
chmod -R g+w translations/ | |
chown -R $USER:www-data . |