http://stuffandnonsense.co.uk/projects/protection-racket
If you use this GDPR privacy policy template, consider saying thank you with a small donation. https://paypal.me/malarkey/20gbp
Last updated: []
Has aliases | |
Has triggers on a schedule | |
Has different job steps |
# PHP CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-php/ for more details | |
# | |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/php:7.2-node-browsers | |
# CircleCI defaults: |
<?php | |
namespace App\Nova\Filters; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Container\Container; | |
use Laravel\Nova\Filters\DateFilter as NovaDateFilter; | |
class DateFilter extends NovaDateFilter |
http://stuffandnonsense.co.uk/projects/protection-racket
If you use this GDPR privacy policy template, consider saying thank you with a small donation. https://paypal.me/malarkey/20gbp
Last updated: []
#!/usr/bin/env bash | |
# found on http://kamisama.me/2012/07/02/faster-php-lint/ | |
find my/folder/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l |
<? | |
//CSP only works in modern browsers Chrome 25+, Firefox 23+, Safari 7+ | |
$headerCSP = "Content-Security-Policy:". | |
"connect-src 'self' ;". // XMLHttpRequest (AJAX request), WebSocket or EventSource. | |
"default-src 'self';". // Default policy for loading html elements | |
"frame-ancestors 'self' ;". //allow parent framing - this one blocks click jacking and ui redress | |
"frame-src 'none';". // vaid sources for frames | |
"media-src 'self' *.example.com;". // vaid sources for media (audio and video html tags src) | |
"object-src 'none'; ". // valid object embed and applet tags src | |
"report-uri https://example.com/violationReportForCSP.php;". //A URL that will get raw json data in post that lets you know what was violated and blocked |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Example Dynamic Form</title> | |
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script> | |
<style> | |
.fileContainer { | |
overflow: hidden; | |
position: relative; |
<div id="app"> | |
<button @click="changeAll(true)"> | |
OPEN ALL THE BOXES | |
</button> | |
<button @click="changeAll(false)"> | |
Close ALL THE BOXES | |
</button> | |
<drop-down :override="override">Hello</drop-down> | |
<drop-down :override="override">Hello</drop-down> |