Update your Django db model

By | May 12, 2023

If you have changed your database schema, you can up date your model by first running the inspectdb command. If you have too many tables in your database, pipe the results to a temporary file first and then manually copy the models over. Then run: ref: https://dev.to/idrisrampurawala/creating-django-models-of-an-existing-db-288m

Useful command lines to know

By | March 20, 2023

Secure Copy scp [file on your computer] [destination host]:[folder] PIP JSON viewer https://jsonlint.com/ One way to traverse YouTube is [header][c4TabbedHeaderRenderer][subscriberCountText][accessibility][accessibilityData][label] However, an easier way is to use a helper site.

How to install Python on Dreamhost

By | March 20, 2023

Dreamhost has a great resource for installing Python which can be found at: https://help.dreamhost.com/hc/en-us/sections/203651898-Python In particular, if you are using Python 3, this is the resource guide to use: https://help.dreamhost.com/hc/en-us/articles/115000702772-Installing-a-custom-version-of-Python-3

Git autocompletion is a must have

By | February 8, 2023

Get git autocompletion in 2 mins. Run the following commands: Step 1 Step 2 Add the following to your ~/.bash_profile file: Step 3 Apply the changes: If you don’t have permission, run: Step 4 Test

Category: Git

Important Git commands to remember

By | December 18, 2022

–help is your friend after git + <your_command> Step 1: Check your branch Step 1a: If you need to create a branch Step 1b: If you need to delete a branch Others to keep in mind Step 2: Checking your remote NB: add -v for verbose Step 3: Staging your changes Step 3a: Un-staging your… Read More »

Category: Git

How do I know if brew analytics is on or off?

By | September 26, 2022

Just type: and if brew analytics is enabled, it will say so. To turn it off, type: The other option is to set an environment variable: If you are interested to see what info is being sent, you can read this, or set this environment variable: What this does is displays the data being sent… Read More »

Category: OSX

Link to download macOS Mojave

By | September 18, 2022

If you are looking for how to upgrade to macOS Mojave, you won’t be able to find it in Apple’s app store because it will only show you the latest version. Here is the direct link: https://apps.apple.com/us/app/macos-mojave/id1398502828

Category: OSX

How to capture desktop audio with OBS on OSX

By | June 14, 2022

A quick and simple way is to use an application called Black Hole. https://existential.audio/blackhole/ Step 1: Once you have installed this, open up audio MIDI Setup Step 2: Add a Multi-Output Device as an option and tick both MacBook speakers AND BlackHole. Step 3: Then open up sound preference and route the sound through the… Read More »

Category: OSX