From 228697c3261826444096ddc3a484bfeb12d87080 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Thu, 14 Nov 2019 17:43:12 -0800 Subject: [PATCH] initial --- .gitignore | 7 + Dockerfile | 26 ++++ Gemfile | 9 ++ Gemfile.lock | 277 ++++++++++++++++++++++++++++++++++++++ Makefile | 19 +++ README.markdown | 17 +++ _config.yml | 55 ++++++++ _includes/bodyfooter.html | 12 ++ _includes/head.html | 8 ++ _layouts/base.html | 11 ++ _layouts/page.html | 9 ++ index.markdown | 28 ++++ netlify.toml | 12 ++ 13 files changed, 490 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Makefile create mode 100644 README.markdown create mode 100644 _config.yml create mode 100644 _includes/bodyfooter.html create mode 100644 _includes/head.html create mode 100644 _layouts/base.html create mode 100644 _layouts/page.html create mode 100644 index.markdown create mode 100644 netlify.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..963ee48 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +_site +.sass-cache +vendor +.bundle +.DS_Store +node_modules +.cache diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4689bb6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM ubuntu:18.04 as builder + +RUN apt update && apt install -y \ + build-essential \ + bundler \ + pkg-config \ + libxml2-dev \ + libxslt-dev + +WORKDIR /var/jekyll + +ADD ./Gemfile* /var/jekyll/ + +RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc +RUN yes | gem update --system + +RUN gem install bundler +RUN bundle install + +ADD . /var/jekyll/ + +RUN bundle exec jekyll build + +FROM nginx + +COPY --from=builder /var/jekyll/_site /usr/share/nginx/html/ diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..aefc997 --- /dev/null +++ b/Gemfile @@ -0,0 +1,9 @@ +source "https://rubygems.org" +gem 'github-pages' +gem 'jekyll-minifier' +gem "nokogiri", ">= 1.8.5" +gem "rubyzip", ">= 1.3.0" +gem "jekyll-last-modified-at", "~> 1.1" +gem 'jekyll-feed' + +gem "therubyracer", "~> 0.12.3" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..fb39b08 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,277 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (4.2.11.1) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.11.1) + colorator (1.1.0) + commonmarker (0.17.13) + ruby-enum (~> 0.5) + concurrent-ruby (1.1.5) + cssminify2 (2.0.1) + dnsruby (1.61.3) + addressable (~> 2.5) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + ethon (0.12.0) + ffi (>= 1.3.0) + eventmachine (1.2.7) + execjs (2.7.0) + faraday (0.17.0) + multipart-post (>= 1.2, < 3) + ffi (1.11.1) + forwardable-extended (2.6.0) + gemoji (3.0.1) + github-pages (202) + activesupport (= 4.2.11.1) + github-pages-health-check (= 1.16.1) + jekyll (= 3.8.5) + jekyll-avatar (= 0.6.0) + jekyll-coffeescript (= 1.1.1) + jekyll-commonmark-ghpages (= 0.1.6) + jekyll-default-layout (= 0.1.4) + jekyll-feed (= 0.11.0) + jekyll-gist (= 1.5.0) + jekyll-github-metadata (= 2.12.1) + jekyll-mentions (= 1.4.1) + jekyll-optional-front-matter (= 0.3.0) + jekyll-paginate (= 1.1.0) + jekyll-readme-index (= 0.2.0) + jekyll-redirect-from (= 0.14.0) + jekyll-relative-links (= 0.6.0) + jekyll-remote-theme (= 0.4.0) + jekyll-sass-converter (= 1.5.2) + jekyll-seo-tag (= 2.5.0) + jekyll-sitemap (= 1.2.0) + jekyll-swiss (= 0.4.0) + jekyll-theme-architect (= 0.1.1) + jekyll-theme-cayman (= 0.1.1) + jekyll-theme-dinky (= 0.1.1) + jekyll-theme-hacker (= 0.1.1) + jekyll-theme-leap-day (= 0.1.1) + jekyll-theme-merlot (= 0.1.1) + jekyll-theme-midnight (= 0.1.1) + jekyll-theme-minimal (= 0.1.1) + jekyll-theme-modernist (= 0.1.1) + jekyll-theme-primer (= 0.5.3) + jekyll-theme-slate (= 0.1.1) + jekyll-theme-tactile (= 0.1.1) + jekyll-theme-time-machine (= 0.1.1) + jekyll-titles-from-headings (= 0.5.1) + jemoji (= 0.10.2) + kramdown (= 1.17.0) + liquid (= 4.0.0) + listen (= 3.1.5) + mercenary (~> 0.3) + minima (= 2.5.0) + nokogiri (>= 1.10.4, < 2.0) + rouge (= 3.11.0) + terminal-table (~> 1.4) + github-pages-health-check (1.16.1) + addressable (~> 2.3) + dnsruby (~> 1.60) + octokit (~> 4.0) + public_suffix (~> 3.0) + typhoeus (~> 1.3) + html-pipeline (2.12.0) + activesupport (>= 2) + nokogiri (>= 1.4) + htmlcompressor (0.4.0) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-avatar (0.6.0) + jekyll (~> 3.0) + jekyll-coffeescript (1.1.1) + coffee-script (~> 2.2) + coffee-script-source (~> 1.11.1) + jekyll-commonmark (1.3.1) + commonmarker (~> 0.14) + jekyll (>= 3.7, < 5.0) + jekyll-commonmark-ghpages (0.1.6) + commonmarker (~> 0.17.6) + jekyll-commonmark (~> 1.2) + rouge (>= 2.0, < 4.0) + jekyll-default-layout (0.1.4) + jekyll (~> 3.0) + jekyll-feed (0.11.0) + jekyll (~> 3.3) + jekyll-gist (1.5.0) + octokit (~> 4.2) + jekyll-github-metadata (2.12.1) + jekyll (~> 3.4) + octokit (~> 4.0, != 4.4.0) + jekyll-last-modified-at (1.1.0) + jekyll (>= 3.7, < 5.0) + posix-spawn (~> 0.3.9) + jekyll-mentions (1.4.1) + html-pipeline (~> 2.3) + jekyll (~> 3.0) + jekyll-minifier (0.1.10) + cssminify2 (~> 2.0) + htmlcompressor (~> 0.4) + jekyll (>= 3.5) + json-minify (~> 0.0.3) + uglifier (~> 4.1) + jekyll-optional-front-matter (0.3.0) + jekyll (~> 3.0) + jekyll-paginate (1.1.0) + jekyll-readme-index (0.2.0) + jekyll (~> 3.0) + jekyll-redirect-from (0.14.0) + jekyll (~> 3.3) + jekyll-relative-links (0.6.0) + jekyll (~> 3.3) + jekyll-remote-theme (0.4.0) + addressable (~> 2.0) + jekyll (~> 3.5) + rubyzip (>= 1.2.1, < 3.0) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.5.0) + jekyll (~> 3.3) + jekyll-sitemap (1.2.0) + jekyll (~> 3.3) + jekyll-swiss (0.4.0) + jekyll-theme-architect (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-cayman (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-dinky (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-hacker (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-leap-day (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-merlot (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-midnight (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-minimal (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-modernist (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-primer (0.5.3) + jekyll (~> 3.5) + jekyll-github-metadata (~> 2.9) + jekyll-seo-tag (~> 2.0) + jekyll-theme-slate (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-tactile (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-theme-time-machine (0.1.1) + jekyll (~> 3.5) + jekyll-seo-tag (~> 2.0) + jekyll-titles-from-headings (0.5.1) + jekyll (~> 3.3) + jekyll-watch (2.2.1) + listen (~> 3.0) + jemoji (0.10.2) + gemoji (~> 3.0) + html-pipeline (~> 2.2) + jekyll (~> 3.0) + json (2.2.0) + json-minify (0.0.3) + json (> 0) + kramdown (1.17.0) + libv8 (3.16.14.19) + liquid (4.0.0) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + mini_portile2 (2.4.0) + minima (2.5.0) + jekyll (~> 3.5) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + minitest (5.13.0) + multipart-post (2.1.1) + nokogiri (1.10.5) + mini_portile2 (~> 2.4.0) + octokit (4.14.0) + sawyer (~> 0.8.0, >= 0.5.3) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + posix-spawn (0.3.13) + public_suffix (3.1.1) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + ref (2.0.0) + rouge (3.11.0) + ruby-enum (0.7.2) + i18n + ruby_dep (1.5.0) + rubyzip (2.0.0) + safe_yaml (1.0.5) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sawyer (0.8.2) + addressable (>= 2.3.5) + faraday (> 0.8, < 2.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + therubyracer (0.12.3) + libv8 (~> 3.16.14.15) + ref + thread_safe (0.3.6) + typhoeus (1.3.1) + ethon (>= 0.9.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.2.0) + execjs (>= 0.3.0, < 3) + unicode-display_width (1.6.0) + +PLATFORMS + ruby + +DEPENDENCIES + github-pages + jekyll-feed + jekyll-last-modified-at (~> 1.1) + jekyll-minifier + nokogiri (>= 1.8.5) + rubyzip (>= 1.3.0) + therubyracer (~> 0.12.3) + +BUNDLED WITH + 2.0.1 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..258b384 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +.PHONY: vendor localserve clean distclean deploy + +default: localserve + +_site: vendor + JEKYLL_ENV=production bundle exec jekyll build + find ./_site + +vendor: + bundle install --path vendor/bundle --binstubs vendor/bundle/bin + +localserve: vendor + JEKYLL_ENV=production bundle exec jekyll serve + +clean: + rm -rf tmp _site + +distclean: clean + rm -rfv vendor diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..3bad713 --- /dev/null +++ b/README.markdown @@ -0,0 +1,17 @@ +# consoledonottrack.com + +Jekyll sources for the website consoledonottrack.com. + +# Invitation + +Please feel free to create PRs into any console/TUI project that has +project-specific "disable tracking" flag, and open a PR here to add the link +to the page. + +# Author + +Jeffrey Paul [sneak@sneak.berlin](mailto:sneak@sneak.berlin) + +# LICENSE + +This work is released into the public domain. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..745cebd --- /dev/null +++ b/_config.yml @@ -0,0 +1,55 @@ +# Site settings +title: Console Do Not Track +email: sneak@sneak.berlin +description: > # this means to ignore newlines until "baseurl:" + A proposed unified standard for opting out of telemetry for + TUI/console apps. +baseurl: "" +url: "https://consoledonottrack.com" # the base hostname & protocol for your site +highlighter: rouge +exclude: + - Makefile + - node_modules + - .gitignore + - Gemfile + - Gemfile.lock + - vendor + - README.markdown + - secret/status.json + - Dockerfile + - netlify.toml + +plugins: + - jekyll-minifier + - jekyll-last-modified-at + - jekyll-feed + +jekyll-minifier: + compress_css: true # Default: true + compress_javascript: true # Default: true + compress_json: true # Default: true + +sass: + style: compressed +redcarpet: + extensions: + - no_intra_emphasis + - fenced_code_blocks + - autolink + - strikethrough + - superscript + +permalink: /:year:month:day/:title/ + +defaults: + - + scope: + path: "" # an empty string here means all files in the project + type: "posts" # previously `post` in Jekyll 2.2. + values: + layout: "post" + - + scope: + path: "x/" + values: + image: true diff --git a/_includes/bodyfooter.html b/_includes/bodyfooter.html new file mode 100644 index 0000000..e3786a6 --- /dev/null +++ b/_includes/bodyfooter.html @@ -0,0 +1,12 @@ + +

+ This is a project by Jeffrey Paul + <sneak@sneak.berlin>> +

+ +

+ + https://github.com/sneak/consoledonottrack.com + +

+
diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..13176c1 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,8 @@ + +{{ site.title | strip_html}}{% if page.title %}: {{ page.title | strip_html }}{% endif %} + + + + + + diff --git a/_layouts/base.html b/_layouts/base.html new file mode 100644 index 0000000..8de5d27 --- /dev/null +++ b/_layouts/base.html @@ -0,0 +1,11 @@ + + + + + {% include head.html %} + + + {{ content }} + {% include javascripts.html %} + + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..0581b82 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,9 @@ +--- +layout: base +--- +
+ {{ content }} +
+ diff --git a/index.markdown b/index.markdown new file mode 100644 index 0000000..e710cbf --- /dev/null +++ b/index.markdown @@ -0,0 +1,28 @@ +--- +layout: page +base: . +--- + +# Console Do Not Track (DNT) + +{{ site.description }} + +Gatsby has `GATSBY_TELEMETRY_DISABLED`. Homebrew has +`HOMEBREW_NO_ANALYTICS`. Etcher has... well, +[nothing](https://github.com/balena-io/etcher/issues/2057). + +This is a proposal for a single, standard environment variable that plainly +expresses an OPT OUT by a user of software to any of the following: + +* ad tracking +* usage reporting +* automatic update phone-home +* non-essential requests of any kind to the creator of the software + +export DO_NOT_TRACK=1 + +# PRs and Status + +* coming soon +* coming soon + diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..fdee415 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,12 @@ +[[headers]] + # Define which paths this specific [[headers]] block will cover. + for = "/*" + + [headers.values] + X-Frame-Options = "DENY" + X-XSS-Protection = "1; mode=block" + Content-Security-Policy = "default-src 'none'; img-src 'self' *; font-src 'self' data: fonts.gstatic.com; style-src 'self'; form-action 'none'; connect-src 'self'; script-src 'self'; frame-ancestors 'none'; object-src 'none'; base-uri 'self'; report-uri https://sneakdotberlin.report-uri.com/r/d/csp/enforce ; report-to https://sneakdotberlin.report-uri.com/r/d/csp/enforce ;" + X-Content-Type-Options = "nosniff" + Referrer-Policy = "no-referrer" + Feature-Policy = "geolocation 'none'; midi 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; fullscreen 'none'; payment 'none';" + Access-Control-Allow-Origin = "*"