Skip to content

Instantly share code, notes, and snippets.

@abaksy
abaksy / mysql-jdbc-ubuntu-install.md
Last active October 30, 2023 06:43
mysql-jdbc-ubuntu-install

Super duper cool guide for installing MySQL (MariaDB actually) and JDBC on Ubuntu 20.04

  1. Install mariadb server using: sudo apt install mariadb-server

  2. Install the Java library for MariaDB using: sudo apt install libmariadb-java

  3. Start the mariadb service using: sudo /etc/init.d/mysql start

  4. Now you will login to the mariaDB and create a new user that does not need root a) Connect to MY-SQL using: sudo mysql -u root

@abaksy
abaksy / ohmyzsh-agnoster-conda.md
Last active April 25, 2024 11:04
Displaying virtualenv and conda information on the Oh-My-Zsh Agnoster theme
  • Add the virtualenv plugin in the ~/.zshrc file. This is done by modifying the plugins line to include the virtualenv plugin
  • Make sure the following lines are in the file ~/.oh-my-zsh/plugins/virtualenv/virtualenv.plugin.zsh
# disables prompt mangling in virtual_env/bin/activate
export VIRTUAL_ENV_DISABLE_PROMPT=1

#Disable conda prompt changes
#https://conda.io/docs/user-guide/configuration/use-condarc.html#change-command-prompt-changeps1
#changeps1: False
`conda config --set changeps1 false`