This commit is contained in:
Jeffrey Paul 2019-11-14 17:43:12 -08:00
commit 228697c326
13 changed files with 490 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
_site
.sass-cache
vendor
.bundle
.DS_Store
node_modules
.cache

26
Dockerfile Normal file
View File

@ -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/

9
Gemfile Normal file
View File

@ -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"

277
Gemfile.lock Normal file
View File

@ -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

19
Makefile Normal file
View File

@ -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

17
README.markdown Normal file
View File

@ -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.

55
_config.yml Normal file
View File

@ -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

12
_includes/bodyfooter.html Normal file
View File

@ -0,0 +1,12 @@
<small>
<p>
This is a project by Jeffrey Paul
&lt;<a href="mailto:sneak@sneak.berlin">sneak@sneak.berlin></a>&gt;
</p>
<p>
<a href="https://github.com/sneak/consoledonottrack.com">
https://github.com/sneak/consoledonottrack.com
</a>
</p>
</small>

8
_includes/head.html Normal file
View File

@ -0,0 +1,8 @@
<meta charset="UTF-8">
<title>{{ site.title | strip_html}}{% if page.title %}: {{ page.title | strip_html }}{% endif %}</title>
<link rel="stylesheet" href="{{base}}s/css/pygments.css">
<link rel="stylesheet" href="{{base}}s/css/hel.css">
<link rel="stylesheet" href="{{base}}s/font-awesome-4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="{{base}}s/css/bootstrap-3.3.5.min.css">
<link rel="stylesheet" href="{{base}}s/css/local.css">
<meta name="author" content="{{ site.author }}">

11
_layouts/base.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<body>
<head>
{% include head.html %}
</head>
<body>
{{ content }}
{% include javascripts.html %}
</body>
</html>

9
_layouts/page.html Normal file
View File

@ -0,0 +1,9 @@
---
layout: base
---
<section id="page" class="container">
{{ content }}
</section>
<footer id="bodyfooter">
{% include bodyfooter.html %}
</footer>

28
index.markdown Normal file
View File

@ -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
<span class="reallybig">export DO_NOT_TRACK=1</span>
# PRs and Status
* coming soon
* coming soon

12
netlify.toml Normal file
View File

@ -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 = "*"