Skip to content

Instantly share code, notes, and snippets.

View seignovert's full-sized avatar
🪐

Benoît Seignovert seignovert

🪐
View GitHub Profile
@seignovert
seignovert / README.md
Last active February 7, 2025 14:59
[Git] Open git remote alias (macOS)

Open git remote alias (macOS)

Setup:

git config --global alias.open "!git ls-remote --get-url | sed 's/https:\\/\\//git@/' | sed 's/:/\\//g' | sed 's/\\.git//' | sed 's/git@/https:\\/\\//' | xargs open"

Usage:

@seignovert
seignovert / 0-README.md
Last active February 7, 2025 15:06
[Python] Minimalist DOI QRcode

Minimalist DOI QRcode

Get a short doi from a regular doi

python doi.py 10.22002/d1.1173
https://doi.org/ggmwrc
@seignovert
seignovert / watermark.ipynb
Created November 23, 2019 00:58
[Python] Figure watermark
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@seignovert
seignovert / 0-README.md
Last active February 7, 2025 15:01
Add Git-bash to Windows 10 Terminal App

Add Git-bash to Windows 10 Terminal App

Windows Store Terminal app

Into Settings Ctrl+, add a new profile:

        {
            "acrylicOpacity" : 0.5,
            "closeOnExit" : true,
 "colorScheme" : "Campbell",
@seignovert
seignovert / README.md
Last active February 7, 2025 15:02
[Python] Wrap image on a sphere

Wrap image on a sphere

Install

conda install basemap matplotlib

Run

@seignovert
seignovert / zenodo-doi-first-badge.md
Created February 21, 2019 20:02
Setup Zenodo DOI badge before the first release

Setup Zenodo DOI badge before the first release

Zenodo doi badge

Before submitting your first release, identify your Github repo id on Github API at:

https://api.github.com/repos/{user}/{repo}
@seignovert
seignovert / pdftk-macos.md
Last active January 14, 2019 17:09
PDFtk install on macOS > 10.11
@seignovert
seignovert / travis-ci-docker.md
Last active February 7, 2025 15:02
Travis-CI with Docker

Travis Docker

Create PyPi encrypted password using Tavis-CLI inside Docker.

docker run -v (pwd):/project -it --rm --entrypoint=/bin/sh skandyla/travis-cli
/project # travis login --org --github-token ##gh_token##
@seignovert
seignovert / keybase.md
Last active February 7, 2025 15:04
Keybase proof

Keybase proof

I hereby claim:

  • I am seignovert on github.
  • I am seignovert (https://keybase.io/seignovert) on keybase.
  • I have a public key ASBCo0ApV6MPLucQZnl0rDX2NOdpYmaQFw0cWdAOrW8Wigo

To claim this, I am signing this object:

@seignovert
seignovert / pre-commit
Created January 20, 2018 15:18
[Symfony 4] PHP Unit pre-commit
#!/usr/bin/env php
<?php
$projectName = basename(getcwd());
exec('php bin/phpunit', $output, $returnCode);
if ($returnCode !== 0) {
$minimalTestSummary = array_pop($output);