Skip to content

Instantly share code, notes, and snippets.

💚
Saluton!

Baptiste Darthenay batisteo

💚
Saluton!
Block or report user

Report or block batisteo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@batisteo
batisteo / wikipedia_readable.css
Created Mar 31, 2020
A more readable layout for Wikipedia
View wikipedia_readable.css
#bodyContent {
font-size: 1rem !important;
max-width: 850px;
width: 100%;
margin: 0 auto;
padding: 0 1rem
}
@batisteo
batisteo / lectures.toml
Last active May 19, 2019
Lectures 2019
View lectures.toml
[Semaines]
1 = "La Belle Sauvage"
2 = "Saison de rouille"
3 = "Le mythe de Chtulhu"
4 = "Le tour du monde du roi Zibeline"
5 = "Le tour du monde du roi Zibeline"
6 = "Récit d'un branleur"
7 = "Farenheit 451"
8 = "Farenheit 451"
9 = "Comment vivre avec les autres…"
View slovaque.txt
a, et
aby, pour que
adresa, adresse
aj, aussi
ak, si
ako, comme
aký, quel
ale, mais
alebo, ou
alkohol, alcool
@batisteo
batisteo / imagemagic_black_and_white.sh
Created Nov 25, 2018
Improve contrast on B&W scans
View imagemagic_black_and_white.sh
mogrify -path out -sigmoidal-contrast 14,55% -gamma 0.7 -gravity Center -crop 1500x2400+0+0 FILES*.jpg
@batisteo
batisteo / convert_p12.sh
Last active Nov 20, 2018
Convert PKCS12 (.p12) into key and crt
View convert_p12.sh
openssl pkcs12 -in container.p12 -nocerts -nodes -out filename.key
openssl pkcs12 -in container.p12 -clcerts -nokeys -nodes -out filename.crt
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@batisteo
batisteo / batisteo.zsh-theme
Created Nov 5, 2018
A ZSH theme based on agnoster's
View batisteo.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
View .gitconfig
[core]
editor = vim
excludesfile = /home/batisteo/.gitignore_global
[color]
ui = true
[alias]
co = checkout
br = branch
ci = commit
st = status
@batisteo
batisteo / django-cover.sh
Created Jun 12, 2018
Run coverage for a django project with watchexec
View django-cover.sh
cover() {
watchexec -r -s SIGTERM -w src -e py -- 'coverage run ./src/manage.py test --keepdb '$1' && coverage xml -o cov.xml ; coverage report --skip-covered'
}
cov() {
watchexec -r -s SIGTERM -w src -e py -- 'coverage run --parallel-mode ./src/manage.py test --keepdb --parallel 2 --exclude-tag slow '$1' && coverage xml -o cov.xml && coverage report --skip-covered'
}
You can’t perform that action at this time.