Skip to content

Instantly share code, notes, and snippets.

View EBoisseauSierra's full-sized avatar

Étienne Boisseau-Sierra EBoisseauSierra

View GitHub Profile
@EBoisseauSierra
EBoisseauSierra / pdf-from-svg-layers.sh
Last active July 28, 2023 13:22
Script to generate a PDF in which each page is a layer of a SVG
#!/bin/bash
# Parse CLI argument
INPUT_FILE=$1 # SVG file to export
TEMP_SVG_FILE="temp_$INPUT_FILE" # temporary SVG file, with all layers visible
OUTPUT_FILE="${INPUT_FILE%.*}.pdf" # output filename is the same as input — just changing .svg into .pdf
# Ensure each layer is visible
inkscape --actions=unhide-all --export-filename=$TEMP_SVG_FILE $INPUT_FILE
# Export one PDF per layer
@EBoisseauSierra
EBoisseauSierra / fr-dvorak-bepo-aspyct.keylayout
Created June 8, 2023 15:07 — forked from aspyct/fr-dvorak-bepo-aspyct.keylayout
My custom bepo-based keylayout on OSX
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!-- French Dvorak Layout -->
<!-- http://www.clavier-dvorak.org/ -->
<!-- version 0.6.5 -->
<keyboard group="126" id="6542" name="Aspyct French Dvorak" maxout="5">
<!--
This layout is designed for ISO and ANSI keyboards. The extra
key on an ISO keyboard (next to the left Shift) is optional,
characters on it are also accessible through other keys.
ebo@latitude-e6410:~/téléchargements/libofx_0.9.10.orig/libofx-0.9.10$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
@EBoisseauSierra
EBoisseauSierra / gist:fdcdd3a25bfcaa736e997d5e5bf589af
Created September 2, 2018 09:46
Grisbi 1.0.4 Sourceforge install log
ebo@latitude-e6410:~/téléchargements/grisbi-1.0.4$ whereis grisbi
grisbi:
ebo@latitude-e6410:~/téléchargements/grisbi-1.0.4$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
$ sudo rm -r /usr/local/bin/grisbi
ebo@latitude-e6410:~/téléchargements$ cd grisbi-1.0.2/
[10:15] ebo:~/téléchargements/grisbi (grisbi-1.0.x ✔) $ make distclean
make: *** No rule to make target 'distclean'. Stop.
[10:15] ebo:~/téléchargements/grisbi (grisbi-1.0.x ✔) $ ./autogen.sh
automake and autoconf are installed
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.