This file contains hidden or 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
{ let e = document.activeElement; let pchain = []; while (e.tagName !== 'BODY') { pchain.unshift(e.tagName + '[' + (Array.prototype.indexOf.call(e.parentElement.querySelectorAll(':scope > ' + e.tagName), e) + 1) + ']'); e = e.parentElement; } ; '/html/body/' + pchain.join('/').toLowerCase() } |
This file contains hidden or 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
public class DumpServlets extends OncePerRequestFilter { | |
@Override | |
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, | |
FilterChain filterChain) throws ServletException, IOException { | |
System.out.println("---Servlets---"); | |
Map<String, ? extends ServletRegistration> servletRegistrations = request.getServletContext() | |
.getServletRegistrations(); | |
for (Entry<String, ? extends ServletRegistration> servletNameServletRegistrationEntry : servletRegistrations | |
.entrySet()) { |
This file contains hidden or 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
<!-- | |
To use this goal invoke it like this: | |
> mvnw install:install-file@m2 | |
This will install the artifact in local folder m2/repository | |
--> | |
<build> | |
<plugins> | |
<plugin> |
This file contains hidden or 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
// Apply this from main build script using: | |
// if (rootProject.hasProperty('only-tasks')) { | |
// apply from: 'build-only-tasks.gradle' | |
// } | |
// | |
// Usage: | |
// | |
// gradlew -Ponly-tasks | |
// gradlew -Ponly-tasks -Pprompt-for-tasks | |
// gradlew -Ponly-tasks -Pprompt-for-tasks -Pspecified-order |
This file contains hidden or 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
initscript { | |
repositories { | |
maven { | |
url "https://plugins.gradle.org/m2/" | |
} | |
} | |
dependencies { | |
classpath "gradle.plugin.org.barfuin.gradle.taskinfo:gradle-taskinfo:1.0.3" | |
} | |
} |
This file contains hidden or 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
// Apply using the following at the end of build.gradle | |
// | |
// if (hasProperty('RECIPE')) { | |
// apply from: 'recipe.gradle' | |
// } | |
// | |
// Usage: | |
// | |
// > .\gradlew.bat -PRECIPE=First | |
// |
This file contains hidden or 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
-="C:\Program Files\Microsoft VS Code\Code.exe" "%USERPROFILE%\cmd.history" | |
_=doskey /history | wsl grep -e '^^[-_+.]' -v | wsl grep -e '^^break' -v | wsl grep -e '^^)' -v | findstr "^" >> "%USERPROFILE%\cmd.history" | |
+=type "%USERPROFILE%\cmd.history" | |
.=type "%USERPROFILE%\cmd.history" | wsl awk 'BEGIN { print "break||(" ;} { print $1 } END { print ")" }' | clip | |
_u=(type "%USERPROFILE%\cmd.history" | wsl awk '!a[$0]++' | findstr "^" > "%USERPROFILE%\cmd.history.bkp") && (type "%USERPROFILE%\cmd.history.bkp" > "%USERPROFILE%\cmd.history") && (del "%USERPROFILE%\cmd.history.bkp") |
This file contains hidden or 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
(function() { | |
// Does this tab have a tabId | |
let tabId = sessionStorage.getItem("tabId"); | |
if (tabId === null) { | |
// no tabId for this tab | |
// Is lastTabId stored in local storage | |
let lastTabId = localStorage.getItem("lastTabId"); | |
if (lastTabId === null) { | |
// no lastTabId saved in local storage | |
lastTabId = -1; |
This file contains hidden or 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
UriComponents uriComponents = UriComponentsBuilder.fromHttpRequest( | |
new ServletServerHttpRequest(((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest())).build(); |
This file contains hidden or 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 util = require('util'); | |
const puppeteer = require('puppeteer'); | |
const axe = require('axe-core'); | |
const urls = [ | |
]; | |
const results = []; |