This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -v | grep "\[gone\]" | grep -Eo "^ ([A-z0-9_./-]+)" | sed -E 's/^ //g' | xargs git branch -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule pagespeed_module> | |
ModPagespeed on | |
ModPagespeedDisallow "*/admin/*" | |
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html | |
ModPagespeedLowercaseHtmlNames on | |
ModPagespeedEnableFilters prioritize_critical_css,defer_javascript | |
ModPagespeedEnableFilters convert_jpeg_to_webp,inline_preview_images | |
ModPagespeedEnableFilters collapse_whitespace,remove_comments | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
chep = cherry-pick | |
chepc = cherry-pick --continue | |
br = branch | |
ci = commit | |
st = status | |
rbi = rebase -i | |
rbc = rebase --continue | |
plu = pull --rebase upstream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"disabled": false, | |
"tracing": { | |
"consoleLevel": "verbose" | |
}, | |
"bindings": [ | |
{ | |
"authLevel": "anonymous", | |
"type": "httpTrigger", | |
"direction": "in", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set +e | |
# Check for accidental `.only` blocks inside tests, and fail the tests if any are found: | |
ACCIDENTAL_ONLY=$(grep -R -m 1 --include="*.js" --exclude-dir=node_modules --exclude-dir=.git "\.only" . 2>&1) | |
HAS_ACCIDENTAL_ONLY=$? | |
set -e | |
if [ $HAS_ACCIDENTAL_ONLY == 0 ]; | |
then | |
echo "Found a \`.only\` block inside the tests; failing CI build. Details below:" | |
echo ${ACCIDENTAL_ONLY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sshpk = require('sshpk'); | |
function printClientCert(cert) { | |
return sshpk.parseCertificate(cert, 'x509'); | |
} | |
module.exports = function (context, req) { | |
context.log( | |
printClientCert(Buffer.from(req.headers['x-arr-clientcert'], 'base64')) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Pre-commit file needs to be executable so first | |
# chmod +x .git/hooks/pre-commit | |
# Fix your grunt path | |
PATH="/usr/local/bin:$PATH" | |
# Runs grunt default | |
echo "Running Grunt..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(this.transitions) { | |
body.addClass('bhv-transition-now').css('height', fullHeight); | |
body.height(); | |
body.removeClass('bhv-transition-now').addClass('state-transitioning'); | |
body.height(); | |
body.css('height', 0); | |
body.on('transitionend.close', function(event) { | |
body.off('transitionend.close'); | |
body.addClass('state-hidden'); | |
body.height(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* TableOptionsetField | |
* DataObjectManager style field that allows arbitrary options to be rendered on | |
* the frontend with maximum flexibility and ease. | |
* @author Will Morgan <will@betterbrief.co.uk> | |
*/ | |
class TableOptionsetField extends FormField { |
NewerOlder