I use Django Cookiecutter (link) 🍪 because its awesome! Find your python version Hit the github page to see what python version it supports, you should match whichever provider support you have. Create project: use pyenv to set python version Note: if your pyenv install –list is not listing the newest versions, you’ll need to…
Python: Print all items in a directory
Mac and Docker Desktop: “Cannot connect to the Docker daemon”
Why is this happening? Solution: Run this command to create a symbolic link inside of the “/var” directory Source: https://github.com/nektos/act/issues/1658 Deep dive: Here’s a breakdown of the command and its components:
Cache your OpenAI responses with CachedGPT
Check out this github repo: https://github.com/theptrk/cachedgpt It’s a single file server that uses FastAPI to cache your calls to save on resources while you are developing. A hidden benefit, all responses return INSTANTLY on the second call.
OpenAI ChatCompletion in Python
Use pyenv and a .python-version file
Problem: Have you ever downloaded someones project and ran into python versioning issues? Solution: You need to pin the python version for every project How? pyenv will recognize a .python-version file and use the python version that you pinned for your project, directory or system. This is massively useful when working across different machines and…
How to download and examine a file on the command line
How to download a file on the command line You have many choices but two popular ones are curl and wget. Example with curl: Now you have a file at your current directory! How to examine a file on the command line Get the permissions and size of the file (ls -lh) Look through the…
Goodbye Outstandem
I worked on Outstandem for 10 years and it’s time to say goodbye. When I was looking for my first real job in 2012, I kept every application in an excel sheet. Every stage in the interview process was tracked in Excel but I knew it could all be better. Every time my career counselor…
How to earn free boba for life
We all deserve boba (“bubble tea”). This incredible drink invention is one of Taiwans greatest gifts to the world. Boba costs about $5 at your neighborhood shop. Treat yourself to one boba a week for $5 per week or $260 per year. So how do you earn free boba for life? You can earn money…
Setting up zsh on new computer
zsh is the new MacOS default From Catalina zsh is the default shell on Mac (apple). If you need to manually change your shell: You will be updating your config A LOT in the beginning, so the most important aliases are these. Option: Easy mode: download oh-my-zsh Skip the configuration and use a prebuilt framework:…