Skip to content

Instantly share code, notes, and snippets.

@peterhurford
peterhurford / how_to_release_a_new_python_package.md
Last active October 19, 2023 01:09
How to release a new Python package

Nothing novel here, just want these instructions all in one place for my own use.

1.) Ensure everything is pushed to master and is working

2.) Ensure CHANGES.md is up to date with latest

3.) Ensure version in setup.py is incremented

4.) Tag the repo - e.g., git tag 0.2 && git push origin 0.2

@umangahuja1
umangahuja1 / run python file without typing python and extension.md
Last active September 4, 2023 13:31
How to run python files without typing python and extension

How to run python files without typing python and extension (in Linux)

Steps to follow to run your python code without typing python filename.py.

You can simply run by typing filename if you follow these simple steps.

Step 1 : Add shebang line as first line in your python code

@nikhita
nikhita / update-golang.md
Last active May 13, 2024 01:32
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by: