Skip to content

Instantly share code, notes, and snippets.

@ricardolsmendes
ricardolsmendes / pyproject.toml
Last active December 18, 2022 06:38
pyproject.toml cheat sheet - initial version
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.8.0,<4"]
[project]
name = "pyproject-toml-cheat-sheet"
version = "1.0.0"
authors = [
{name = "Your Name", email = "you@yourdomain.com"},
]
@rokibhasansagar
rokibhasansagar / gitclean.sh
Last active January 13, 2025 12:30 — forked from Zibri/gitclean.sh
Bash script to remove all revisions from github or gist repository.
#!/bin/bash
#
# By Zibri (2019)
# Modified by @rokibhasansagar
#
# Usage: gitclean git-repo-url
#
gitclean ()
{
git clone "$1" workDir && {
@NicolasBizzozzero
NicolasBizzozzero / comprehensive_header.py
Last active March 19, 2025 15:03
Python template of a comprehensive header, with shebang, docstring, GPLv3 license and all metadata.
#!/usr/bin/env python
""" Short description of this Python module.
Longer description of this module.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.