Skip to content

Patrick

writing, drawing, surfing, painting

Menu

All posts in Command line

Github Authentication with SSH on Mac

Posted on May 23, 2024May 24, 2024Author theptrkPosted in Command line

“Support for password authentication was removed on August 13, 2021.” – Github You have many options to authenticate with GitHub Why use SSH Authentication? (docs.github) How to setup SSH Authentication? Note: The HTTPS and SSH addresses are different

rsync with python without extra files

Posted on December 29, 2023February 3, 2024Author theptrkPosted in Command line

Your goal is to send your python project to your server from your local machine. Your python project includes a ton of files you wouldn’t want to send to a server so a simple rsync is not enough. Option 1: rsync with a bunch of exclude flags Option 2: Shell Function Option 3: Shell script

How to download and examine a file on the command line

Posted on January 9, 2023April 7, 2023Author theptrkPosted in 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…

Read More

Setting up zsh on new computer

Posted on November 26, 2021January 8, 2024Author theptrkPosted in Command line

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:…

Read More
  • Coding (10)
  • Command line (4)
  • databases (4)
    • postgresql (4)
  • Deployment (1)
    • heroku (1)
  • Dev Environments (1)
  • docker (2)
  • Finance (1)
  • git (2)
  • Github (2)
    • pages (1)
  • Hello World (1)
  • htmx (1)
  • iOS (5)
    • autolayout (1)
    • Core Animation (1)
      • CAShapeLayer (1)
    • project setup (1)
  • Javascript (13)
    • Browser API (1)
    • chrome extension (1)
    • express (2)
  • Mac (7)
  • Machine Learning (9)
    • Arc Prize (1)
    • LLM (3)
  • Me Database (1)
  • Obsidian (1)
  • OpenAI (2)
  • python (19)
    • django (2)
  • Rust (1)
  • Server-Client (1)
  • Shopify (1)
  • Swift (1)
  • Uncategorized (19)
  • Unix (10)
  • vim (5)

©2025 Patrick | Theme by SuperbThemes.Com