Skip to content

Instantly share code, notes, and snippets.

View batisteo's full-sized avatar
💚
Saluton!

Řůšťý Ðěνëľőρεr batisteo

💚
Saluton!
View GitHub Profile

The state of Pipenv

Python Development Workflow for Humans™

Pipenv is meant to replace:

  • requirements.txt
  • virtualenv / virtualenvwrapper
  • pip-tools / pip-compile
@batisteo
batisteo / index.html
Created February 21, 2018 21:45 — forked from atul-github/index.html
Bouncing balls in D3.js
<!--
Author : Atul Pandit
Email : atul_pandit@yahoo.com / atul.pandit@gmail.com
-->
<!--
DEMO LINK
http://bl.ocks.org/atul-github/0019158da5d2f8499f7f
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
@batisteo
batisteo / django-docs-dark.css
Last active February 2, 2022 20:47
Dark theme for Django framework website djangoproject.com
@-moz-document domain("djangoproject.com") {
/* Fork or comment on: https://gist.github.com/batisteo/4f4c1552ba18ffa51a4b8bfb527c9673 */
/* License: http://www.wtfpl.net/txt/copying */
body,
[role="main"],
.mdzr-boxshadow.container.sidebar-right {
background: #222 !important;
}
<body style="margin:4em 15%;font:17px/1.6em sans">
</body>
@batisteo
batisteo / django-cover.sh
Created June 12, 2018 12:34
Run coverage for a django project with watchexec
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'
}
@batisteo
batisteo / .gitconfig
Created July 19, 2018 12:39
Gitconfig
[core]
editor = vim
excludesfile = /home/batisteo/.gitignore_global
[color]
ui = true
[alias]
co = checkout
br = branch
ci = commit
st = status
@batisteo
batisteo / batisteo.zsh-theme
Created November 5, 2018 22:00
A ZSH theme based on agnoster's
# 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
@batisteo
batisteo / keybase.md
Created November 6, 2018 14:47
Keybase proof

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 / convert_p12.sh
Last active November 20, 2018 13:29
Convert PKCS12 (.p12) into key and crt
openssl pkcs12 -in container.p12 -nocerts -nodes -out filename.key
openssl pkcs12 -in container.p12 -clcerts -nokeys -nodes -out filename.crt
@batisteo
batisteo / imagemagic_black_and_white.sh
Created November 25, 2018 10:21
Improve contrast on B&W scans
mogrify -path out -sigmoidal-contrast 14,55% -gamma 0.7 -gravity Center -crop 1500x2400+0+0 FILES*.jpg