Skip to content

Instantly share code, notes, and snippets.

View danielepolencic's full-sized avatar
💭
☸️

Daniele Polencic danielepolencic

💭
☸️
View GitHub Profile
<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
danielepolencic / # gstreamer - 2020-03-22_10-19-14.txt
Created March 22, 2020 02:42
gstreamer on macOS 10.14.6 - Homebrew build logs
Homebrew build logs for gstreamer on macOS 10.14.6
Build date: 2020-03-22 10:19:14
@danielepolencic
danielepolencic / # gst-plugins-good - 2020-03-22_10-21-10.txt
Created March 22, 2020 02:40
gst-plugins-good on macOS 10.14.6 - Homebrew build logs
Homebrew build logs for gst-plugins-good on macOS 10.14.6
Build date: 2020-03-22 10:21:10
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
end
config.vm.provision :shell, privileged: true, inline: $install_common_tools
@danielepolencic
danielepolencic / intro.html
Created July 25, 2019 14:23
weasyprint TypeError: can only concatenate str (not "float") to str
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cap</title>
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css" />
<style>
@media print {
html {
apiVersion: v1
kind: Namespace
metadata:
name: ingress-nginx
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
---
kind: ConfigMap
apiVersion: v1

Blog posts

@danielepolencic
danielepolencic / drupal.md
Last active April 17, 2019 05:48
Drupal investigation

Drupal investigation

Proposal

  • 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.
import marked, { MarkedOptions } from 'marked'
import { cat } from 'shelljs'
const content = cat('src/architecture/03_bootstrap.md').toString()
function code(lang: string) {
return (token: marked.Token) => {
return token.type === 'code' && token.lang === lang
}
}

Note for my future self:

  • The easiest thing to do is to stick to md. It’s easy to use, you can use any program to view it and can easily be processed.
  • However, markdown is too simple. If you want to augment md, use the same technique of r markdown. Use code snippets to include code and write a md -> to -> md converter. Or just render to text directly.
  • MDX is not portable or easy to use. R markdown works with python only.
  • You might be tempted to include snippets of code dynamically like