ModuleNotFoundError: No module named ‘tweepy’

By | June 9, 2023

To fix a python error such as “ModuleNotFoundError: No module named ‘tweepy’”, you should check your version of python with: python3 –version Often you will have one version installed but trying to execute the script with another version where the module is not installed. Check your python version in your path with: echo $PATH For… Read More »

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. python inspectdb > If you have too many tables in your database, pipe the results to a temporary file first and then manually copy the models over. python inspectdb > Then run:… Read More »

Useful command lines to know

By | March 20, 2023

Secure Copy scp [file on your computer] [destination host]:[folder] eg: scp PIP pip3 install requests pip3 install beautifulsoup4 pip3 install mysql-connector-python JSON viewer 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: In particular, if you are using Python 3, this is the resource guide to use:

Git autocompletion is a must have

By | February 8, 2023

Get git autocompletion in 2 mins. Run the following commands: Step 1 curl -o ~/.git-completion.bash Step 2 Add the following to your ~/.bash_profile file: if [ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi Step 3 Apply the changes: source ~/.bash_profile If you don’t have permission, run: chmod +x ~/.git-completion.bash 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 git branch Step 1a: If you need to create a branch git branch dev Step 1b: If you need to delete a branch git branch -d dev Others to keep in mind git branch -D dev git branch -m dev2 git branch… Read More »

Category: Git

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

By | September 26, 2022

Just type: brew analytics Analytics are enabled. and if brew analytics is enabled, it will say so. To turn it off, type: brew analytics off (this will prevent analytics from ever being sent) The other option is to set an environment variable: export HOMEBREW_NO_ANALYTICS=1 If you are interested to see what info is being sent,… Read More »

Category: OSX