Giter Site home page Giter Site logo

migueldemoura / migueldemoura.com Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 6.31 MB

Personal Blog - Projects, Security & Privacy

Home Page: https://migueldemoura.com

License: MIT License

HTML 52.71% Ruby 1.05% JavaScript 7.07% Shell 5.72% SCSS 33.45%
blog pentesting performance personal privacy projects security

migueldemoura.com's People

Contributors

dependabot[bot] avatar migueldemoura avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

imgbotapp

migueldemoura.com's Issues

Migrate to Zola

Jekyll is dead, jekyll-assets is also dead and doesn't work with the latest Jekyll and Ruby versions and I can't be bothered to learn yet another scripting language to fix it. Zola looks nice so time to move to it.

Add SRI and corresponding CSP directive

Chromium has CSP's require-sri-for directive disabled behind a flag, as does Firefox (security.csp.experimentalEnabled).

Jekyll-Assets supports generating the SRI hash, so it's just a matter of enabling it and adding a custom patch for the svg file.

Firefox doesn't load svgs with current CSP rules

CSP rule default-src: 'none' blocks the load of .svg files on Firefox, going against the behaviour explained at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src, which states that it is only used when the other directives are absent.

To mitigate this, I'll change default-src: 'none' to default-src: 'self' and then block the mentioned directives one by one:

connect-src `none`;
frame-src  `none`;
manifest-src  `none`;
media-src  `none`;
object-src  `none`;
worker-src `none`;

Improve build time

The commit 99edb05 has made the build times too slow (over 15 minutes), resulting in a Netlify timeout.

First attempt at fixing this (reducing advpng level): 666c227.
Removed image optimization (now defered to Netlify): 33f8651.
Added image optimization: e3c45ae

Pin ruby version

Blocked by Netlify (can't build with version 2.5.1).

Gemfile

source 'https://rubygems.org'

ruby '2.5.1'

[...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.