You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Emre Akkaya
emrekgn
Animal-friendly fellow. Always learning and love to help. A tech lead and MSc graduate.
How to publish a Python package from Github to pypi ("Trusted Publishers" method)
Publishing to PyPI from GitHub with Trusted Publishers
This guide walks through the full workflow for publishing a Python package to PyPI using GitHub Actions and PyPI's Trusted Publishers (OIDC) feature.
No long‑lived API tokens are required—PyPI issues temporary credentials to GitHub at publish time.
1. Prerequisites
A PyPI account with two-factor authentication enabled.
Spring Cloud Config Server and Client example configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows SSH Server with Password-less Key Authentication and Default WSL2 Shell
I wanted to be able to SSH into my Windows laptop directly into Linux. I also wanted to disable password authentication and only allow public key (RSA in my case) authentication.
Scott Hanselman wrote a blog post on how to make your default WSL2 distro your default shell for SSH. Windows OS Hub published an article on using public key authentication. These were both helpful resources.
I'll assume you're already familiar with using SSH keys. If not, this article at DigitalOcean is very informative.
Add your public key to your authorized keys file
First thing you want to do is create the file $HOME\.ssh\authorized_keys. If you run into issues, it could be due to incorrect file ownership.
Collect system information (BIOS, CPU, GPU, installed packages, motherboard and more) in a cross-platform manner!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters