API v3 doc to understand the fields in .github/config/branch-protection/
: https://docs.github.com/en/rest/branches/branch-protection#update-branch-protection--parameters
Example script using it to temporarily disable branch protection rules for a single git push
:
#!/bin/bash
set -o errexit
# Prerequisite: gh repo-config init must be called to initialized JSON config files
config_dir=.github/config/branch-protection
# Backup current configuration:
cp $config_dir/main.json .
# Disable branch protection rules:
yq -iP -o json .required_pull_request_reviews=null $config_dir/main.json
yq -iP -o json .required_status_checks.checks=[] $config_dir/main.json
gh repo-config apply
# Push commit(s):
git push
# Restore initial configuration
mv main.json $config_dir/
gh repo-config apply
⚠️ Currently gh repo-config init
does NOT reflect your current repo settings when initializing files in .github/config/branch-protection/
, cf. issue 159
⚠️ Calling gh repo-config apply
will NOT preserve your current repo settings
Added
- support for Output Intents on document level - thanks to @lka
- support for shading patterns (gradients) - thanks to @andersonhc - PR 1334
- support for setting a minimal row height in tables
- support for
v_align
at the row level in tables - new optional
reset_page_indices
parameter forinsert_toc_placeholder()
- support for
strikethrough text - support for
first_line_indent
intext_region.Paragraph
- new ViewerPreferences.print_scaling
- documentation on
fpdf2
internals - documentation on generating Aztec Codes
- added Slovenian translation of the tutorial: Vodič - thanks to @DeepBlackHole
- support for adding TrueType fonts that are missing the
.notdef
glyph - issue 1161 - thanks to @spacegaori - improved SVG image parsing speed by 50% to 70% - thanks to @petri-lipponen-movesense - PR 1350
- added tutorial "tuto7" (in English and German) with documentation to create PDF/A files with fpdf2 - thanks to @lka
Fixed
FPDF.write_html()
: Fixed rendering of content following<a>
tags; now correctly resets emphasis style post</a>
tag: hyperlink styling contained within the tag authority. - issue 1311- FPDF.footer() does not "leak" its text style to the table of contents anymore
FPDF.table()
: Fixed heading styles containing underline failing to render.FPDF.ln()
: the method now allows a value of0
to be provided forh
.- font optimization: only include fonts effectively used in the final PDF document. Fonts added via
set_font()
oradd_page()
but not actually used in the document are no longer included in the final output. This reduces file size and improves performance, especially for documents with many fallback fonts. - issue 1382 - a
KeyError
was raised in some specific cases when auto-downscaling images - issue 1409Changed
- heading rows of tables are never rendered "alone" on a page anymore
⚡ Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more!
Damn red 👻!
Nice fun game.
I was looking for a short arcade to play in my terminal, this was just perfect for the evening.
This is a port of Simon Tatham’s Portable Puzzle Collection, a collection of 40 single-player logic games. It’s free, with no ads, and is playable offline. All games are generated on demand with adjustable size and difficulty, so you’ll never run out of puzzles.
The Auth0 service is a multi-vendor OAuth provider. It has around 60 different social login providers.
So the user hits "Sign In With Twitter1", gives Twitter their username, password, blood sample, and 2FA token. Twitter gives OpenBenches an authentication token with read only access.
A useful script to work offline, in the train, to run in a local git clone of the target repository :
gh issue list --limit 100 --json number --jq .[].number | while read nb; do
gh issue view $nb > $nb.md
gh issue view $nb --comments >> $nb.md
done
git-remote-gcrypt is a git remote helper to push and pull from repositories encrypted with GnuPG, using a custom format
Supported backends are local, rsync:// and sftp://, where the repository is stored as a set of files, or instead anywhere gcrypt will store the same representation in a git repository
The aim is to provide confidential, authenticated git storage and collaboration using typical untrusted file hosts or services.
Tested: it works fine and is very easy to setup:
git remote add gitcrypt gcrypt::git@...
git config user.signingkey ...
git config gcrypt.participants ...
git push gitcrypt master
To encrypt only SOME files in a git
repo, better look at git-crypt
Why Give Up GitHub?
- Copilot is a for-profit product. [...] Its AI model was trained exclusively with projects that were hosted on GitHub [...] Microsoft and GitHub have been ignoring these license requirements for more than a year
- GitHub has a for-profit software services contract with the USA Immigration and Customs Enforcement (ICE)
- While GitHub pretends to be pro-FOSS, their entire hosting site is, itself, proprietary and/or trade-secret software
- GitHub has long sought to discredit copyleft generally. Their various CEOs have often spoken loudly and negatively about copyleft [...] GitHub is wholly owned by Microsoft, a company whose executives have historically repeatedly attacked copyleft licensing
How Do I Give Up GitHub?
[...]
Alternative Hosting Services: SourceHut, CodeBerg (that can be used with builds.sr.ht to get CI pipelines)Ways To Help Even Before You Give Up GitHub
... (more details in the article)
Added
- new parameters
new_x
andnew_y
forcell()
andmulti_cell()
, replacingln=0
, thanks to @gmischler - new
add_highlight()
method to insert highlight annotations: documentation - new
offset_rendering()
method: documentation - new
.text_mode
property: documentation - the page structure of the documentation has been revised, with a new page about adding text, thanks to @gmischler
- a warning is now raised if a context manager is used inside an
unbreakable()
section, which is not supported
Changed
local_context()
can now "scope" even more properties, likeblend_mode
: documentation
Fixed
- No font properties should be leaked anymore after using markdown or in any other situations (cf. #359), thanks to @gmischler
- If
multi_cell(align="J")
is given text with multiple paragraphs (text followed by an empty line) at once, it now renders the last line of each paragraph left-aligned,
instead of just the very last line (cf. #364), thanks to @gmischler - a regression: now again
multi_cell()
always renders a cell, even iftxt
is an empty string - cf. #349 - a bug with string width calculation when Markdown is enabled - cf. #351
- a few bugs when parsing some SVG files - cf. #356, #358 & #376
- a bug when using
multi_cell(..., split_only=True)
inside anunbreakable
section - cf. #359
Deprecated
- The parameter
ln
tocell()
andmulti_cell()
is now deprecated, usenew_x
andnew_y
instead. - The parameter
center
tocell()
is now deprecated, usealign="C"
instead.
Displaying deprecation warnings
DeprecationWarning
s are not displayed by Python by default.
Hence, every time you use a newer version of fpdf2
, we strongly encourage you to execute your scripts
with the -Wd
option (cf. documentation)
in order to get warned about deprecated features used in your code.
This can also be enabled programmatically with warnings.simplefilter('default', DeprecationWarning)
.
TL;DR: There are three options to fix an NPM dependency:
- Open a bug ticket on the repository of the maintainer
- Fork & Fix
- Create a patch and fix it
J'avais tendance à privilégier la 2e solution, mais elle a l’inconvénient de créer une dépendance à github.com
au moment du build, ce qui n'est pas toujours pratique dans un contexte d'entreprise... patch-package
peut donc s'avérer bien pratique dans ce cas
Last month, I realized late that October was hacktoberfest month!
This online event is a month-long celebration (October 1-31) of open source software run in partnership with different software companies, with a focus on encouraging contributions to open source projects.
While I participated in the 2019 edition as a contributor …
The world is simultaneously underwater and on fire, and people want to know what they can do about it. Let's share resources, services, products and ideas you can use to stop kicking the planet in the face.