Skip to content

gafam/www.gafam.info

Repository files navigation


About

This repository contains the sources of the gafam.info web page.

It is about collecting, maintaining and promoting translations of the GAFAM poster campaign by La Quadrature du Net.

The web page and its accompanying repository gafam-poster-translations are intended to support the lovely people of LQDN in spreading the word about their campaign.

Contributions are always welcome!

Usage

Create development sandbox in .venv folder:

{apt,brew,yum,zypper} install python3 git
export NODEJS_VERSION=14.20.0
export NPM_VERSION=6.14.17
export YARN_VERSION=1.22.19
source /dev/stdin <<<"$(curl -s https://raw.githubusercontent.com/cicerops/supernode/main/supernode)"

Bundle Javascript and CSS assets using webpack:

yarn install
yarn run build

Watch files for rebundling:

yarn run watch

Have a look:

open ./htdocs/index.html

Create thumbnail image from poster PDF

# Just a workbench
mkdir tmp; cd tmp

# Acquire PDF file
wget https://ptrace.gafam.info/upstream/pdf/lqdn-gafam-poster-de.pdf

# Layout multiple pages in matrix
pdfnup --nup 2x3 --landscape=true --no-tidy lqdn-gafam-poster-de.pdf

# Convert to GIF format appropriately
convert -units PixelsPerInch lqdn-gafam-poster-de-nup.pdf -density 72 -trim +repage -resize 595x gafam-german-card.gif

# Copy to target directory
cp gafam-german-card.gif ../htdocs/static/img/

Download MP4 video from Twitter

# Just a workbench
mkdir tmp; cd tmp

# youtube-dl does it all ;]
youtube-dl --output 'lqdn-gafam-paris.mp4' https://twitter.com/laquadrature/status/944148790684069888

# Upload to content web space
make ptrace source=lqdn-gafam-paris.mp4