Skip to content

Instantly share code, notes, and snippets.

View jashaj's full-sized avatar
👨‍💻
Moving pixels

Jasha Joachimsthal jashaj

👨‍💻
Moving pixels
View GitHub Profile
@jashaj
jashaj / maven-owasp-debug.txt
Created September 23, 2020 07:12
Maven OWASP purge debug
mvn -X org.owasp:dependency-check-maven:6.0.1:purge
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/maven/3.6.3_1/libexec
Java version: 11.0.8, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: javax.annotation.* < plexus.core
[DEBUG] Imported: javax.annotation.security.* < plexus.core
@jashaj
jashaj / fonts.html
Created June 15, 2020 17:13
Alignment issue with large fonts
<!doctype html>
<html lang=en>
<head>
<title>Fonts</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=Montserrat&display=swap" rel="stylesheet">
<style>
html{font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif }
body {
max-width: 45em;
margin:0 auto;
@jashaj
jashaj / time.html
Created May 9, 2019 15:45
Page with the time element to test with screenreaders like VoiceOver
<!doctype html>
<html lang="en" xml:lang="en">
<head>
<meta charset="UTF-8" />
<title>Time will tell</title>
</head>
<body>
<h1>Examples of the time element</h1>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:eml="urn:oasis:names:tc:evs:schema:eml" xmlns:ns2="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
xmlns:ns3="urn:oasis:names:tc:ciq:xsdschema:xNL:2.0" xmlns:ns6="http://www.kiesraad.nl/extensions"
>
<xsl:template match="/">
<html xml:lang="nl" lang="nl">
<head>
<meta charset="UTF-8"/>
<title>Kandidatenlijst
@jashaj
jashaj / timer.html
Last active April 12, 2019 17:29
Progress bar that counts back to 0.
<!doctype html>
<html lang="en" xml:lang="en">
<head>
<meta charset="UTF-8" />
<title>Count down</title>
<style>
progress {
display: block;
margin: 1em 0;
@jashaj
jashaj / delete-snapshots.sh
Created July 26, 2018 10:40
Delete snapshots in local maven repo
#! /bin/sh
find ~/.m2/repository -name "*-SNAPSHOT" -type d -print -exec rm -r "{}" \;
@jashaj
jashaj / tumblr-disable-trackers.js
Created June 1, 2018 06:17
Tumblr consent screen: disable all trackers
/* Tumblr has more than 300 trackers in the consent screen and there's no disable all. https://www.tumblr.com/privacy/consent
You can uncheck the checkboxes with this script:*/
var labels = document.querySelectorAll('.binary-switch');
labels.forEach(function(label){
var checkbox = label.querySelector('input[type=checkbox]');
if(checkbox.checked){
label.click();
}
});
@jashaj
jashaj / website.css
Last active February 17, 2017 10:49
Gitbook v2 flexible layout with header and footer
.book {
height: auto;
display: flex;
flex-direction: row;
}
.book .book-body, .book .book-body .body-inner {
position: relative;
top: unset;
right: unset;