How Step: Create a new bash script (“.docker_ps_invert.sh) Step: allow executing Why? Alternative You can choose specific columns to show (like below)… But what if you want to see every column? That’s where the script about shines.
All posts in Uncategorized
install nginx on mac with homebrew
Q: How do I install nginx? Q: Where is nginx configured? Q: Where is nginx hosted on homebrew?
local inference with llama-cpp-python
Step: install the package Step: download a model “TheBloke” on huggingface (link) has a ton of models in “GGUF” format (format introduced by llama.cpp) Click on any of these different quantized (reduced precision) models and find the “download” link Put them in your project somewhere like a “models” directory Step: create your python (.py) or…
How to convert mov to mp4 with ffmpeg
When you record on Quicktime, that saves as .mov which is a SUPER huge file size. Notes:
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…
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…
Github Pages tutorial and exploration!
What is Github Pages Github allows free and easy hosting for users to create an html page to represent users, organization and projects. All you have to do is upload your files through version control (git) and Github will serve your html, css and js – all static assets*. How do you create a github…