Skip to content

Instantly share code, notes, and snippets.


Daniele Polencic danielepolencic

View GitHub Profile
danielepolencic /
Created Nov 30, 2020
Note for running minikube on Windows.

Minikube is a tricky beast on Windows.

There are several options to run minikube on Windows:

  1. WSL2
  2. HyperV
  3. VirtualBox

The easiest option is to run minikube with VirtualBox.

danielepolencic / redux.ts
Created Sep 9, 2020
Redux toolkit + redux-thunk end-to-end demo
View redux.ts
import { createAsyncThunk, createSlice, configureStore, Dispatch, AnyAction } from '@reduxjs/toolkit'
import thunk, { ThunkDispatch } from 'redux-thunk'
const userAPI = {
async fetchById(id: string) {
return new Promise<{ data: number }>(resolve =>
setTimeout(() => {
resolve({ data: 1 })
}, 4000),
View failing.html
<div></div><hr><h4>Page 2</h4><body class="logged-out env-production page-responsive"> <include-fragment class="js-notification-shelf-include-fragment"></include-fragment> <div class="application-main "> </div> <p id="ajax-error-message" class="ajax-error-message"> <svg class="octicon octicon-alert" width="16" height="16"><path/></svg> You can&#x2019;t perform that action at this time. </p> <p class="js-stale-session-flash"> <svg class="octicon octicon-alert" width="16" height="16"><path/></svg> <span class="js-stale-session-flash-signed-in">You signed in with another tab or window. <a href>Reload</a> to refresh your session.</span> <span class="js-stale-session-flash-signed-out">You signed out in another tab or window. <a href>Reload</a> to refresh your session.</span> </p> <template id="site-details-dialog"> <details class="details-reset details-overlay details-overlay-dark lh-default text-gray-dark hx_rsm"> <summary></summary> <details-dialog class="Box Box--overlay d-flex flex-column anim-fade-in fast hx_
danielepolencic / # gstreamer - 2020-03-22_10-19-14.txt
Created Mar 22, 2020
gstreamer on macOS 10.14.6 - Homebrew build logs
View # gstreamer - 2020-03-22_10-19-14.txt
Homebrew build logs for gstreamer on macOS 10.14.6
Build date: 2020-03-22 10:19:14
danielepolencic / # gst-plugins-good - 2020-03-22_10-21-10.txt
Created Mar 22, 2020
gst-plugins-good on macOS 10.14.6 - Homebrew build logs
View # gst-plugins-good - 2020-03-22_10-21-10.txt
Homebrew build logs for gst-plugins-good on macOS 10.14.6
Build date: 2020-03-22 10:21:10
View Vagrantfile
BOX_IMAGE = "bento/ubuntu-18.04"
KUBEADM_VERSION = "1.13.5-00"
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v|
v.memory = 1024
v.cpus = 1
config.vm.provision :shell, privileged: true, inline: $install_common_tools
danielepolencic / intro.html
Created Jul 25, 2019
weasyprint TypeError: can only concatenate str (not "float") to str
View intro.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<link rel="stylesheet" href="" />
@media print {
html {
View nginx.yaml
apiVersion: v1
kind: Namespace
name: ingress-nginx
labels: ingress-nginx ingress-nginx
kind: ConfigMap
apiVersion: v1
View blog

Blog posts

danielepolencic /
Last active Apr 17, 2019
Drupal investigation

Drupal investigation


  • We should serve the web map from Drupal
  • We can use Drupal custom content types to store policies
  • We can use the Drupal REST API to consume policies (it's unclear the link, perhaps the code)
  • It's worth investigating what happens with the domain name. Is it pointing directly to Acquia?
  • We can store layers as content (each layer has its page and pages can be nested). However this work should be deprioritised as deemed not critical.
You can’t perform that action at this time.