Skip to content

Instantly share code, notes, and snippets.

@felipebn
felipebn / srcset-debug-util.js
Created December 15, 2021 12:24 — forked from fatso83/srcset-debug-util.js
SrcSet debug utility to print info on the currently loaded image
/**
* Use this to help determine which images are being used
* at which breakpoint. Will print lots of useful information
* on shown resolution, actual resolution, DPR and more
* Usage:
* var elems = document.querySelectorAll('.c-hero-banner__background img')
* responsiveImageDebugOutput(elems);
*
* Author: Carl-Erik Kopseng
* Source: https://gist.github.com/fatso83/55fc446df3f3965ecd66e8307a5dc0e6
@felipebn
felipebn / import_ESCO_csv_en.cql
Created February 25, 2019 13:00 — forked from rvanbruggen/import_ESCO_csv_en.cql
ESCO database in Neo4j
//Import ESCO using CSV files
create index ON :Occupation(ISCOGroup);
create index ON :Occupation(altLabels);
create index ON :Skill(altLabels);
create index ON :ISCOGroup(code);
create index ON :Skill(conceptUri);
create index ON :ISCOGroup(conceptUri);
create index ON :Occupation(conceptUri);
create index ON :Occupation(preferredLabel);
create index ON :Skill(preferredLabel);
@felipebn
felipebn / install-letsencrypt-in-jdk.sh
Last active April 12, 2016 22:00 — forked from hedefalk/install-letsencrypt-in-jdk.sh
Shell script to update a keystore with lets encrypt cross signatures
#!/bin/bash
#Updates a keystore with lets encrypt cross signatures
[ $# -eq 0 ] && { echo "Usage: $0 <path to keystore>" ; exit 1; }
KEYSTORE=$1
wget https://letsencrypt.org/certs/isrgrootx1.pem
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der