Skip to content

Instantly share code, notes, and snippets.

FREE SPACE
T4
AEM
Template
Policy area
Policy issue
Taxonomy
Wireframe
Mockup
Niji
@jfix
jfix / gist:bbbd43f0a9155fb18f63a9a29730509c
Last active January 8, 2023 17:45
Docker invocation for webrecorder's browsertrix-crawler; run locally within an ACI context
# Documentation:
# - https://docs.docker.com/cloud/aci-container-features/#persistent-volumes
# - https://github.com/webrecorder/browsertrix-crawler#readme
docker run -v storageaccount/fileshare:/crawls registry.hub.docker.com/webrecorder/browsertrix-crawler crawl --url https://www.oecd.org --url https://www.oecd.org/sitemap/ --scopeType host --generateWACZ --generateCDX --saveState always --text --timeout 120 --workers 2 --collection new-oecd-org
## map the Azure fileshare to the expected directory /crawls expected by the crawl utility
-v jfixsearchstorage/archivefileshare:/crawls
@jfix
jfix / gist:75661e359fe2922600aba65f626ecb9c
Last active August 30, 2022 21:56
Retrieve just the HTTP code for the URLs involved in the request
# -s silent
# -o /dev/null don't output anything
# -L follow redirects of 3xx responses
# -I HEAD request
# -w "%{http_code} %{url} %{url_effective}\n" write specific information (search https://curl.se/docs/manpage.html for "-w "
# see also https://superuser.com/questions/272265/getting-curl-to-output-http-status-code/1176569#1176569
curl -s -o /dev/null -L -I -w "%{http_code} %{url} %{url_effective}\n" https://doi.org/10.1787/9789264214262-en >> out.log
cat out.log
@jfix
jfix / how-to-add-unknown-wifi-dongle.md
Last active July 27, 2020 21:04
Note to self on how I managed to make a Windows-only WiFi dongle work on my Raspberry Pi Zero W
@jfix
jfix / just a sequence of commands
Created June 3, 2020 21:20
how to make a dvd on the cli
ffmpeg -i input.mp4 -target pal-dvd -aspect 16:9 wozzeck_dvd.mpg
<dvdauthor>
<vmgm />
<titleset>
<titles>
<pgc>
<vob file=“wozzeck_dvd.mpg” />
</pgc>
</titles>
@jfix
jfix / dxdbvk.markdown
Created September 3, 2019 15:34
dxdBVK
/*
This script takes the current status of the develop branch
and merges it automatically with the master branch.
It will ignore any modifications in the master branch.
This will trigger a deployment of the master branch to
the live server.
Not everyone has the right to make changes to the master
branch. Which is why we're using a GitHub token for a
@jfix
jfix / my-materialize.css
Created April 30, 2018 17:04
What has been generated by node-sass
.materialize-red {
background-color: #e51c23 !important; }
.materialize-red-text {
color: #e51c23 !important; }
.materialize-red.lighten-5 {
background-color: #fdeaeb !important; }
.materialize-red-text.text-lighten-5 {
// Import materialize-css
@import "../node_modules/materialize-css/sass/materialize";
/* Coolors Exported Palette - coolors.co/86c459-6d6e70-004874-ffffff-89aebe */
/* RGB */
$color1: rgba(134, 196, 89, 1) !default; /* green - dollar-bill */
$color2: rgba(109, 110, 112, 1) !default; /* gray - nickel */
$color3: rgba(0, 72, 116, 1) !default; /* blue - dark-imperial-blue */
// $color4: rgba(186, 20, 50, 1); /* red - crimson-glory */
$color4: rgba(75, 59, 64, 1) !default; /* brown - dark-puce */
@jfix
jfix / my-materialize.scss
Created April 30, 2018 13:55
It's not taking into account my colours :-(
// Import materialize-css
@import "../node_modules/materialize-css/sass/materialize";
/* Coolors Exported Palette - coolors.co/86c459-6d6e70-004874-ffffff-89aebe */
/* RGB */
$color1: rgba(134, 196, 89, 1) !default; /* green - dollar-bill */
$color2: rgba(109, 110, 112, 1) !default; /* gray - nickel */
$color3: rgba(0, 72, 116, 1) !default; /* blue - dark-imperial-blue */
// $color4: rgba(186, 20, 50, 1); /* red - crimson-glory */
$color4: rgba(75, 59, 64, 1) !default; /* brown - dark-puce */